-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSliderAsset.php
44 lines (36 loc) · 866 Bytes
/
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
/**
* @copyright Copyright © Klaus Mergen, 2014
* @package yii2-widgets
* @version 1.1.0
*/
namespace kmergen\jssor;
use yii\web\AssetBundle;
/**
* Asset bundle for Slider Widget
*
* @author Klaus Mergen <[email protected]>
* @since 1.0
*/
class SliderAsset extends AssetBundle
{
public $depends = [
'yii\web\JqueryAsset',
'yii\bootstrap\BootstrapAsset',
];
public function init()
{
$this->sourcePath = __DIR__ . '/assets';
$this->js = YII_DEBUG ? [
'js/jssor.js',
'js/jssor.slider.js'
] : ['js/jssor.slider.mini.js'];
$this->css = YII_DEBUG ? [
'css/slider.css',
'css/arrows.css',
'css/bullets.css',
'css/thumbnails.css'
] : ['css/all.min.css'];
parent::init();
}
}