%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/var/www/html/ppaobm/vendor/edofre/yii2-fullcalendar/src/ |
Upload File : |
<?php
namespace edofre\fullcalendar;
/**
* Class CoreAsset
* @package edofre\fullcalendar
*/
class CoreAsset extends \yii\web\AssetBundle
{
/**
* @var boolean
* Whether to automatically generate the needed language js files.
* If this is true, the language js files will be determined based on the actual usage of [[DatePicker]]
* and its language settings. If this is false, you should explicitly specify the language js files via [[js]].
*/
public $autoGenerate = true;
/** @var array Required CSS files for the fullcalendar */
public $css = [
'fullcalendar.css',
];
/** @var array List of the dependencies this assets bundle requires */
public $depends = [
'yii\web\YiiAsset',
'edofre\fullcalendar\MomentAsset',
'edofre\fullcalendar\PrintAsset',
];
/**
* @var boolean
* FullCalendar can display events from a public Google Calendar. Google Calendar can serve as a backend that manages and persistently stores event data (a feature that FullCalendar currently lacks).
* Please read http://fullcalendar.io/docs/google_calendar/ for more information
*/
public $googleCalendar = false;
/** @var array Required JS files for the fullcalendar */
public $js = [
'fullcalendar.js',
'locale-all.js',
];
/** @var string Language for the fullcalendar */
public $language = null;
/** @var string Location of the fullcalendar distribution */
public $sourcePath = '@npm/fullcalendar/dist';
/**
* @inheritdoc
*/
public function registerAssetFiles($view)
{
$language = empty($this->language) ? \Yii::$app->language : $this->language;
if (file_exists($this->sourcePath . "/locale/$language.js")) {
$this->js[] = "locale/$language.js";
}
if ($this->googleCalendar) {
$this->js[] = 'gcal.js';
}
// We need to return the parent implementation otherwise the scripts are not loaded
return parent::registerAssetFiles($view);
}
}