| Server IP : 89.248.107.232 / Your IP : 216.73.217.70 Web Server : Apache System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : seg ( 10005) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/seg-sa.es/gessing.es/wp-content/plugins/akeebabackupwp/app/Awf/Html/ |
Upload File : |
<?php
/**
* @package Awf
* @copyright 2014-2016 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*
* This class is based on the JHtml package of Joomla! 3 but heavily modified
*/
namespace Awf\Html;
use Awf\Application\Application;
use Awf\Uri\Uri;
use Awf\Utils\Template;
/**
* Javascript behaviours abstraction class
*/
abstract class Behaviour
{
/**
* Array containing information for loaded files
*
* @var array
*/
protected static $loaded = array();
/**
* Add unobtrusive JavaScript support for a calendar control.
*
* @param Application $app CSS and JS will be added to the document of the selected application
*
* @return void
*/
public static function calendar(Application $app = null)
{
// Only load once
if (isset(static::$loaded[__METHOD__]))
{
return;
}
if (!is_object($app))
{
$app = Application::getInstance();
}
$document = $app->getDocument();
Template::addJs('media://js/datepicker/bootstrap-datepicker.js');
Template::addCss('media://css/datepicker.css');
static::$loaded[__METHOD__] = true;
}
}