@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $config = $serviceLocator->get('Config'); |
36 | 36 | $headScript = $serviceLocator->get('ViewHelperManager')->get('HeadScript'); |
37 | 37 | $headLink = $serviceLocator->get('ViewHelperManager')->get('headLink'); |
38 | - $publicDir = '/themes/'.$config['theme']['name'].DIRECTORY_SEPARATOR; |
|
38 | + $publicDir = '/themes/'.$config[ 'theme' ][ 'name' ].DIRECTORY_SEPARATOR; |
|
39 | 39 | |
40 | 40 | /* |
41 | 41 | * Get theme name from config and load it. |
@@ -44,22 +44,22 @@ discard block |
||
44 | 44 | * from indexAction. |
45 | 45 | */ |
46 | 46 | $viewTemplate = $serviceLocator->get('ViewTemplatePathStack'); |
47 | - $themes = $themesConfig['themes'][$config['theme']['name']]; |
|
47 | + $themes = $themesConfig[ 'themes' ][ $config[ 'theme' ][ 'name' ] ]; |
|
48 | 48 | |
49 | - if (isset($themes['template_path_stack'])) { |
|
50 | - $viewTemplate->addPaths($themes['template_path_stack']); |
|
49 | + if (isset($themes[ 'template_path_stack' ])) { |
|
50 | + $viewTemplate->addPaths($themes[ 'template_path_stack' ]); |
|
51 | 51 | } |
52 | 52 | |
53 | - if (isset($themes['template_map'])) { |
|
53 | + if (isset($themes[ 'template_map' ])) { |
|
54 | 54 | $viewTemplate = $serviceLocator->get('ViewTemplateMapResolver'); |
55 | - $viewTemplate->merge($themes['template_map']); |
|
55 | + $viewTemplate->merge($themes[ 'template_map' ]); |
|
56 | 56 | } |
57 | 57 | |
58 | - foreach ($themes['css'] as $key => $file) { |
|
58 | + foreach ($themes[ 'css' ] as $key => $file) { |
|
59 | 59 | $headLink->prependStylesheet($publicDir.$file); |
60 | 60 | } |
61 | 61 | |
62 | - foreach ($themes['js'] as $key => $file) { |
|
62 | + foreach ($themes[ 'js' ] as $key => $file) { |
|
63 | 63 | $headScript->prependFile($publicDir.$file); |
64 | 64 | } |
65 | 65 |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return []; |
|
3 | +return [ ]; |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return []; |
|
3 | +return [ ]; |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return []; |
|
3 | +return [ ]; |