From 3395c04be4b0b29b4f7003c2da37ca92d8a2881e Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 31 May 2016 18:58:31 +0300 Subject: [PATCH] image size --- frontend/assets/AppAsset.php | 6 +++--- frontend/config/main.php | 7 ------- frontend/widgets/SliderWidget.php | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/frontend/assets/AppAsset.php b/frontend/assets/AppAsset.php index 73342f2..5130adb 100755 --- a/frontend/assets/AppAsset.php +++ b/frontend/assets/AppAsset.php @@ -24,9 +24,9 @@ class AppAsset extends AssetBundle public $js = [ ]; public $depends = [ -// 'yii\web\JqueryAsset', - 'sersid\owlcarousel\Asset', - 'yii\web\YiiAsset', + 'yii\web\JqueryAsset', + 'sersid\owlcarousel\Asset' + //'yii\web\YiiAsset', //'yii\bootstrap\BootstrapAsset', ]; diff --git a/frontend/config/main.php b/frontend/config/main.php index bb7b555..30f04cd 100755 --- a/frontend/config/main.php +++ b/frontend/config/main.php @@ -12,13 +12,6 @@ return [ 'bootstrap' => ['log'], 'controllerNamespace' => 'frontend\controllers', 'components' => [ - 'assetManager' => [ - 'bundles' => [ - 'yii\web\JqueryAsset' =>[ - 'jsOptions' => ['position' => \yii\web\View::POS_END] - ] - ], - ], 'authManager' => [ 'class' => 'yii\rbac\DbManager', ], diff --git a/frontend/widgets/SliderWidget.php b/frontend/widgets/SliderWidget.php index 4af4fe9..210d6e7 100755 --- a/frontend/widgets/SliderWidget.php +++ b/frontend/widgets/SliderWidget.php @@ -71,7 +71,7 @@ class SliderWidget extends Widget ', 1); $this->view->registerCssFile (\Yii::$app->request->BaseUrl . '/js/widget-carousel/'.$slider->title.'/style.css'); - $this->view->registerJsFile (\Yii::$app->request->BaseUrl . '/js/widget-carousel/'.$slider->title.'/style.js', ['position' => View::POS_LOAD]); + $this->view->registerJsFile (\Yii::$app->request->BaseUrl . '/js/widget-carousel/'.$slider->title.'/style.js', ['position' => View::POS_END]); } public function htmlSlider ($slider, $images) -- libgit2 0.21.4