示例#1
0
                if (!empty($combine->files)) {
                    $tag = 'js/COMBINED_' . md5($combine->tag);
                    self::$combined[$tag] = $combine->files;
                    $ret[] = $tag . '?t=' . md5($combine->stamp);
                    $combine->files = array();
                    $combine->tag = '';
                    $combine->last = '';
                }
                if ($_js->flags & self::NO_MINIFY || (self::$features & self::FEAT_MINIFY) == 0) {
                    $ret[] = self::GetVersionLink($_js->link);
                } else {
                    $tag = 'js/MINIFIED_' . md5($_js->link);
                    self::$combined[$tag] = array($_js);
                    $ret[] = $tag . '?t=' . self::getModStamp($_js->link);
                }
            } else {
                $combine->tag .= $_js->link . ':';
                $combine->stamp .= self::getModStamp($_js->link);
                $combine->files[] = $_js;
            }
        }
        if (!empty($combine->files)) {
            $tag = 'js/COMBINED_' . md5($combine->tag);
            self::$combined[$tag] = $combine->files;
            $ret[] = $tag . '?t=' . md5($combine->stamp);
        }
        return $ret;
    }
}
Head::Init();