ModuleSlideshowAsset.php 938 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
4
5
6
7
<?php

/**
 * Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
 * OPEN 2.0
 *
 *
waltermazza's avatar
waltermazza committed
8
 * @package    arter\amos\slideshow
Marcello Pivanti's avatar
Marcello Pivanti committed
9
10
11
12
 * @category   CategoryName
 * @author     Elite Division S.r.l.
 */

waltermazza's avatar
waltermazza committed
13
namespace arter\amos\slideshow\assets;
Marcello Pivanti's avatar
Marcello Pivanti committed
14
15
16
17
18

use yii\web\AssetBundle;

/**
 * Class ModuleSlideshowAsset
waltermazza's avatar
waltermazza committed
19
 * @package arter\amos\slideshow\assets
Marcello Pivanti's avatar
Marcello Pivanti committed
20
21
22
 */
class ModuleSlideshowAsset extends AssetBundle
{
waltermazza's avatar
waltermazza committed
23
    public $sourcePath = '@vendor/arter/amos-slideshow/src/assets/web';
Marcello Pivanti's avatar
Marcello Pivanti committed
24
25
26
27
28
29
30
31
32
33
34
35
36

    public $css = [
        'less/slideshow.less'
    ];
    public $js = [        
    ];
    public $depends = [
    ];

    public function init()
    {
        $moduleL = \Yii::$app->getModule('layout');
        if(!empty($moduleL))
waltermazza's avatar
waltermazza committed
37
        { $this->depends [] = 'arter\amos\layout\assets\BaseAsset'; }
Marcello Pivanti's avatar
Marcello Pivanti committed
38
        else
waltermazza's avatar
waltermazza committed
39
        { $this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset'; }
Marcello Pivanti's avatar
Marcello Pivanti committed
40
41
42
        parent::init(); // TODO: Change the autogenerated stub
    }
}