/** * Loads the Javascript files defined in the form, based on its jsfiles attribute * * @since 2.0 */ public function loadJSFiles() { $jsfiles = $this->getAttribute('jsfiles'); if (empty($jsfiles)) { return; } $jsfiles = explode(',', $jsfiles); foreach ($jsfiles as $jsfile) { FOFTemplateUtils::addJS(trim($jsfile)); } }
// Protect from unauthorized access defined('_JEXEC') or die; // version JLoader::import('joomla.version'); $version = new JVersion(); if (!$version->isCompatible('3.0')) { FOFTemplateUtils::addJS('media://zoo/libraries/jquery/jquery.js'); // workaround for jQuery 1.9 transition FOFTemplateUtils::addJS('media://com_zlmanager/js/jquery.migrate.min.js'); } else { JHTML::_('jquery.framework'); } FOFTemplateUtils::addCSS('media://com_zlmanager/css/backend.css'); FOFTemplateUtils::addJS('media://com_zlmanager/js/bootstrap.modal.min.js'); FOFTemplateUtils::addJS('media://com_zlmanager/js/download.js'); JHTML::_('behavior.tooltip'); ?> <div class="btn-group"> <a class="btn" href="#" id="hide_not_installed"><?php echo JText::_('COM_ZLMANAGER_HIDENOTINSTALLED'); ?> </a> <a class="btn" href="#" id="hide_uptodate"><?php echo JText::_('COM_ZLMANAGER_HIDEUPTODATE'); ?> </a> <a class="btn" href="#" id="show_update"><?php echo JText::_('COM_ZLMANAGER_SHOWTOUPDATE'); ?>