From f389ffba3bffabeed75b15585c1dab2ce8378845 Mon Sep 17 00:00:00 2001
From: ARNO* <arno@rezo.net>
Date: Sat, 23 Aug 2008 13:44:00 +0000
Subject: [PATCH] CSS avec adresses absolues

---
 ecrire/inc/utils.php            | 2 +-
 prive/style_prive.html          | 2 +-
 prive/style_prive_fonctions.php | 2 +-
 prive/style_vieilles_def.html   | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index 4169f61d09..f3adc982a0 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -1039,7 +1039,7 @@ function spip_initialisation($pi=NULL, $pa=NULL, $ti=NULL, $ta=NULL) {
 
 	static $too_late = 0;
 	if ($too_late++) return;
-
+	
 	define('_DIR_IMG', $pa);
 	define('_DIR_LOGOS', $pa);
 	define('_DIR_IMG_ICONES', _DIR_LOGOS . "icones/");
diff --git a/prive/style_prive.html b/prive/style_prive.html
index 1d3b661f8b..3b11b1c500 100644
--- a/prive/style_prive.html
+++ b/prive/style_prive.html
@@ -130,7 +130,7 @@ select.fondl { padding: 0; }
 #bandeau-principal a {cursor:hand;}
 #bandeau-principal a .icon_fond { width: 48px; height: 48px; background: #GET{claire}; margin: auto; }
 #bandeau-principal a.selection .icon_fond { width: 48px; margin:auto }
-#bandeau-principal a:hover span.icon_fond { background:url(#EVAL{ _DIR_IMG_PACK}fond-gris-anim.gif); width: 48px; height: 48px; margin: auto; }
+#bandeau-principal a:hover span.icon_fond { background:url([(#CHEMIN{[(#EVAL{ _DIR_IMG_PACK})fond-gris-anim.gif]}|url_absolue)]); width: 48px; height: 48px; margin: auto; }
 #bandeau-principal li.boutons_admin:hover .bandeau_sec,
 #bandeau-principal li.boutons_admin.sfhover .bandeau_sec { display: block; }
 #bandeau-principal span.icon_fond span { background: center top no-repeat; height: 48px; display: block; width: 48px; margin: 0; }
diff --git a/prive/style_prive_fonctions.php b/prive/style_prive_fonctions.php
index 86753e56c0..a55348a03e 100644
--- a/prive/style_prive_fonctions.php
+++ b/prive/style_prive_fonctions.php
@@ -1,7 +1,7 @@
 <?php
 
 function image_bg ($img, $couleur, $pos="") {
-	if (function_exists("imagecreatetruecolor")) return "background: url(".extraire_attribut(image_sepia($img, $couleur), "src").") $pos;";
+	if (function_exists("imagecreatetruecolor")) return "background: url(".url_absolue(extraire_attribut(image_sepia($img, $couleur), "src")).") $pos;";
 	else return "background-color: #$couleur;";
 }
 
diff --git a/prive/style_vieilles_def.html b/prive/style_vieilles_def.html
index ccb2a55a1d..3d00e40c4b 100644
--- a/prive/style_vieilles_def.html
+++ b/prive/style_vieilles_def.html
@@ -50,8 +50,8 @@
 
 /* * Formulaires */
 
-.forml { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #f0f0f0; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url(../dist/win_width.htc); font-size: 12px; }
-.formo { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #FFF; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url(../dist/win_width.htc); font-size: 12px; }
+.forml { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #f0f0f0; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url([(#CHEMIN{win_width.htc}|url_absolue)]); font-size: 12px; }
+.formo { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #FFF; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url([(#CHEMIN{win_width.htc}|url_absolue)]); font-size: 12px; }
 .fondl { margin-top: 0px; padding: 3px; background-color: #e4e4e4; border: 1px solid #GET{claire}; background-position: center bottom; float: none; font-size: 11px; }
 .fondo { 
 	margin-top: 0px; 
-- 
GitLab