@@ -7,7 +7,6 @@ |
||
7 | 7 | use Phile\Core\Event; |
8 | 8 | use Phile\Core\Registry; |
9 | 9 | use Phile\Model\Page; |
10 | -use Phile\Repository\Page as Repository; |
|
11 | 10 | use Phile\ServiceLocator\TemplateInterface; |
12 | 11 | |
13 | 12 | /** |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $template = 'index'; |
124 | 124 | } |
125 | 125 | if (!empty($this->config['template-extension'])) { |
126 | - $template .= '.' . $this->config['template-extension']; |
|
126 | + $template .= '.'.$this->config['template-extension']; |
|
127 | 127 | } |
128 | 128 | $templatePath = $this->getTemplatePath($template); |
129 | 129 | if (!file_exists($templatePath)) { |
@@ -143,9 +143,9 @@ discard block |
||
143 | 143 | */ |
144 | 144 | protected function getTemplatePath($sub = '') |
145 | 145 | { |
146 | - $themePath = THEMES_DIR . $this->settings['theme']; |
|
146 | + $themePath = THEMES_DIR.$this->settings['theme']; |
|
147 | 147 | if (!empty($sub)) { |
148 | - $themePath .= '/' . ltrim($sub, DIRECTORY_SEPARATOR); |
|
148 | + $themePath .= '/'.ltrim($sub, DIRECTORY_SEPARATOR); |
|
149 | 149 | } |
150 | 150 | return $themePath; |
151 | 151 | } |
@@ -166,11 +166,11 @@ discard block |
||
166 | 166 | 'base_url' => $this->settings['base_url'], |
167 | 167 | 'config' => $this->settings, |
168 | 168 | 'content_dir' => $this->settings['content_dir'], |
169 | - 'content_url' => $this->settings['base_url'] . '/' . basename($this->settings['content_dir']), |
|
169 | + 'content_url' => $this->settings['base_url'].'/'.basename($this->settings['content_dir']), |
|
170 | 170 | 'pages' => $this->page->getRepository()->findAll(), |
171 | 171 | 'site_title' => $this->settings['site_title'], |
172 | - 'theme_dir' => THEMES_DIR . $this->settings['theme'], |
|
173 | - 'theme_url' => $this->settings['base_url'] . '/' . basename(THEMES_DIR) . '/' . $this->settings['theme'], |
|
172 | + 'theme_dir' => THEMES_DIR.$this->settings['theme'], |
|
173 | + 'theme_url' => $this->settings['base_url'].'/'.basename(THEMES_DIR).'/'.$this->settings['theme'], |
|
174 | 174 | ]; |
175 | 175 | |
176 | 176 | /** |