Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv15757/ecrire
Modified Files:
inc_presentation.php3 index.php3 spip_style.php3
Log Message:
Modif page A suivre: passage des raccourcis plus graphiques au milieu, changement "Plus" pour MSIE.
Index: spip_style.php3
RCS file: /home/spip-cvs/spip/ecrire/spip_style.php3,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- spip_style.php3 15 Oct 2004 15:22:42 -0000 1.94
+++ spip_style.php3 15 Oct 2004 16:48:08 -0000 1.95
@@ -223,7 +223,7 @@
color: black;
text-decoration: none;
padding: 1px;
- margin-right: 2px;
+ margin-<? echo $right; ?>: 2px;
}
a.icone26:hover {
text-decoration: none;
Index: index.php3
RCS file: /home/spip-cvs/spip/ecrire/index.php3,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- index.php3 3 Oct 2004 16:26:38 -0000 1.121
+++ index.php3 15 Oct 2004 16:48:08 -0000 1.122
@@ -141,12 +141,14 @@
// Afficher les raccourcis : boutons de creation d'article et de breve, etc.
//
-debut_raccourcis();
//
// Afficher les boutons de creation d'article et de breve
//
+/*
+debut_raccourcis();
+
$query = "SELECT id_rubrique FROM spip_rubriques LIMIT 0,1";
$result = spip_query($query);
@@ -168,7 +170,7 @@
}
-/* La nouvelle interface rend ces raccourcis inutiles
+// La nouvelle interface rend ces raccourcis inutiles
if ($options == "avancees") {
echo "<p>";
icone_horizontale(_T('titre_forum'), "forum.php3", "forum-interne-24.gif","rien.gif");
@@ -189,11 +191,14 @@
echo "<p>";
icone_horizontale(_T('icone_configurer_site'), "configuration.php3", "administration-24.gif");
}
-*/
-fin_raccourcis();
+fin_raccourcis();
+*/
+ creer_colonne_droite();
echo "<div> </div>";
+
+
//
// Annonces
@@ -293,27 +298,6 @@
//
-// Modification du cookie
-//
-
-if ($connect_statut == "0minirezo" AND $spip_display != 4) {
- if (!$cookie_admin) {
- echo "<table width=100%><tr width=100%>";
- echo "<td width=100%>";
- echo _T('info_activer_cookie');
- echo aide ("cookie");
- echo "</td>";
- echo "<td width=10><img src='img_pack/rien.gif' width=10 alt='' />";
- echo "</td>";
- echo "<td width='250'>";
- icone_horizontale(_T('icone_activer_cookie'), "../spip_cookie.php3?cookie_admin=".rawurlencode("@$connect_login")."&url=".rawurlencode("ecrire/index.php3"), "cookie-24.gif", "");
- echo "</td></tr></table>";
- echo "<p><hr><p>";
- }
-}
-
-
-//
// Articles post-dates en attente de publication
//
@@ -338,7 +322,8 @@
if ($vos_articles) $vos_articles = ' AND articles.id_article NOT IN ('.join($vos_articles,',').')';
-
+echo "<div> </div>";
+echo debut_cadre_trait_couleur();
//
// Raccourcis pour malvoyants
@@ -365,8 +350,71 @@
icone_horizontale(_T('icone_creer_rubrique_2'), "rubriques_edit.php3?new=oui", "rubrique-24.gif","creer.gif");
}
fin_raccourcis();
+} else {
+
+ $query = "SELECT id_rubrique FROM spip_rubriques LIMIT 0,1";
+ $result = spip_query($query);
+ $gadget = "";
+
+ if (spip_num_rows($result) > 0) {
+ $id_rubrique = $GLOBALS['id_rubrique'];
+ if ($id_rubrique > 0) {
+ $dans_rub = "&id_rubrique=$id_rubrique";
+ $dans_parent = "&id_parent=$id_rubrique";
+ }
+ $gadget = "<table width='95%'><tr>";
+ if ($connect_statut == "0minirezo") {
+ $gadget .= "<td>";
+ $gadget .= icone_horizontale(_T('icone_creer_rubrique'), "rubriques_edit.php3?new=oui", "rubrique-24.gif", "creer.gif", false);
+ $gadget .= "</td>";
+ }
+
+ $gadget .= "<td>";
+ $gadget .= icone_horizontale(_T('icone_ecrire_article'), "articles_edit.php3?new=oui$dans_rub", "article-24.gif","creer.gif", false);
+ $gadget .= "</td>";
+
+ $activer_breves = lire_meta("activer_breves");
+ if ($activer_breves != "non") {
+ $gadget .= "<td>";
+ $gadget .= icone_horizontale(_T('icone_nouvelle_breve'), "breves_edit.php3?new=oui$dans_rub", "breve-24.gif","creer.gif", false);
+ $gadget .= "</td>";
+ }
+
+ if (lire_meta("activer_sites") == 'oui') {
+ if ($connect_statut == '0minirezo' OR lire_meta("proposer_sites") > 0) {
+ $gadget .= "<td>";
+ $gadget .= icone_horizontale(_T('info_sites_referencer'), "sites_edit.php3?new=oui$dans_rub", "site-24.gif","creer.gif", false);
+ $gadget .= "</td>";
+ }
+ }
+
+ }
+
+ $gadget .= "</tr></table>";
+
+ echo $gadget;
}
+//
+// Modification du cookie
+//
+
+if ($connect_statut == "0minirezo" AND $spip_display != 4) {
+ if (!$cookie_admin) {
+ echo "<div> </div>";
+ echo "<table width=95%><tr>";
+ echo "<td width=100%>";
+ echo _T('info_activer_cookie');
+ echo aide ("cookie");
+ echo "</td>";
+ echo "<td width=10><img src='img_pack/rien.gif' width=10 alt='' />";
+ echo "</td>";
+ echo "<td width='250'>";
+ icone_horizontale(_T('icone_activer_cookie'), "../spip_cookie.php3?cookie_admin=".rawurlencode("@$connect_login")."&url=".rawurlencode("ecrire/index.php3"), "cookie-24.gif", "");
+ echo "</td></tr></table>";
+ }
+}
+ echo fin_cadre_trait_couleur();
Index: inc_presentation.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_presentation.php3,v
retrieving revision 1.483
retrieving revision 1.484
diff -u -d -r1.483 -r1.484
--- inc_presentation.php3 14 Oct 2004 23:10:26 -0000 1.483
+++ inc_presentation.php3 15 Oct 2004 16:48:08 -0000 1.484
@@ -371,9 +371,14 @@
// Afficher un petit "+" pour lien vers autre page
function afficher_plus($lien) {
- global $options, $spip_lang_right;
+ global $options, $spip_lang_right, $browser_name;
- if ($options == "avancees") return "<div style='float:$spip_lang_right; padding-top: 2px;'><a href='$lien'><img src='img_pack/plus.gif' border='0'></a></div>";
+ if ($options == "avancees" AND $spip_display != 4) {
+ if ($browser_name == "MSIE")
+ return "<a href='$lien'><img src='img_pack/plus.gif' alt='+' border='0'></a> ";
+ else
+ return "<div style='float:$spip_lang_right; padding-top: 2px;'><a href='$lien'><img src='img_pack/plus.gif' border='0'></a></div>";
+ }
}
@@ -2598,14 +2603,14 @@
$dans_rub = "&id_rubrique=$id_rubrique";
$dans_parent = "&id_parent=$id_rubrique";
}
-
- $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>";
- if ($id_rubrique > 0)
- $gadget .= icone_horizontale(_T('icone_creer_sous_rubrique'), "rubriques_edit.php3?new=oui$dans_parent", "rubrique-24.gif", "creer.gif", false);
- else
- $gadget .= icone_horizontale(_T('icone_creer_rubrique'), "rubriques_edit.php3?new=oui", "rubrique-24.gif", "creer.gif", false);
- $gadget .= "</div>";
-
+ if ($connect_statut == "0minirezo") {
+ $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>";
+ if ($id_rubrique > 0)
+ $gadget .= icone_horizontale(_T('icone_creer_sous_rubrique'), "rubriques_edit.php3?new=oui$dans_parent", "rubrique-24.gif", "creer.gif", false);
+ else
+ $gadget .= icone_horizontale(_T('icone_creer_rubrique'), "rubriques_edit.php3?new=oui", "rubrique-24.gif", "creer.gif", false);
+ $gadget .= "</div>";
+ }
$gadget .= "<div style='width: 140px; float: $spip_lang_left;'>";
$gadget .= icone_horizontale(_T('icone_ecrire_article'), "articles_edit.php3?new=oui$dans_rub", "article-24.gif","creer.gif", false);
$gadget .= "</div>";
@@ -2618,9 +2623,11 @@
}
if (lire_meta("activer_sites") == 'oui') {
- $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>";
- $gadget .= icone_horizontale(_T('info_sites_referencer'), "sites_edit.php3?new=oui$dans_rub", "site-24.gif","creer.gif", false);
- $gadget .= "</div>";
+ if ($connect_statut == '0minirezo' OR lire_meta("proposer_sites") > 0) {
+ $gadget .= "<div style='width: 140px; float: $spip_lang_left;'>";
+ $gadget .= icone_horizontale(_T('info_sites_referencer'), "sites_edit.php3?new=oui$dans_rub", "site-24.gif","creer.gif", false);
+ $gadget .= "</div>";
+ }
}
}