Esempio n. 1
0
 public static function minify($js, $filename = '')
 {
     static $instance;
     // this is a singleton
     if (!$instance) {
         $instance = new FD31_JSMinPlus();
     }
     return $instance->min($js, $filename);
 }
Esempio n. 2
0
 /**
  * Default fallback function if CC API fails
  * @param string $js
  * @return string
  */
 protected function _fallback($js)
 {
     require_once FD31_FOUNDRY_LIB . '/jsmin.php';
     return FD31_JSMinPlus::minify($js);
 }