diff --git a/doc/conf/globale.docbook b/doc/conf/globale.docbook index 2e2de594..4edc4432 100644 --- a/doc/conf/globale.docbook +++ b/doc/conf/globale.docbook @@ -233,6 +233,14 @@ define('CONST2','val2') + + $GLOBALS['defaultCSSfiles'] + + Tableau déterminant les fichiers CSS à charger sur toute les pages. Ces fichiers seront + chargés dans l'ordre et en dernier permettant de surcharger tous paramètres de style. + + + diff --git a/public_html/conf/config.inc.php b/public_html/conf/config.inc.php index 584463de..b15d1f30 100644 --- a/public_html/conf/config.inc.php +++ b/public_html/conf/config.inc.php @@ -203,4 +203,5 @@ $GLOBALS['defaultJSscipts']=array( 'LSinfosBox.js' ); -?> +// CSS +$GLOBALS['defaultCSSfiles']=array(); diff --git a/public_html/includes/class/class.LSsession.php b/public_html/includes/class/class.LSsession.php index a0bdae06..7458ad48 100644 --- a/public_html/includes/class/class.LSsession.php +++ b/public_html/includes/class/class.LSsession.php @@ -1350,6 +1350,11 @@ class LSsession { // Css self :: addCssFile("LSdefault.css"); + if (isset($GLOBALS['defaultCSSfiles']) && is_array($GLOBALS['defaultCSSfiles'])) { + foreach ($GLOBALS['defaultCSSfiles'] as $file) { + self :: addCssFile($file); + } + } $Css_txt=''; foreach (self :: $CssFiles as $file) { $Css_txt.="\n";