forked from 2amigos/yii2-date-time-picker-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DateTimePickerAsset.php
31 lines (27 loc) · 902 Bytes
/
DateTimePickerAsset.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
<?php
/**
* @copyright Copyright (c) 2013 2amigOS! Consulting Group LLC
* @link http://2amigos.us
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
*/
namespace dosamigos\datetimepicker;
use yii\web\AssetBundle;
/**
* DateTimePickerAsset
* @author Antonio Ramirez <amigo.cobos@gmail.com>
* @link http://www.ramirezcobos.com/
* @link http://www.2amigos.us/
* @package dosamigos\datetimepicker
*/
class DateTimePickerAsset extends AssetBundle
{
public $sourcePath = '@vendor/2amigos/yii2-date-time-picker-widget/assets';
public $depends = [
'yii\bootstrap\BootstrapPluginAsset'
];
public function init()
{
$this->css[] = YII_DEBUG ? 'css/bootstrap-datetimepicker.css' : 'css/bootstrap-datetimepicker.min.css';
$this->js[] = YII_DEBUG ? 'js/bootstrap-datetimepicker.js' : 'js/bootstrap-datetimepicker.min.js';
}
}