-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCookieButtonAsset.php
54 lines (48 loc) · 1.46 KB
/
CookieButtonAsset.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
47
48
49
50
51
52
53
54
<?php
/**
* @link http://diemeisterei.de
* @copyright Copyright (c) 2014 diemeisterei GmbH
* @license https://github.com/dmstr/yii2-cookie-button/LICENSE.md
* @author Marc Mautz <[email protected]>
*/
namespace dmstr\cookiebutton;
use yii\web\AssetBundle as AssetBundle;
/**
* This declares the asset files required by the CookieButton.
*
* @author Marc Mautz <[email protected]>
* @since 2.0
*/
class CookieButtonAsset extends AssetBundle
{
/**
* @inheritdoc
* @var string the source path to the asset files.
* In case you have asset files under a non web accessible directory,
* that is the case for any extension, you need to specify $sourcePath instead of $basePath and $baseUrl.
*/
public $sourcePath = '@dmstr/cookiebutton/assets/';
/**
* @inheritdoc
* @var array list of CSS files that this bundle contains.
*/
public $css = [];
/**
* @inheritdoc
* @var array list of JavaScript files that this bundle contains.
*/
public $js = [
'js/jquery.cookie.js',
'js/cookie.button.js'
];
/**
* @inheritdoc
* @var array dependencies on other asset bundles are specified via $depends property.
* It is an array that contains fully qualified class names of bundle classes
* that should be published in order for this bundle to work properly.
*/
public $depends = [
'yii\web\JqueryAsset',
'yii\bootstrap\BootstrapAsset',
];
}