Update of /home/spip-cvs/spip/ecrire
In directory miel:/tmp/cvs-serv430/ecrire
Modified Files:
inc_presentation.php3 spip_style.php3
Log Message:
- cache et feuille de style
- petit bug visuel
Index: inc_presentation.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_presentation.php3,v
retrieving revision 1.320
retrieving revision 1.321
diff -u -d -r1.320 -r1.321
--- inc_presentation.php3 9 Nov 2003 18:40:54 -0000 1.320
+++ inc_presentation.php3 11 Nov 2003 01:43:40 -0000 1.321
@@ -1303,11 +1303,10 @@
if ($danger) echo "<div class='danger'>";
if ($spip_display != 1) {
- // <div> intercalaire pour konqueror / raffari
- echo "<a href='$lien' class='cellule-h'><div><table cellpadding='0' valign='middle'><tr>\n";
- echo "<td><a href='$lien'><div class='cellule-h-icone'><img style='background: url(\"img_pack/$fond\")' src='img_pack/$fonction' alt=''></div></a></td>\n";
+ echo "<a href='$lien' class='cellule-h'><table cellpadding='0' valign='middle'><tr>\n";
+ echo "<td><a href='$lien'><div class='cellule-h-icone'><img class='i' style='background: url(\"img_pack/$fond\")' src='img_pack/$fonction' alt=''></div></a></td>\n";
echo "<td class='cellule-h-lien'><a href='$lien' class='cellule-h'>$texte</a></td>\n";
- echo "</tr></table></div></a>\n";
+ echo "</tr></table></a>\n";
}
else {
echo "<a href='$lien' class='cellule-h-texte'><div>$texte</div></a>\n";
Index: spip_style.php3
RCS file: /home/spip-cvs/spip/ecrire/spip_style.php3,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- spip_style.php3 8 Nov 2003 17:48:22 -0000 1.35
+++ spip_style.php3 11 Nov 2003 01:43:41 -0000 1.36
@@ -1,8 +1,22 @@
<?php
- include ("inc_version.php3"); // pour le register_globals
+ include("inc_version.php3");
+
+ // En-tetes
+ $lastmodified = @filemtime("spip_style.php3");
+ $gmoddate = gmdate("D, d M Y H:i:s", $lastmodified);
+ $if_modified_since = ereg_replace(';.*$', '', $HTTP_IF_MODIFIED_SINCE);
+ $if_modified_since = trim(str_replace('GMT', '', $if_modified_since));
+ if ($if_modified_since == $gmoddate) {
+ http_status(304);
+ $headers_only = true;
+ }
+ @Header ("Last-Modified: ".$gmoddate." GMT");
+ @Header ("Expires: ".gmdate("D, d M Y H:i:s", $lastmodified + 7 * 24 * 3600)." GMT");
@Header ("Content-Type: text/css");
- @Header ("Expires: ".gmdate("D, d M Y H:i:s", time() + 7 * 24 * 3600)." GMT");
- @Header ("Last-Modified: ".gmdate("D, d M Y H:i:s", @filemtime("spip_style.php3"))." GMT");
+
+ if ($headers_only) exit;
+
+ // Envoyer la feuille de style
if (!isset($couleur_claire))
$couleur_claire = "#EDF3FE";
if (!isset($couleur_foncee))
@@ -188,53 +202,42 @@
margin: 0px;
}
+
/*
* Icones horizontales
*/
a.cellule-h {
- text-align: <?php echo $left; ?>;
display: block;
}
a.cellule-h {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-weight: bold;
+ font-size: 10px;
+ text-align: <?php echo $left; ?>;
text-decoration: none;
color: #666666;
}
-a.cellule-h:hover {
+a.cellule-h:hover, a.cellule-h:hover a.cellule-h, a.cellule-h a.cellule-h:hover {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-weight: bold;
+ font-size: 10px;
+ text-align: <?php echo $left; ?>;
text-decoration: none;
color: #000000;
}
a.cellule-h div.cellule-h-icone {
background: url(img_pack/pave-gris-24.png) no-repeat center <?php echo $left; ?>;
}
-
a.cellule-h:hover div.cellule-h-icone {
background: url(img_pack/pave-blanc-24.png) no-repeat center <?php echo $left; ?>;
}
-
-.danger a.cellule-h {
- text-decoration: none;
-}
-.danger a.cellule-h:hover {
- text-decoration: none;
-}
a.cellule-h table {
border: none;
padding: 0px;
margin: 0px;
}
-a.cellule-h td {
- text-align: <?php echo $left; ?>;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-weight: bold;
- font-size: 10px;
-}
-a.cellule-h:hover td {
- text-align: <?php echo $left; ?>;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-weight: bold;
- font-size: 10px;
-}
+
a.cellule-h td.cellule-h-lien {
filter: DropShadow(Color=white, OffX=1, OffY=1, Positive=1) DropShadow(Color=#cccccc, OffX=-1, OffY=-1, Positive=1);
}