@@ -65,20 +65,20 @@ |
||
65 | 65 | <?php $this->beginBody() ?> |
66 | 66 | |
67 | 67 | <?php Pjax::begin([ |
68 | - 'id' => 'main-content', |
|
69 | - 'timeout' => 5000, |
|
70 | - 'linkSelector' => '.frontend-reload', |
|
71 | - ]) ?> |
|
68 | + 'id' => 'main-content', |
|
69 | + 'timeout' => 5000, |
|
70 | + 'linkSelector' => '.frontend-reload', |
|
71 | + ]) ?> |
|
72 | 72 | |
73 | 73 | <?= TwigWidget::widget(['key' => '_beginBody', 'renderEmpty' => false]) ?> |
74 | 74 | |
75 | 75 | <!-- Navbar --> |
76 | 76 | <?php |
77 | 77 | if (Yii::$app->settings->get('enableTwigNavbar', 'app.layout', false)) { |
78 | - echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']); |
|
79 | - } else { |
|
80 | - echo $this->render('_navbar'); |
|
81 | - } |
|
78 | + echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']); |
|
79 | + } else { |
|
80 | + echo $this->render('_navbar'); |
|
81 | + } |
|
82 | 82 | |
83 | 83 | ?> |
84 | 84 |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | /* @var $this \yii\web\View */ |
24 | 24 | /* @var $content string */ |
25 | 25 | |
26 | -$this->title .= ' - ' . getenv('APP_TITLE'); |
|
27 | -$this->title = (getenv('APP_PAGES_TITLE_PREFIX') ?? '') . $this->title; |
|
26 | +$this->title .= ' - '.getenv('APP_TITLE'); |
|
27 | +$this->title = (getenv('APP_PAGES_TITLE_PREFIX') ?? '').$this->title; |
|
28 | 28 | |
29 | 29 | SettingsAsset::register($this); |
30 | 30 | |
@@ -32,18 +32,18 @@ discard block |
||
32 | 32 | \yii\base\Event::on( |
33 | 33 | \yii\web\View::className(), |
34 | 34 | \yii\web\View::EVENT_AFTER_RENDER, |
35 | - function ($e) { |
|
35 | + function($e) { |
|
36 | 36 | // disable unbundled asset |
37 | - $e->sender->assetBundles['yii\\bootstrap\\BootstrapAsset'] = null; |
|
37 | + $e->sender->assetBundles[ 'yii\\bootstrap\\BootstrapAsset' ] = null; |
|
38 | 38 | // disable bundled asset |
39 | - $e->sender->assetBundles['bootstrap'] = null; |
|
39 | + $e->sender->assetBundles[ 'bootstrap' ] = null; |
|
40 | 40 | } |
41 | 41 | ); |
42 | 42 | } |
43 | 43 | |
44 | 44 | // Favicon |
45 | 45 | if ($favicon = \Yii::$app->settings->get('faviconPng', 'app.assets', null)) { |
46 | - $this->registerLinkTag(['rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon]); |
|
46 | + $this->registerLinkTag([ 'rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon ]); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | ?> |
@@ -70,12 +70,12 @@ discard block |
||
70 | 70 | 'linkSelector' => '.frontend-reload', |
71 | 71 | ]) ?> |
72 | 72 | |
73 | -<?= TwigWidget::widget(['key' => '_beginBody', 'renderEmpty' => false]) ?> |
|
73 | +<?= TwigWidget::widget([ 'key' => '_beginBody', 'renderEmpty' => false ]) ?> |
|
74 | 74 | |
75 | 75 | <!-- Navbar --> |
76 | 76 | <?php |
77 | 77 | if (Yii::$app->settings->get('enableTwigNavbar', 'app.layout', false)) { |
78 | - echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']); |
|
78 | + echo \dmstr\modules\prototype\widgets\TwigWidget::widget([ 'key' => '_navbar' ]); |
|
79 | 79 | } else { |
80 | 80 | echo $this->render('_navbar'); |
81 | 81 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | <!-- Footer --> |
93 | 93 | <footer class="footer"> |
94 | - <?= Cell::widget(['id' => '_footer', 'requestParam' => '_global']) ?> |
|
94 | + <?= Cell::widget([ 'id' => '_footer', 'requestParam' => '_global' ]) ?> |
|
95 | 95 | </footer> |
96 | 96 | |
97 | 97 | <?php Pjax::end() ?> |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | ], |
107 | 107 | ]) ?> |
108 | 108 | |
109 | -<?= TwigWidget::widget(['key' => '_endBody', 'renderEmpty' => false]) ?> |
|
109 | +<?= TwigWidget::widget([ 'key' => '_endBody', 'renderEmpty' => false ]) ?> |
|
110 | 110 | |
111 | 111 | <?php if (Yii::$app->user->can('backend_default_index')): ?> |
112 | 112 |