diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 7215acba5e7..a9e6dd51f03 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -133,6 +133,8 @@ if (isset($user->conf->MAIN_THEME) && $user->conf->MAIN_THEME) { $conf->theme=$user->conf->MAIN_THEME; $conf->css = "theme/".$conf->theme."/".$conf->theme.".css"; + // Si feuille de style en php existe + if (file_exists(DOL_DOCUMENT_ROOT.'/'.$conf->css.".php")) $conf->css.=".php"; } if (isset($user->conf->MAIN_DISABLE_JAVASCRIPT) && $user->conf->MAIN_DISABLE_JAVASCRIPT) { @@ -237,7 +239,8 @@ function top_htmlhead($head, $title="", $target="") print ''."\n"; // Definition en alternate style sheet des feuilles de styles les plus maintenues - print ''."\n"; + // Les navigateurs qui supportent sont rares. + print ''."\n"; print ''."\n"; print ''."\n"; diff --git a/htdocs/theme/eldy/eldy.css b/htdocs/theme/eldy/eldy.css.php similarity index 99% rename from htdocs/theme/eldy/eldy.css rename to htdocs/theme/eldy/eldy.css.php index eb5e563949b..7916e28e4b9 100644 --- a/htdocs/theme/eldy/eldy.css +++ b/htdocs/theme/eldy/eldy.css.php @@ -1,3 +1,4 @@ + * * This program is free software; you can redistribute it and/or modify @@ -18,6 +19,11 @@ * $Source$ */ +header('Content-type: text/css'); + +require("../../conf/conf.php"); + +?> /***** Style du fond *****/ body { @@ -72,7 +78,7 @@ textarea.flat font: 12px helvetica, verdana, arial, sans-serif; font-size: 100%; border: 1px solid #ccd7e0; - background-image : url(/theme/eldy/img/button_bg.png); + background-image : url(); background-position : bottom; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;