Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv29300
Modified Files:
inc_presentation.php3 naviguer.php3
Log Message:
Pour essai: petites icones dans liste d'article & sous-rubriques
Index: naviguer.php3
RCS file: /home/spip-cvs/spip/ecrire/naviguer.php3,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- naviguer.php3 23 Sep 2004 15:05:23 -0000 1.82
+++ naviguer.php3 2 Oct 2004 22:24:41 -0000 1.83
@@ -11,6 +11,9 @@
function enfant($collection){
global $les_enfants, $couleur_foncee, $lang_dir;
+ global $spip_display, $spip_lang_left, $spip_lang_right;
+ global $connect_id_auteur;
+
$query2 = "SELECT * FROM spip_rubriques WHERE id_parent=\"$collection\" ORDER BY titre";
$result2 = spip_query($query2);
@@ -28,6 +31,30 @@
$les_enfants.= "<div class='enfants'>";
if ($id_parent == "0") $les_enfants .= debut_cadre_relief("secteur-24.gif", true);
else $les_enfants .= debut_cadre_relief("rubrique-24.gif", true);
+
+
+ if ($spip_display != 1 AND $spip_display!=4 AND lire_meta('image_process') != "non") {
+ $logo = get_image("rubon$id_rubrique");
+ if ($logo) {
+ $fichier = $logo[0];
+ $taille = $logo[1];
+ $taille_x = $taille[0];
+ $taille_y = $taille[1];
+ $taille = image_ratio($taille_x, $taille_y, 48, 36);
+ $w = $taille[0];
+ $h = $taille[1];
+ $fid = $logo[2];
+ $hash = calculer_action_auteur ("reduire $w $h");
+
+ $les_enfants.= "<div style='float: $spip_lang_right; margin-top: -6px; margin-$spip_lang_right: -6px; margin-bottom: -2px;'><img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h'></div>";
+
+ }
+ }
+
+
+
+
+
if (strlen($les_sous_enfants) > 0){
$les_enfants .= $bouton_layer;
}
Index: inc_presentation.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_presentation.php3,v
retrieving revision 1.456
retrieving revision 1.457
diff -u -d -r1.456 -r1.457
--- inc_presentation.php3 2 Oct 2004 21:11:42 -0000 1.456
+++ inc_presentation.php3 2 Oct 2004 22:24:41 -0000 1.457
@@ -471,7 +471,7 @@
global $connect_id_auteur, $connect_statut, $dir_lang;
global $options, $spip_display;
- global $spip_lang_left;
+ global $spip_lang_left, $spip_lang_right;
$activer_messagerie = "oui";
@@ -616,10 +616,31 @@
$puce = "puce-$puce.gif";
$s = "<div style='background: url(img_pack/$puce) $spip_lang_left center no-repeat; margin-$spip_lang_left: 3px; padding-$spip_lang_left: 14px;'>";
-
+
+
if (acces_restreint_rubrique($id_rubrique))
$s .= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('titre_image_admin_article')."'> ";
- $s .= "<a href=\"articles.php3?id_article=$id_article\"$descriptif$dir_lang style=\"display:block;\">".typo($titre);
+ $s .= "<a href=\"articles.php3?id_article=$id_article\"$descriptif$dir_lang style=\"display:block;\">";
+
+ if ($spip_display != 1 AND lire_meta('image_process') != "non") {
+ $logo = get_image("arton$id_article");
+ if ($logo) {
+ $fichier = $logo[0];
+ $taille = $logo[1];
+ $taille_x = $taille[0];
+ $taille_y = $taille[1];
+ $taille = image_ratio($taille_x, $taille_y, 26, 18);
+ $w = $taille[0];
+ $h = $taille[1];
+ $fid = $logo[2];
+ $hash = calculer_action_auteur ("reduire $w $h");
+
+ $s.= "<div style='float: $spip_lang_right; margin-top: -2px; margin-bottom: -2px;'><img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h'></div>";
+
+ }
+ }
+
+ $s .= typo($titre);
if ($afficher_langue AND $lang != $langue_defaut)
$s .= " <font size='1' color='#666666'$dir_lang>(".traduire_nom_langue($lang).")</font>";
if ($petition) $s .= " <font size=1 color='red'>"._T('lien_petitions')."</font>";