diff --git a/.gitattributes b/.gitattributes index 5de53b7f97e80015674987249b1abc5d31c8cb1c..d0cd9bfb9e3595ab0800eba87c042d54e14c3138 100644 --- a/.gitattributes +++ b/.gitattributes @@ -44,6 +44,7 @@ IMG/test.png -text NAVPICS/petit-logo-spip.gif -text NAVPICS/point.gif -text NAVPICS/rien.gif -text +ecrire/img_pack/admin-12.gif -text ecrire/img_pack/administration-24.gif -text ecrire/img_pack/administration-48.gif -text ecrire/img_pack/aide-48.gif -text diff --git a/ecrire/breves.php3 b/ecrire/breves.php3 index 30d5177862b6cbb8b1334e422db55a75d0444be3..051bede00652457e86b5e4bf4396b2df6303ef99 100644 --- a/ecrire/breves.php3 +++ b/ecrire/breves.php3 @@ -33,12 +33,11 @@ function enfant($leparent){ debut_cadre_enfonce(); echo "<a href='naviguer.php3?coll=$id_rubrique'>"; - if (acces_restreint_rubrique($id_rubrique)) - echo "<IMG SRC='img_pack/triangle-anim.gif' WIDTH=16 HEIGHT=14 BORDER=0>"; - else - echo "<IMG SRC='img_pack/secteur-24.gif' WIDTH=24 HEIGHT=24 BORDER=0 align='middle'>"; + echo "<IMG SRC='img_pack/secteur-24.gif' WIDTH=24 HEIGHT=24 BORDER=0 align='middle'>"; echo "</a>"; - + if (acces_restreint_rubrique($id_rubrique)) + echo " <img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='Vous pouvez administrer cette rubrique et ses sous-rubriques' border='0' align='middle'>"; + echo " <FONT FACE='Verdana,Arial,Helvetica,sans-serif' SIZE=3>"; echo "<B>$titre</B></FONT>\n"; echo aide ("breves"); @@ -54,8 +53,8 @@ function enfant($leparent){ echo "<div align='right'>"; icone("Écrire une nouvelle brève", "breves_edit.php3?new=oui&id_rubrique=$id_rubrique", "breve-24.gif", "creer.gif"); echo "</div>"; - - fin_cadre_enfonce(); + + fin_cadre_enfonce(); } } diff --git a/ecrire/img_pack/admin-12.gif b/ecrire/img_pack/admin-12.gif new file mode 100644 index 0000000000000000000000000000000000000000..ed0de6d02a4d37d5c2d8ee3549f5ed5ea9c77d31 Binary files /dev/null and b/ecrire/img_pack/admin-12.gif differ diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3 index 31e0407250a13adfe0497f16bedfaf7c394b8ed3..39a605148ca918c2b3ea1f44abad5b84d606f40a 100644 --- a/ecrire/inc_presentation.php3 +++ b/ecrire/inc_presentation.php3 @@ -372,7 +372,7 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a $id_auteur = $row['id_auteur']; $nom_auteur = typo($row['nom']); $auteur_messagerie = $row['messagerie']; - + $les_auteurs .= ", $nom_auteur"; if ($id_auteur != $connect_id_auteur AND $auteur_messagerie != "non" AND $activer_messagerie != "non") { $les_auteurs .= " ".bouton_imessage($id_auteur, $row); @@ -387,17 +387,19 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a else if ($statut == 'prop') $puce = 'orange'; else if ($statut == 'refuse') $puce = 'rouge'; else if ($statut == 'poubelle') $puce = 'poubelle'; - if (acces_restreint_rubrique($id_rubrique)) + /*if (acces_restreint_rubrique($id_rubrique)) $puce = "puce-$puce-anim.gif"; - else + else*/ $puce = "puce-$puce.gif"; $s .= "<img src=\"img_pack/$puce\" alt='' width=\"13\" height=\"14\" border=\"0\"></a> "; + if (acces_restreint_rubrique($id_rubrique)) + $s .= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='Vous pouvez administrer cet article'> "; $s .= "<a href=\"articles.php3?id_article=$id_article\"$descriptif>".typo($titre)."</a>"; if ($petition) $s .= " <Font size=1 color='red'>PÉTITION</font>"; $vals[] = $s; - + if ($afficher_auteurs) $vals[] = $les_auteurs; $s = affdate($date); @@ -420,7 +422,7 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a $styles = array('arial2', 'arial1'); } afficher_liste($largeurs, $table, $styles); - + echo "</table></td></tr></table>"; if ($afficher_cadre) fin_cadre_relief(); @@ -1485,7 +1487,7 @@ function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivr // grand ecran echo "<td align='center'>"; $lien = $clean_link; - + if ($spip_ecran == "large") { $lien->addVar('set_ecran', 'etroit'); echo "<a href='". $lien->getUrl() ."'><img src='img_pack/set-ecran.gif' title='Petit écran' alt='Petit écran' width='23' height='19' border='0'></a>"; diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3 index 75d4df1be9032d0c3bdbb670f69ea3f0cff9b9e8..fccf26bf2256b7016d97f3f6d7e99d2f1d5e762a 100644 --- a/ecrire/inc_texte.php3 +++ b/ecrire/inc_texte.php3 @@ -47,7 +47,7 @@ else { // // Variables globales : a virer pour une gestion intelligente de la langue // -tester_variable('lang', $GLOBALS['i18nlang']); +tester_variable('lang', 'fr'); // // Trouver une locale qui marche diff --git a/ecrire/index.php3 b/ecrire/index.php3 index bf1ca66453aa36258cfdea3bb30b3ad9541b4b0d..b58c6f802222308034384a2524bbdef8bff92693 100644 --- a/ecrire/index.php3 +++ b/ecrire/index.php3 @@ -30,11 +30,9 @@ function enfant($collection){ if (strlen($les_sous_enfants) > 0){ $les_enfants.= $bouton_layer; } - if (acces_restreint_rubrique($id_rubrique)){ - $les_enfants.= "<B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='red'>".typo($titre)."</font></A></B>"; - }else{ - $les_enfants.= "<B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='$couleur_foncee'>".typo($titre)."</font></A></B>"; - } + if (acces_restreint_rubrique($id_rubrique)) + $les_enfants.= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='Vous pouvez administrer cette rubrique et ses sous-rubriques'> "; + $les_enfants.= "<B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='$couleur_foncee'>".typo($titre)."</font></A></B>"; if (strlen($descriptif)>1) $les_enfants.="<BR><FONT SIZE=1>$descriptif</FONT>"; diff --git a/ecrire/naviguer.php3 b/ecrire/naviguer.php3 index 9d26b9b7cb6bdfcb08a69b1650a613aec9e8d830..8a47694f740556f22b2039c076706ca58761ba0c 100644 --- a/ecrire/naviguer.php3 +++ b/ecrire/naviguer.php3 @@ -20,7 +20,7 @@ function enfant($collection){ $id_parent=$row['id_parent']; $titre=$row['titre']; $descriptif=propre($row['descriptif']); - + $bouton_layer = bouton_block_invisible("enfants$id_rubrique"); $les_sous_enfants = sous_enfant($id_rubrique); @@ -32,11 +32,10 @@ function enfant($collection){ if (strlen($les_sous_enfants) > 0){ $les_enfants.= $bouton_layer; } - if (acces_restreint_rubrique($id_rubrique)){ - $les_enfants.= "<B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='red'>".typo($titre)."</font></A></B>"; - }else{ - $les_enfants.= "<B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='$couleur_foncee'>".typo($titre)."</font></A></B>"; - } + if (acces_restreint_rubrique($id_rubrique)) + $les_enfants.= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='Vous pouvez administrer cette rubrique et ses sous-rubriques'> "; + + $les_enfants.= "<B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='$couleur_foncee'>".typo($titre)."</font></A></B>"; if (strlen($descriptif)>1) $les_enfants.="<BR><FONT SIZE=1>$descriptif</FONT>";