2009-07-15 14:27:29 +00:00
|
|
|
<?php
|
|
|
|
require_once 'includecss.php';
|
|
|
|
if($sortie!='prt') require_once 'includejs.php';
|
|
|
|
|
2009-07-21 13:55:40 +00:00
|
|
|
$force = FALSE;
|
2009-07-17 15:00:46 +00:00
|
|
|
|
2009-07-15 14:27:29 +00:00
|
|
|
if(isset($tabStyles) && count($tabStyles)>0){
|
2009-07-15 15:58:10 +00:00
|
|
|
foreach($tabStyles as $name => $group){
|
2009-07-15 14:27:29 +00:00
|
|
|
if( in_array('all', $group['pages']) || in_array($page, $group['pages']) ){
|
2009-07-17 15:00:46 +00:00
|
|
|
if(ENVIRONNEMENT == 'DEV' || $force){
|
2009-07-15 15:58:10 +00:00
|
|
|
foreach($group['list'] as $style){
|
|
|
|
print '<link rel="stylesheet" type="text/css" href="./css/'.$style.'" />';
|
|
|
|
print "\n";
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
print '<link rel="stylesheet" type="text/css" href="./min/?g='.$name.'"/>';
|
2009-07-15 14:27:29 +00:00
|
|
|
print "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($tabScripts) && count($tabScripts)>0){
|
2009-07-15 15:58:10 +00:00
|
|
|
foreach($tabScripts as $name => $group){
|
2009-07-15 14:27:29 +00:00
|
|
|
if(in_array('all', $group['pages']) || in_array($page, $group['pages'])){
|
2009-07-17 15:00:46 +00:00
|
|
|
if(ENVIRONNEMENT == 'DEV' || $force){
|
2009-07-15 15:58:10 +00:00
|
|
|
foreach($group['list'] as $script){
|
|
|
|
print '<script type="text/javascript" src="./js/'.$script.'"></script>';
|
|
|
|
print "\n";
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
print '<script type="text/javascript" src="./min/?g='.$name.'"></script>';
|
2009-07-15 14:27:29 +00:00
|
|
|
print "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|