public static function menu() { $task = JFactory::getApplication()->input->get('task', ''); Zo2Factory::import('core.classes.admin.menu'); if (method_exists('AdminMenu', $task)) { echo AdminMenu::$task(); exit; } }
<?php /** * Zo2 (http://www.zootemplate.com/zo2) * A powerful Joomla template framework * * @link http://www.zootemplate.com/zo2 * @link https://github.com/cleversoft/zo2 * @author ZooTemplate <http://zootemplate.com> * @copyright Copyright (c) 2014 CleverSoft (http://cleversoft.co/) * @license GPL v2 */ defined('_JEXEC') or die; Zo2Factory::import('vendor.less.lessc'); Zo2Factory::import('vendor.minify.css'); Zo2Factory::import('vendor.minify.minifier'); /** * Class exists checking */ if (!class_exists('Zo2HelperCompiler')) { /** * */ class Zo2HelperCompiler { /** * Compile less -> css * @param str $inputFile * @param str $outputFile * @return boolean */
/** * Remove whitespace, tab, new line from input * * @param $input * @return mixed */ protected function _compressHtml($buffer) { Zo2Factory::import('vendor.ganon.ganon'); $dom = str_get_dom($buffer); HTML_Formatter::minify_html($dom); $buffer = (string) $dom; return $buffer; }