From afaaef006316ad7106f91a8d63bb727cae5bf3d8 Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Wed, 3 Jan 2007 15:09:00 +0000 Subject: [PATCH] =?UTF-8?q?Conformit=C3=A9=20XHTML:=20=C3=A9vacuation=20ve?= =?UTF-8?q?rs=20la=20CSS=20des=20attributs=20de=20la=20balise=20body.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/style_prive.html | 3 +++ ecrire/exec/articles_ortho.php | 2 +- ecrire/exec/forum_envoi.php | 1 - ecrire/inc/commencer_page.php | 4 +++- ecrire/index.php | 7 ------- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/dist/style_prive.html b/dist/style_prive.html index 116323003d..ce321db488 100644 --- a/dist/style_prive.html +++ b/dist/style_prive.html @@ -15,7 +15,10 @@ #HTTP_HEADER{Vary: Accept-Encoding} body { font-family: Verdana,Arial,Sans,sans-serif; + color: #000000; + background-color: #f8f7f3; border: none; + margin: 0px; scrollbar-face-color: #fff; scrollbar-shadow-color: #fff; scrollbar-highlight-color: #fff; diff --git a/ecrire/exec/articles_ortho.php b/ecrire/exec/articles_ortho.php index 1d1e1cccaa..7cd22e9c69 100644 --- a/ecrire/exec/articles_ortho.php +++ b/ecrire/exec/articles_ortho.php @@ -276,7 +276,7 @@ function debut_html($titre = "", $rubrique="") { // Fin des entetes echo "\n</head>\n"; - echo "<body ", _ATTRIBUTES_BODY, ">"; + echo "<body", ($GLOBALS['spip_lang_rtl'] ? " dir='rtl'" : ""), ">"; } ?> diff --git a/ecrire/exec/forum_envoi.php b/ecrire/exec/forum_envoi.php index 7909e27c7c..b95ce973f6 100644 --- a/ecrire/exec/forum_envoi.php +++ b/ecrire/exec/forum_envoi.php @@ -226,7 +226,6 @@ function forum_envoi_entete($parent, $titre_parent, $texte, $titre_texte, $nom_s { global $spip_lang_rtl; - spip_log("forum_envoi_entete($parent, $titre_parent, $texte, $titre_texte, $nom_site, $url_site"); return "\n<table width='100%' cellpadding='0' cellspacing='0' border='0'>" . (!$parent ? '' : "<tr><td colspan='2'>$parent</td></tr>") . "\n<tr>" diff --git a/ecrire/inc/commencer_page.php b/ecrire/inc/commencer_page.php index d9fd2e103a..aa7e051746 100644 --- a/ecrire/inc/commencer_page.php +++ b/ecrire/inc/commencer_page.php @@ -82,7 +82,9 @@ function init_body($rubrique='accueil', $sous_rubrique='accueil', $id_rubrique=' if ($spip_ecran == "large") $largeur = 974; else $largeur = 750; - $res = pipeline('body_prive',"<body class='$rubrique $sous_rubrique'". _ATTRIBUTES_BODY . '>') + $res = pipeline('body_prive',"<body class='$rubrique $sous_rubrique'" + . ($GLOBALS['spip_lang_rtl'] ? " dir='rtl'" : "") + .'>') . "\n<div><map name='map_layout' id='map_layout'>" . lien_change_var (self(), 'set_disp', 1, '1,0,18,15', _T('lien_afficher_texte_seul'), "onmouseover=\"changestyle('bandeauvide');\" onfocus=\"changestyle('bandeauvide');\" onblur=\"changestyle('bandeauvide');\"") . lien_change_var (self(), 'set_disp', 2, '19,0,40,15', _T('lien_afficher_texte_icones'), "onmouseover=\"changestyle('bandeauvide');\" onfocus=\"changestyle('bandeauvide');\" onblur=\"changestyle('bandeauvide');\"") diff --git a/ecrire/index.php b/ecrire/index.php index 25ae5ed6d8..848bbc28e9 100644 --- a/ecrire/index.php +++ b/ecrire/index.php @@ -155,13 +155,6 @@ if (isset($GLOBALS['_COOKIE']['spip_lang_ecrire'])) { utiliser_langue_visiteur(); -define ('_ATTRIBUTES_BODY', " -link='" . $GLOBALS['couleurs_spip'][$choix_couleur]['couleur_lien'] . "' -vlink='" . $GLOBALS['couleurs_spip'][$choix_couleur]['couleur_lien_off'] ."' -alink='" . $GLOBALS['couleurs_spip'][$choix_couleur]['couleur_lien_off'] ."' -style='margin: 0px; background-color: #f8f7f3; color: #000000'" . - ($GLOBALS['spip_lang_rtl'] ? " dir='rtl'" : "")); - define('_TRANCHES', 10); // -- GitLab