function smarty_prefilter_magixmin_callback($matches) { $comp = new magixcjquery_compjs_minify(); $comp->_optionsJShrink(); return $comp->jscompressor('jshrink', $matches[1]); //return magixcjquery_compjs_minify::iniJShrink($matches[1],true); }
protected function _setPacker($source, $_encoding, $_fastDecode = true, $_specialChars = false) { require_once 'source/class.JavaScriptPacker.php'; return self::$_packer = new JavaScriptPacker($source, $_encoding, $_fastDecode = true, $_specialChars = false); }