|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
-
-
- namespace frontend\assets;
-
- use yii\web\AssetBundle;
- use yii ;
-
-
-
- class AppAsset extends AssetBundle
- {
- public $basePath = '@webroot';
- public $baseUrl = '@web';
- public $css = [];
- public $js = [];
- public $depends = [
- 'yii\web\YiiAsset',
- 'yii\bootstrap\BootstrapAsset',
- ];
-
- public function __construct() {
- parent::__construct() ;
-
-
- $this->addAsset('css','bootstrap/css/bootstrap.min.css') ;
- $this->addAsset('css','bootstrap/css/bootstrap-theme.min.css');
- $this->addAsset('css','js/bjqs/bjqs.css');
- $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.min.css');
- $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.theme.css');
- $this->addAsset('css','js/lightbox/css/lightbox.css');
- $this->addAsset('css','css/screen.css');
-
-
- $this->addAsset('js','bootstrap/js/bootstrap.min.js');
- $this->addAsset('js','js/vegas/jquery.vegas.js');
- $this->addAsset('js','js/bjqs/bjqs-1.3.min.js');
- $this->addAsset('js','js/jquery-ui-1.11.4.custom/jquery-ui.min.js');
- $this->addAsset('js','js/lightbox/js/lightbox.min.js');
- $this->addAsset('js','js/lechatdesnoisettes.js');
- $this->addAsset('js','js/boulange.js');
- }
-
- public function addAsset($type, $path)
- {
- $this->$type[] = $path.'?v='.filemtime(Yii::getAlias('@app/web/'.$path)) ;
- }
- }
|