36 lines
774 B
PHP
36 lines
774 B
PHP
<?php
|
|
/**
|
|
* Groups configuration for default Minify implementation
|
|
* @package Minify
|
|
*/
|
|
|
|
function arrayMinify($tabStyles, $tabScripts){
|
|
global $firephp;
|
|
$return = array();
|
|
|
|
if(isset($tabScripts) && count($tabScripts)>0){
|
|
foreach($tabScripts as $name => $group){
|
|
$return[$name] = array();
|
|
foreach($group['list'] as $script){
|
|
$return[$name][] = '//js/uncompress/'.$script;
|
|
}
|
|
}
|
|
}
|
|
|
|
if(isset($tabStyles) && count($tabStyles)>0){
|
|
foreach($tabStyles as $name => $group){
|
|
$return[$name] = array();
|
|
foreach($group['list'] as $style){
|
|
$return[$name][] = '//css/'.$style;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
$firephp->log($return,'tab');
|
|
return $return;
|
|
}
|
|
|
|
require_once '../includecss.php';
|
|
require_once '../includejs.php';
|
|
return arrayMinify($tabStyles, $tabScripts); |