Exemplo n.º 1
0
 /**
  * Loads the CSS files defined in the form, based on its cssfiles attribute
  *
  * @since 2.0
  */
 public function loadCSSFiles()
 {
     // Support for CSS files
     $cssfiles = $this->getAttribute('cssfiles');
     if (!empty($cssfiles)) {
         $cssfiles = explode(',', $cssfiles);
         foreach ($cssfiles as $cssfile) {
             FOFTemplateUtils::addCSS(trim($cssfile));
         }
     }
     // Support for LESS files
     $lessfiles = $this->getAttribute('lessfiles');
     if (!empty($lessfiles)) {
         $lessfiles = explode(',', $lessfiles);
         foreach ($lessfiles as $def) {
             $parts = explode('||', $def, 2);
             $lessfile = $parts[0];
             $alt = count($parts) > 1 ? trim($parts[1]) : null;
             FOFTemplateUtils::addLESS(trim($lessfile), $alt);
         }
     }
 }
Exemplo n.º 2
0
<?php

// 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');