@@ 18-37 (lines=20) @@ | ||
15 | * @author Agiel K. Saputra <[email protected]> |
|
16 | * @since 0.1.0 |
|
17 | */ |
|
18 | class AppAsset extends AssetBundle |
|
19 | { |
|
20 | public $basePath = '@webroot'; |
|
21 | public $baseUrl = '@web'; |
|
22 | public $depends = [ |
|
23 | 'codezeen\yii2\adminlte\AdminLteAsset', |
|
24 | 'backend\assets\AppAssetIe9', |
|
25 | ]; |
|
26 | ||
27 | public function init() |
|
28 | { |
|
29 | if (YII_DEBUG) { |
|
30 | $this->css = ['css/site.css']; |
|
31 | $this->js = ['js/site.js']; |
|
32 | } else { |
|
33 | $this->css = ['css/min/site.css']; |
|
34 | $this->js = ['js/min/site.js']; |
|
35 | } |
|
36 | } |
|
37 | } |
|
38 |
@@ 18-38 (lines=21) @@ | ||
15 | * @author Agiel K. Saputra <[email protected]> |
|
16 | * @since 0.1.0 |
|
17 | */ |
|
18 | class MediaBrowserAsset extends AssetBundle |
|
19 | { |
|
20 | public $basePath = '@webroot'; |
|
21 | public $baseUrl = '@web'; |
|
22 | public $depends = [ |
|
23 | 'backend\assets\AppAsset', |
|
24 | 'yii\jui\JuiAsset', |
|
25 | 'dosamigos\fileupload\FileUploadUIAsset', |
|
26 | ]; |
|
27 | ||
28 | public function init() |
|
29 | { |
|
30 | if (YII_DEBUG) { |
|
31 | $this->css = ['css/media.browser.css']; |
|
32 | $this->js = ['js/media.browser.js']; |
|
33 | } else { |
|
34 | $this->css = ['css/min/media.browser.css']; |
|
35 | $this->js = ['js/min/media.browser.js']; |
|
36 | } |
|
37 | } |
|
38 | } |
|
39 |
@@ 18-36 (lines=19) @@ | ||
15 | * @author Agiel K. Saputra <[email protected]> |
|
16 | * @since 0.3.0 |
|
17 | */ |
|
18 | class MediaModalAsset extends AssetBundle |
|
19 | { |
|
20 | public $basePath = '@webroot'; |
|
21 | public $baseUrl = '@web'; |
|
22 | public $depends = [ |
|
23 | 'backend\assets\AppAsset', |
|
24 | ]; |
|
25 | ||
26 | public function init() |
|
27 | { |
|
28 | if (YII_DEBUG) { |
|
29 | $this->css = ['css/media.modal.css']; |
|
30 | $this->js = ['js/media.modal.js']; |
|
31 | } else { |
|
32 | $this->css = ['css/min/media.modal.css']; |
|
33 | $this->js = ['js/min/media.modal.js']; |
|
34 | } |
|
35 | } |
|
36 | } |
|
37 |
@@ 18-36 (lines=19) @@ | ||
15 | * @author Agiel K. Saputra <[email protected]> |
|
16 | * @since 0.1.0 |
|
17 | */ |
|
18 | class MenuAsset extends AssetBundle |
|
19 | { |
|
20 | public $basePath = '@webroot'; |
|
21 | public $baseUrl = '@web'; |
|
22 | public $depends = [ |
|
23 | 'backend\assets\AppAsset', |
|
24 | ]; |
|
25 | ||
26 | public function init() |
|
27 | { |
|
28 | if (YII_DEBUG) { |
|
29 | $this->css = ['css/menu.css']; |
|
30 | $this->js = ['js/menu.js']; |
|
31 | } else { |
|
32 | $this->css = ['css/min/menu.css']; |
|
33 | $this->js = ['js/min/menu.js']; |
|
34 | } |
|
35 | } |
|
36 | } |
|
37 |