Пример #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = ['sourcePath' => '@vova07/themes/admin/assets', 'css' => ['css/bootstrap.min.css']];
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapPluginAsset'] = ['sourcePath' => '@vova07/themes/admin/assets', 'js' => ['js/bootstrap.min.js']];
     Yii::$container->set('yii\\grid\\CheckboxColumn', ['checkboxOptions' => ['class' => 'simple']]);
 }
Пример #2
0
 /**
  * Getter for pathMap.
  */
 public function init()
 {
     parent::init();
     if (!is_array($this->pathMap)) {
         $this->pathMap = [];
     }
     $this->pathMap = $this->compilePathMap(ArrayHelper::merge(['$themedViewPaths' => $this->buildThemedViewPaths(), '$themedWidgetPaths' => '$themedViewPaths/widgets', Yii::$app->viewPath => '$themedViewPaths', __DIR__ . '/widgets/views' => '$themedWidgetPaths'], $this->getManager()->pathMap, $this->pathMap));
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = ['css' => ['css/bootstrap.min.css']];
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapPluginAsset'] = ['js' => ['js/bootstrap.min.js']];
     Yii::$app->assetManager->bundles['yii\\web\\JqueryAsset'] = ['js' => ['jquery.min.js']];
     Yii::$app->assetManager->bundles['yii\\jui\\JuiAsset'] = ['js' => ['jquery-ui.min.js']];
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->getBasePath() == '') {
         $this->setBasePath('@webroot/themes/' . $this->name);
     }
     $this->pathMap = ['@humhub/views' => $this->getBasePath() . '/views'];
     parent::init();
 }
Пример #5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     /*Yii::$container->set('yii\grid\CheckboxColumn', [
           'checkboxOptions' => [
               'class' => 'simple'
           ]
       ]);*/
 }
Пример #6
0
 public function init()
 {
     if (property_exists(\Yii::$app->controller, 'theme')) {
         $theme = \Yii::$app->controller->theme;
         $this->pathMap = array('@app/views' => '@wwwroot/themes/' . $theme);
         $this->baseUrl = '@www/themes/' . $theme;
     }
     parent::init();
 }
Пример #7
0
 public function init()
 {
     parent::init();
     if (!isset($this->theme)) {
         $this->theme = 'default';
     }
     $this->basePath = '@app/themes/' . $this->theme;
     $this->baseUrl = '@web/themes/' . $this->theme;
     $this->pathMap = ['@frontend/views' => '@app/themes/' . $this->theme];
 }
Пример #8
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (isset(Yii::$app->params['template'])) {
         $this->template = \Yii::$app->params['template'];
     }
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = ['css' => ['css/bootstrap.min.css']];
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapPluginAsset'] = ['js' => ['js/bootstrap.min.js']];
     Yii::$app->assetManager->bundles['yii\\web\\JqueryAsset'] = ['js' => ['jquery.min.js']];
     Yii::$app->assetManager->bundles['yii\\jui\\JuiAsset'] = ['js' => ['jquery-ui.min.js']];
     $this->pathMap['@modules'] = '@modules/views/frontend/themes/' . $this->template;
 }
Пример #9
0
 /**
  * @throws InvalidConfigException
  */
 public function init()
 {
     if (!empty($this->current)) {
         if (empty($this->themes)) {
             throw new InvalidConfigException('The "themes" property must be set.');
         }
         $this->defaultLayout = null;
         $this->validateTheme($this->current);
         $this->changeTheme($this->current);
     } else {
         $this->setBasePath('@app');
     }
     parent::init();
 }
Пример #10
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     /*
     Yii::$app->assetManager->bundles['yii\bootstrap\BootstrapAsset'] = [
         'sourcePath' => '@alias/themes/site/assets',
         'css' => [
             'css/bootstrap.min.css'
         ]
     ];
     Yii::$app->assetManager->bundles['yii\bootstrap\BootstrapPluginAsset'] = [
         'sourcePath' => 'alias/themes/site/assets',
         'js' => [
             'js/bootstrap.min.js'
         ]
     ];
     */
 }
Пример #11
0
 public function init()
 {
     parent::init();
     /*        Yii::$app->assetManager->bundles['yii\bootstrap\BootstrapAsset'] = [
                 'sourcePath' => '@common/themes/markito/assets',
                 'css' => [
                     'css/style.less'
                 ]
             ];
             Yii::$app->assetManager->bundles['yii\bootstrap\BootstrapPluginAsset'] = [
                 'sourcePath' => '@common/themes/site/assets',
                 'js' => [
                     'js/bootstrap.min.js'
                 ]
             ];
             Yii::$container->set('yii\grid\CheckboxColumn', [
                 'checkboxOptions' => [
                     'class' => 'simple'
                 ]
             ]);*/
 }
Пример #12
0
 public function init()
 {
     $this->setBasePath('@webroot/themes/' . $this->name);
     $this->pathMap = ['@humhub/views' => '@webroot/themes/' . $this->name . '/views'];
     parent::init();
 }
Пример #13
0
 public function init()
 {
     parent::init();
 }
Пример #14
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = ['sourcePath' => '@app/themes/site/assets', 'css' => []];
     $this->assetManager->bundles['yii\\bootstrap\\BootstrapPluginAsset'] = ['sourcePath' => '@app/themes/site/assets', 'js' => ['js/bootstrap.min.js']];
 }
 public function init()
 {
     parent::init();
     $this->bodyClass = $this->options . ' ' . $this->skin . ' ' . $this->layout;
 }
Пример #16
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = ['sourcePath' => '@vova07/themes/site', 'css' => ['css/bootstrap.min.css', 'js/jquery-ui-1.11.2/jquery-ui.css']];
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapPluginAsset'] = ['sourcePath' => '@vova07/themes/site', 'js' => ['js/bootstrap.min.js', 'js/jquery-ui-1.11.2/jquery-ui.js', 'https://rawgit.com/dinbror/bpopup/master/jquery.bpopup.min.js']];
 }
Пример #17
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = ['sourcePath' => '@vova07/themes/admin', 'css' => ['css/bootstrap.min.css', 'js/jquery-ui-1.11.2/jquery-ui.css']];
     Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapPluginAsset'] = ['sourcePath' => '@vova07/themes/admin', 'js' => ['js/bootstrap.min.js', 'js/jquery-ui-1.11.2/jquery-ui.js', 'js/custom.js']];
 }
Пример #18
0
 public function init()
 {
     parent::init();
     Yii::$container->set('yii\\grid\\CheckboxColumn', ['checkboxOptions' => ['class' => 'simple']]);
     $this->registerTranslations();
 }
Пример #19
0
 public function init()
 {
     parent::init();
     // The path for images directly accessed using the img tag
     Yii::setAlias("@images", "@web/images");
 }