@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$context['title'] = 'Category: ' . single_cat_title('', false); |
|
| 3 | +$context['title'] = 'Category: '.single_cat_title('', false); |
|
| 4 | 4 | |
| 5 | 5 | $context['posts'] = Timber::get_posts(); |
| 6 | 6 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | $context = $this->context; |
| 74 | 74 | |
| 75 | - $file = get_template_directory() . '/controllers/single/' . $this->context['post']->post_type . '.php'; |
|
| 75 | + $file = get_template_directory().'/controllers/single/'.$this->context['post']->post_type.'.php'; |
|
| 76 | 76 | |
| 77 | 77 | if (file_exists($file)) { |
| 78 | 78 | /** |
@@ -80,13 +80,13 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | include($file); |
| 82 | 82 | } else { |
| 83 | - Timber::render(array('single-' . $context['post']->ID . '.twig', 'single-' . $context['post']->post_type . '.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 83 | + Timber::render(array('single-'.$context['post']->ID.'.twig', 'single-'.$context['post']->post_type.'.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | public function fourOFour() |
| 88 | 88 | { |
| 89 | - include(get_template_directory() . '/controllers/404.php'); |
|
| 89 | + include(get_template_directory().'/controllers/404.php'); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | public function archive() |
@@ -96,9 +96,9 @@ discard block |
||
| 96 | 96 | $context = $this->context; |
| 97 | 97 | |
| 98 | 98 | if (is_category()) { |
| 99 | - $file = get_template_directory() . '/controllers/archive/category.php'; |
|
| 99 | + $file = get_template_directory().'/controllers/archive/category.php'; |
|
| 100 | 100 | } else { |
| 101 | - $file = get_template_directory() . '/controllers/archive/' . $this->context['post']->title . '.php'; |
|
| 101 | + $file = get_template_directory().'/controllers/archive/'.$this->context['post']->title.'.php'; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | if (file_exists($file)) { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | include($file); |
| 109 | 109 | } else { |
| 110 | - Timber::render(array('single-' . $context['post']->ID . '.twig', 'single-' . $context['post']->post_type . '.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 110 | + Timber::render(array('single-'.$context['post']->ID.'.twig', 'single-'.$context['post']->post_type.'.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * See if controller excists else fall back to default |
| 123 | 123 | */ |
| 124 | - $file = get_template_directory() . '/controllers/pages/' . $page . '.php'; |
|
| 124 | + $file = get_template_directory().'/controllers/pages/'.$page.'.php'; |
|
| 125 | 125 | if (file_exists($file)) { |
| 126 | 126 | $this->found = $page; |
| 127 | 127 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | $this->setContext(); |
| 151 | 151 | $context = $this->context; |
| 152 | - Timber::render(['page-' . $this->context['post']->post_name . '.twig', 'page.twig'], $this->context, Cache::getTimerTime()); |
|
| 152 | + Timber::render(['page-'.$this->context['post']->post_name.'.twig', 'page.twig'], $this->context, Cache::getTimerTime()); |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | public function getClass() |
| 161 | 161 | { |
| 162 | 162 | if ($this->found) { |
| 163 | - return 'page-' . $this->found; |
|
| 163 | + return 'page-'.$this->found; |
|
| 164 | 164 | } else { |
| 165 | 165 | return false; |
| 166 | 166 | } |