ModuleRisultatiAsset.php 837 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
<?php

Aster's avatar
Aster committed
3
namespace elitedivision\amos\sondaggi\assets;
Marcello Pivanti's avatar
Marcello Pivanti committed
4
5
6
7
8

use yii\web\AssetBundle;

class ModuleRisultatiAsset extends AssetBundle
{
Aster's avatar
Aster committed
9
    public $sourcePath = '@vendor/elitedivision/amos-sondaggi/src/assets/web';
Marcello Pivanti's avatar
Marcello Pivanti committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

    public $css = [
        'css/stile.css'
    ];
    public $js = [        
    ];
    public $depends = [        
        'yii\web\JqueryAsset',
        'yii\jui\JuiAsset',
        //'kartik\depdrop\DepDropAsset',
        'kartik\depdrop\DepDropExtAsset'
    ];

    public function init()
    {
        $moduleL = \Yii::$app->getModule('layout');
        if(!empty($moduleL))
Aster's avatar
Aster committed
27
        { $this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset'; }
Marcello Pivanti's avatar
Marcello Pivanti committed
28
        else
Aster's avatar
Aster committed
29
        { $this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset'; }
Marcello Pivanti's avatar
Marcello Pivanti committed
30
31
32
        parent::init(); // TODO: Change the autogenerated stub
    }
}