@@ -31,24 +31,24 @@ discard block |
||
| 31 | 31 | \yii\base\Event::on( |
| 32 | 32 | \yii\web\View::className(), |
| 33 | 33 | \yii\web\View::EVENT_AFTER_RENDER, |
| 34 | - function ($e) { |
|
| 35 | - $e->sender->assetBundles['yii\\bootstrap\\BootstrapAsset'] = null; |
|
| 34 | + function($e) { |
|
| 35 | + $e->sender->assetBundles[ 'yii\\bootstrap\\BootstrapAsset' ] = null; |
|
| 36 | 36 | }); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | // SEO |
| 40 | 40 | $route = Url::toRoute(Yii::$app->controller->action->uniqueId); |
| 41 | 41 | if ($keywords = \Yii::$app->settings->get($route, 'app.seo.keywords', null)) { |
| 42 | - $this->registerMetaTag(['name' => 'keywords', 'content' => $keywords]); |
|
| 42 | + $this->registerMetaTag([ 'name' => 'keywords', 'content' => $keywords ]); |
|
| 43 | 43 | } |
| 44 | 44 | if ($description = \Yii::$app->settings->get($route, 'app.seo.descriptions', null)) { |
| 45 | - $this->registerMetaTag(['name' => 'description', 'content' => $description]); |
|
| 45 | + $this->registerMetaTag([ 'name' => 'description', 'content' => $description ]); |
|
| 46 | 46 | } |
| 47 | 47 | if ($title = \Yii::$app->settings->get($route, 'app.seo.titles', null)) { |
| 48 | 48 | $this->title = $title; |
| 49 | 49 | } |
| 50 | 50 | if ($favicon = \Yii::$app->settings->get('faviconPng', 'app.assets', null)) { |
| 51 | - $this->registerLinkTag(['rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon]); |
|
| 51 | + $this->registerLinkTag([ 'rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon ]); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | ?> |
@@ -75,12 +75,12 @@ discard block |
||
| 75 | 75 | 'linkSelector' => '.frontend-reload', |
| 76 | 76 | ]) ?> |
| 77 | 77 | |
| 78 | -<?= TwigWidget::widget(['key' => '_top', 'renderEmpty' => false]) ?> |
|
| 78 | +<?= TwigWidget::widget([ 'key' => '_top', 'renderEmpty' => false ]) ?> |
|
| 79 | 79 | |
| 80 | 80 | <!-- Navbar --> |
| 81 | 81 | <?php |
| 82 | 82 | if (Yii::$app->settings->get('enableTwigNavbar', 'app.layout', false)) { |
| 83 | - echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']); |
|
| 83 | + echo \dmstr\modules\prototype\widgets\TwigWidget::widget([ 'key' => '_navbar' ]); |
|
| 84 | 84 | } else { |
| 85 | 85 | echo $this->render('_navbar'); |
| 86 | 86 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | <!-- Footer --> |
| 98 | 98 | <footer class="footer"> |
| 99 | - <?= Cell::widget(['id' => '_footer', 'requestParam' => '_global']) ?> |
|
| 99 | + <?= Cell::widget([ 'id' => '_footer', 'requestParam' => '_global' ]) ?> |
|
| 100 | 100 | </footer> |
| 101 | 101 | |
| 102 | 102 | <!-- Info Modal --> |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | <?= Html::a( |
| 106 | 106 | '<i class="fa fa-heartbeat"></i>', |
| 107 | 107 | '#', |
| 108 | - ['class' => 'text-muted', 'data-toggle' => 'modal', 'data-target' => '#phd-info-modal'] |
|
| 108 | + [ 'class' => 'text-muted', 'data-toggle' => 'modal', 'data-target' => '#phd-info-modal' ] |
|
| 109 | 109 | ) ?> |
| 110 | 110 | </p> |
| 111 | 111 | </div> |