isCached( $cachefile, filemtime( $jsfile ))) { /* * params of the constructor : * $script: the JavaScript to pack, string. * $encoding: level of encoding, int or string : * 0,10,62,95 or 'None', 'Numeric', 'Normal', 'High ASCII'. * default: 62. * $fastDecode: include the fast decoder in the packed result, boolean. * default : true. * $specialChars: if you have flagged your private and local variables * in the script, boolean. * default: false. */ require_once( THEMES_PKG_INCLUDE_PATH.'class.JavaScriptPacker.php' ); $packer = new JavaScriptPacker( file_get_contents( $jsfile ), 'Normal', TRUE, FALSE ); $bitCache->writeCacheFile( $cachefile, $packer->pack() ); } $defer = !empty( $pParams['defer'] ) ? " defer='".$pParams['defer']."'" : ""; return ''; } return ""; }