/** * @param string $scenario * * @return Settings */ protected function getSettingsModel($scenario) { $model = Settings::getModel(); $model->scenario = $scenario; return $model; }
<?php $this->beginBody(); ?> <?php echo GhostHtml::a(Html::img(Yii::$app->homeUrl . 'css/system_images/go_admin.png'), ['/content/content-page/index'], ['style' => 'position:absolute; z-index: 99999; top: 0; left: 0']); ?> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php echo $content; ?> <?php echo Settings::getModel()->enable_seo_tracking == 1 ? Settings::getModel()->seo_tracking_script : ''; ?> <?php use raoul2000\widget\scrollup\Scrollup; Scrollup::widget(['theme' => Scrollup::THEME_IMAGE, 'pluginOptions' => ['scrollText' => "To top", 'topDistance' => 400, 'topSpeed' => 3000, 'animation' => Scrollup::ANIMATION_SLIDE, 'animationInSpeed' => 200, 'animationOutSpeed' => 200, 'activeOverlay' => false]]); $this->endBody(); ?> </body> </html> <?php $this->endPage();