ModuleSondaggiRisposteAsset.php 741 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
<?php

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

use yii\web\AssetBundle;

class ModuleSondaggiRisposteAsset extends AssetBundle
{
Aster's avatar
Aster committed
9
    public $sourcePath = '@vendor/arter/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

    public $css = [
    ];
    public $js = [
        'js/condizioneRisposteSondaggio.js'
    ];
    public $depends = [        
        'yii\web\JqueryAsset',
        'yii\jui\JuiAsset'
    ];

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