-
Notifications
You must be signed in to change notification settings - Fork 1
/
ArgonAsset.php
46 lines (38 loc) · 1.02 KB
/
ArgonAsset.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
45
46
<?php
namespace loutrux\argon;
use yii\base\Exception;
use yii\web\AssetBundle;
/**
* Material AssetBundle
* @since 0.1
*/
class ArgonAsset extends AssetBundle
{
public $sourcePath = '@vendor/loutrux/yii2-argon-dashboard';
public $css = [
'template/assets/vendor/nucleo/css/nucleo.css',
'template/assets/vendor/glyphicons/css/glyphicons.css',
'assets/navbar/navbar.css'
];
public $js = [
'template/assets/js/argon.min.js',
'template/assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js',
'assets/navbar/navbar.js'
];
public $depends = [
'yii\web\YiiAsset',
'yii\web\JqueryAsset',
];
/**
* @inheritdoc
*/
public function init()
{
if ((class_exists('\common\models\Appearence')))
$this->css[] = \common\models\Appearence::getCss();
else
$this->css[] = 'template/assets/css/argon.css';
$this->css[] = 'assets/css/override.css';
parent::init();
}
}