/** * Method to load the system calendar behavior. * * @return void * * @since 1.5.19 * @static */ function calendar() { // Load the behavior and stylesheet files into the document head. JHTML::stylesheet('calendar-jos.css', 'media/system/css/', array(' title' => JText::_('green'), ' media' => 'all')); JHTML::script('calendar.js'); JHTML::script('calendar-setup.js'); // Get and load the calendar translation string into the document head. if ($translation = JHTMLBehavior::_calendartranslation()) { JFactory::getDocument()->addScriptDeclaration($translation); } }
function calendar() { $document =& JFactory::getDocument(); JHTML::stylesheet('calendar-jos.css', 'media/system/css/', array(' title' => JText::_('green'), ' media' => 'all')); JHTML::script('calendar.js', 'media/system/js/'); JHTML::script('calendar-setup.js', 'media/system/js/'); $translation = JHTMLBehavior::_calendartranslation(); if ($translation) { $document->addScriptDeclaration($translation); } }
function calendar() { $document =& JFactory::getDocument(); JHTML::stylesheet('calendar-jos.css', 'media/system/css/', array(' title' => JText::_('green'), ' media' => 'all')); JHTMLBehavior::framework(); KFactory::get('admin::com.ninja.helper.default')->js('/calendar.js'); KFactory::get('admin::com.ninja.helper.default')->js('/calendar-setup.js'); $translation = JHTMLBehavior::_calendartranslation(); if ($translation) { $document->addScriptDeclaration($translation); } }