-
Notifications
You must be signed in to change notification settings - Fork 0
/
SliderAsset.php
44 lines (40 loc) · 1.44 KB
/
SliderAsset.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace mrlco\revolutionslider;
/**
* Class SliderAsset
*/
class SliderAsset extends \yii\web\AssetBundle
{
public $sourcePath;
public $css = [
'revolution/css/settings.css',
'revolution/css/layers.css',
'revolution/css/navigation.css',
];
public $js = [
'revolution/js/jquery.themepunch.tools.min.js',
'revolution/js/jquery.themepunch.revolution.min.js',
'revolution-addons/slicey/js/revolution.addon.slicey.min.js',
'revolution/js/extensions/revolution.extension.actions.min.js',
'revolution/js/extensions/revolution.extension.carousel.min.js',
'revolution/js/extensions/revolution.extension.kenburn.min.js',
'revolution/js/extensions/revolution.extension.layeranimation.min.js',
'revolution/js/extensions/revolution.extension.migration.min.js',
'revolution/js/extensions/revolution.extension.navigation.min.js',
'revolution/js/extensions/revolution.extension.parallax.min.js',
'revolution/js/extensions/revolution.extension.slideanims.min.js',
'revolution/js/extensions/revolution.extension.video.min.js',
];
public $depends = [
'yii\web\JqueryAsset',
];
public $publishOptions = [
'forceCopy' => true,
];
public function init()
{
$module = \Yii::$app->getModule('revolutionslider');
$this->sourcePath = $module->getPluginLocation();
parent::init();
}
}