@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | $context = $this->context; |
| 88 | 88 | |
| 89 | - $file = get_template_directory() . '/controllers/single/' . strtolower($this->context['post']->post_type) . '.php'; |
|
| 89 | + $file = get_template_directory().'/controllers/single/'.strtolower($this->context['post']->post_type).'.php'; |
|
| 90 | 90 | |
| 91 | 91 | if (file_exists($file)) { |
| 92 | 92 | /** |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | include($file); |
| 96 | 96 | } else { |
| 97 | - Timber::render(array('single-' . $context['post']->ID . '.twig', 'single-' . $context['post']->post_type . '.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 97 | + Timber::render(array('single-'.$context['post']->ID.'.twig', 'single-'.$context['post']->post_type.'.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | public function fourOFour() |
| 111 | 111 | { |
| 112 | - include(get_template_directory() . '/controllers/404.php'); |
|
| 112 | + include(get_template_directory().'/controllers/404.php'); |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | public function archive() |
@@ -119,11 +119,11 @@ discard block |
||
| 119 | 119 | $context = $this->context; |
| 120 | 120 | |
| 121 | 121 | if (is_category()) { |
| 122 | - $file = get_template_directory() . '/controllers/archive/category.php'; |
|
| 122 | + $file = get_template_directory().'/controllers/archive/category.php'; |
|
| 123 | 123 | } else if (is_tax()) { |
| 124 | - $file = get_template_directory() . '/controllers/archive/tax.php'; |
|
| 124 | + $file = get_template_directory().'/controllers/archive/tax.php'; |
|
| 125 | 125 | } else { |
| 126 | - $file = get_template_directory() . '/controllers/archive/' . strtolower($this->context['post']->title) . '.php'; |
|
| 126 | + $file = get_template_directory().'/controllers/archive/'.strtolower($this->context['post']->title).'.php'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | if (file_exists($file)) { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | include($file); |
| 134 | 134 | } else { |
| 135 | - Timber::render(array('single-' . $context['post']->ID . '.twig', 'single-' . $context['post']->post_type . '.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 135 | + Timber::render(array('single-'.$context['post']->ID.'.twig', 'single-'.$context['post']->post_type.'.twig', 'single.twig'), $context, Cache::getTimerTime()); |
|
| 136 | 136 | } |
| 137 | 137 | } |
| 138 | 138 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | /** |
| 150 | 150 | * See if controller excists else fall back to default |
| 151 | 151 | */ |
| 152 | - $file = get_template_directory() . '/controllers/pages/' . $page . '.php'; |
|
| 152 | + $file = get_template_directory().'/controllers/pages/'.$page.'.php'; |
|
| 153 | 153 | $this->found = $page; |
| 154 | 154 | } |
| 155 | 155 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | /** |
| 163 | 163 | * See if controller excists else fall back to default |
| 164 | 164 | */ |
| 165 | - $file = get_template_directory() . '/controllers/pages/' . $page . '.php'; |
|
| 165 | + $file = get_template_directory().'/controllers/pages/'.$page.'.php'; |
|
| 166 | 166 | $this->found = $page; |
| 167 | 167 | } |
| 168 | 168 | } |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | { |
| 193 | 193 | $this->setContext(); |
| 194 | 194 | $context = $this->context; |
| 195 | - Timber::render(['page-' . strtolower($this->context['post']->post_name) . '.twig', 'page.twig'], $this->context, Cache::getTimerTime()); |
|
| 195 | + Timber::render(['page-'.strtolower($this->context['post']->post_name).'.twig', 'page.twig'], $this->context, Cache::getTimerTime()); |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | public function getClass() |
| 204 | 204 | { |
| 205 | 205 | if ($this->found) { |
| 206 | - return 'page-' . $this->found; |
|
| 206 | + return 'page-'.$this->found; |
|
| 207 | 207 | } else { |
| 208 | 208 | return false; |
| 209 | 209 | } |