Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Sep 20, 2019
1 parent 3d075b4 commit b399b27
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
27 changes: 17 additions & 10 deletions src/UnifyTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use yii\base\Theme;
use yii\helpers\ArrayHelper;
use yii\helpers\FileHelper;
use yii\web\View;

/**
* @property string $favicon путь к фавиконке
Expand Down Expand Up @@ -177,11 +178,15 @@ static public function initBeforeRender()
}


\Yii::$app->view->registerCssFile($newFilePublic, [
'depends' => [
UnifyThemeAsset::class
]
]);
\Yii::$app->view->on(View::EVENT_BEGIN_PAGE, function() use ($newFilePublic) {
\Yii::$app->view->registerCssFile($newFilePublic, [
'depends' => [
UnifyThemeAsset::class
]
]);
});


//\Yii::$app->view->registerCss($content);


Expand All @@ -203,11 +208,13 @@ static public function initBeforeRender()
}


\Yii::$app->view->registerCssFile($newFilePublic2, [
'depends' => [
UnifyThemeAsset::class
]
]);
\Yii::$app->view->on(View::EVENT_BEGIN_PAGE, function() use ($newFilePublic2) {
\Yii::$app->view->registerCssFile($newFilePublic2, [
'depends' => [
UnifyThemeAsset::class
]
]);
});

if (\Yii::$app->view->theme->body_bg_image) {
$bgImage = \Yii::$app->view->theme->body_bg_image;
Expand Down
1 change: 1 addition & 0 deletions src/views/filters/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
/* @var $this yii\web\View */
/* @var $widget \skeeks\cms\themes\unify\widgets\filters\FiltersWidget */

\skeeks\cms\themes\unify\widgets\filters\assets\FiltersWidgetAsset::register($this);
$this->registerCss(<<<CSS
#sx-filters-form {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/filters/assets/FiltersWidgetAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FiltersWidgetAsset extends AssetBundle
];
public $depends = [
//UnifyThemeShopAsset::class,
UnifyDefaultAsset::class,
//UnifyDefaultAsset::class,
UnifyIoRangeSliderAsset::class,
];
}

0 comments on commit b399b27

Please sign in to comment.