diff --git a/ecrire/exec/articles.php b/ecrire/exec/articles.php index 3296480a7b2bde913adb1f187db5639358e556cb..d108cfc6926b0b51b35b1542ca6dab29e9cf4939 100644 --- a/ecrire/exec/articles.php +++ b/ecrire/exec/articles.php @@ -353,13 +353,13 @@ function titres_articles($titre, $statut_article,$surtitre, $soustitre, $descrip } if ($statut_article == 'prop') - $res .= "<p><font face='Verdana,Arial,Sans,sans-serif' size='2' color='red'><b>"._T('text_article_propose_publication')."</b></font></p>"; + $res .= "<p style='font-family: Verdana,Arial,Sans,sans-serif; font-size: 14px; color: red'><b>"._T('text_article_propose_publication')."</b></p>"; $res = "\n<td valign='top'>$res</td>"; if ($flag_editable) { $res .= "\n<td style='width: 130px;' valign='top' align='$spip_lang_right'>" - . bouton_modifier_articles($id_article, $id_rubrique, $modif, _T('avis_article_modifie', $modif), "article-24.gif", "edit.gif", 'right') + . bouton_modifier_articles($id_article, $id_rubrique, $modif, _T('avis_article_modifie', $modif), "article-24.gif", "edit.gif") . "</td>\n"; } diff --git a/ecrire/exec/forum_envoi.php b/ecrire/exec/forum_envoi.php index c88344c0860512e40625122ea424eaa8d23d11f1..2ac46cf37bb82ddfa7e298e943a49b288db8a04f 100644 --- a/ecrire/exec/forum_envoi.php +++ b/ecrire/exec/forum_envoi.php @@ -75,7 +75,7 @@ function forum_envoi( $parent .= justifier(propre($texte_parent)); if (strlen($url_site_parent) > 10 AND $nom_site_parent) { - $parent .="<p align='left'><font face='Verdana,Arial,Sans,sans-serif'><b><a href='$url_site_parent'>$nom_site_parent</a></b></font></p>"; + $parent .="<p style='text-align: left; font-family: Verdana,Arial,Sans,sans-serif; font-weight: bold;'><a href='$url_site_parent'>$nom_site_parent</a></p>"; } $parent .= fin_cadre_forum(true); } diff --git a/ecrire/exec/message.php b/ecrire/exec/message.php index 1efa0e443649faa4ebaa571a7bd46beac6d578c7..b77d365169b3017e10d1cb1e1186c9432436b463 100644 --- a/ecrire/exec/message.php +++ b/ecrire/exec/message.php @@ -175,7 +175,7 @@ function http_visualiser_participants($auteurs_tmp) _T('info_nombre_partcipants') . "</b></span>" . ((count($auteurs_tmp) == 0) ? '' : - (" <font class='arial2'>".join($auteurs_tmp,", ")."</font>")) . + (" <span class='arial2'>".join($auteurs_tmp,", ")."</span>")) . "</td></tr></table>\n"; } @@ -359,13 +359,13 @@ function http_affiche_message($id_message, $expediteur, $statut, $type, $texte, echo "\n<table width='100%' cellpadding='0' cellspacing='0' border='0'>"; echo "<tr><td>"; # uniques - echo "<font face='Verdana,Arial,Sans,sans-serif' size='2' color='$la_couleur'><b>$le_type</b></font><br />"; + echo "<span style='font-family: Verdana,Arial,Sans,sans-serif; font-size: 14px; color: $la_couleur'><b>$le_type</b></span><br />"; echo "<font face='Verdana,Arial,Sans,sans-serif' size='5'><b>$titre</b></font>"; if ($statut == 'redac') { - echo "<br /><font face='Verdana,Arial,Sans,sans-serif' size='2' color='red'><b>"._T('info_redaction_en_cours')."</b></font>"; + echo "<br /><span style='font-family: Verdana,Arial,Sans,sans-serif; font-size: 14px; color: red;'><b>"._T('info_redaction_en_cours')."</b></span>"; } else if ($rv == 'non') { - echo "<br /><font face='Verdana,Arial,Sans,sans-serif' size='2' color='#666666'><b>".nom_jour($date_heure).' '.affdate_heure($date_heure)."</b></font>"; + echo "<br /><span style='font-family: Verdana,Arial,Sans,sans-serif; font-size: 14px; color: #666666;'><b>".nom_jour($date_heure).' '.affdate_heure($date_heure)."</b></span>"; } @@ -398,8 +398,8 @@ function http_affiche_message($id_message, $expediteur, $statut, $type, $texte, } if ($expediteur == $connect_id_auteur AND $statut == 'redac') { - if ($type == 'normal' AND $total_dest < 2){ - echo "<p align='right'><font face='Verdana,Arial,Sans,sans-serif' size='2' color='#666666'><b>"._T('avis_destinataire_obligatoire')."</b></font></p>"; + if ($type == 'normal' AND $total_dest < 2) { + echo "<p style='font-family: Verdana,Arial,Sans,sans-serif; font-size: 14px; color: #666666; text-align: right;'><b>"._T('avis_destinataire_obligatoire')."</b></p>"; } else { echo "\n<div align='center'><table><tr><td>"; icone (_T('icone_envoyer_message'), (generer_url_ecrire("message","id_message=$id_message&change_statut=publie")), "messagerie-24.gif", "creer.gif"); diff --git a/ecrire/exec/message_edit.php b/ecrire/exec/message_edit.php index 493f085af1edaec7c09ddccb7b995da43fda7750..0168faa86ab6aac3fdb28af3162dc427f93cfff3 100644 --- a/ecrire/exec/message_edit.php +++ b/ecrire/exec/message_edit.php @@ -67,11 +67,11 @@ function exec_message_edit_dist() debut_droite(); echo "<div class='arial2'>"; - echo "<font face='Verdana,Arial,Sans,sans-serif' size='2' color='green'><b>$le_type</b></font>"; + echo "<span style='font-family: Verdana,Arial,Sans,sans-serif; font-size: 14px; color:green'><b>$le_type</b></span>"; echo generer_url_post_ecrire('message',"id_message=$id_message"); if ($type == "affich") - echo "<p><font face='Verdana,Arial,Sans,sans-serif' size='1' color='red'>"._T('texte_message_edit')."</font></p>"; + echo "<p style='font-family: Verdana,Arial,Sans,sans-serif; font-size: 12px; color:red;'>", _T('texte_message_edit'),"</p>"; echo "\n<p><input type='hidden' name='modifier_message' value='oui'/>"; echo "\n<input type='hidden' name='id_message' value='$id_message'/>"; diff --git a/ecrire/exec/recherche.php b/ecrire/exec/recherche.php index 2bd328984765fce8eb27b9cdc926c54255ec0f9e..c7201e92a6429af34bdd43b55a043ace8a578126 100644 --- a/ecrire/exec/recherche.php +++ b/ecrire/exec/recherche.php @@ -42,8 +42,8 @@ function exec_recherche_dist() if (strlen($recherche) > 0) { - echo "<font face='Verdana,Arial,Sans,sans-serif'><b>"._T('info_resultat_recherche')."</b></font><br />"; - echo "<font size='5' face='Verdana,Arial,Sans,sans-serif' color='$couleur_foncee'><b>$recherche_aff</b></font>"; + echo "<span style='font-family: Verdana,Arial,Sans,sans-serif'><b>"._T('info_resultat_recherche')."</b></span><br />"; + echo "<span style='font-size: 20px; font-family: Verdana,Arial,Sans,sans-serif; color: $couleur_foncee'><b>$recherche_aff</b></span>"; $query_articles['FROM'] = 'spip_articles AS articles'; $query_breves['FROM'] = 'spip_breves'; diff --git a/ecrire/exec/statistiques_visites.php b/ecrire/exec/statistiques_visites.php index 8ec05f4611dd1f692ad063aff7caf93a0f681219..120d216833296501ffaabc16b63f1aa26d2c2056 100644 --- a/ecrire/exec/statistiques_visites.php +++ b/ecrire/exec/statistiques_visites.php @@ -80,6 +80,7 @@ function exec_statistiques_visites_dist() $titre = $pourarticle = ""; + $style = "style='font-family: arial,helvetica,sans-serif; font-size: 12px; color: #999999'"; if ($id_article = intval($id_article)){ $result = spip_query("SELECT titre, visites, popularite FROM spip_articles WHERE statut='publie' AND id_article=$id_article"); @@ -559,25 +560,25 @@ if ($GLOBALS['accepte_svg']) { echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph)."</b></font>"; echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(7*($maxgraph/8))."</font>"; + echo "<span $style>",round(7*($maxgraph/8))."</span>"; echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; echo "<font face='arial,helvetica,sans-serif' size='1'>".round(3*($maxgraph/4))."</font>"; echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(5*($maxgraph/8))."</font>"; + echo "<span $style>",round(5*($maxgraph/8)),"</span>"; echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph/2)."</b></font>"; echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(3*($maxgraph/8))."</font>"; + echo "<span $style>",round(3*($maxgraph/8)),"</span>"; echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; echo "<font face='arial,helvetica,sans-serif' size='1'>".round($maxgraph/4)."</font>"; echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(1*($maxgraph/8))."</font>"; + echo "<span $style>",round(1*($maxgraph/8)),"</span>"; echo "</td></tr>"; echo "<tr><td height='10' valign='bottom'>"; echo "<font face='arial,helvetica,sans-serif' size='1'><b>0</b></font>"; @@ -756,26 +757,26 @@ if ($GLOBALS['accepte_svg']) { echo "<tr><td height='15' valign='top'>"; echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph)."</b></font>"; echo "</td></tr>"; - echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(7*($maxgraph/8))."</font>"; + echo "<tr><td height='25' valign='middle' $style>"; + echo round(7*($maxgraph/8)); echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; echo "<font face='arial,helvetica,sans-serif' size='1'>".round(3*($maxgraph/4))."</font>"; echo "</td></tr>"; - echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(5*($maxgraph/8))."</font>"; + echo "<tr><td height='25' valign='middle' $style>"; + echo round(5*($maxgraph/8)); echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph/2)."</b></font>"; echo "</td></tr>"; - echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(3*($maxgraph/8))."</font>"; + echo "<tr><td height='25' valign='middle' $style>"; + echo round(3*($maxgraph/8)); echo "</td></tr>"; echo "<tr><td height='25' valign='middle'>"; echo "<font face='arial,helvetica,sans-serif' size='1'>".round($maxgraph/4)."</font>"; echo "</td></tr>"; - echo "<tr><td height='25' valign='middle'>"; - echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(1*($maxgraph/8))."</font>"; + echo "<tr><td height='25' valign='middle' $style>"; + echo round(1*($maxgraph/8)); echo "</td></tr>"; echo "<tr><td height='10' valign='bottom'>"; echo "<font face='arial,helvetica,sans-serif' size='1'><b>0</b></font>"; diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index 8d90e1ec8173d1c4e4e141706d4f75ab51f48e95..d95bd7cc1527ff75e293e274abc054259b0a30e9 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -1423,7 +1423,7 @@ function onglet($texte, $lien, $onglet_ref, $onglet, $icone=""){ return $res; } - +// l'argument align n'est plus jamais fourni // http://doc.spip.org/@icone function icone($texte, $lien, $fond, $fonction="", $align="", $afficher='oui'){ global $spip_display; @@ -1475,8 +1475,7 @@ function icone($texte, $lien, $fond, $fonction="", $align="", $afficher='oui'){ $lien = "\nhref='$lien'$atts"; $icone = "\n<table cellpadding='0' class='pointeur' cellspacing='0' border='0' width='$largeur'" - . ((strlen($align) > 2) ? " align='$align' " : '') - . ">\n<tr><td class='icone36$style' style='text-align:center;'><a" + . ">\n<tr><td class='icone36$style'><a" . $lien . '>' . $icone diff --git a/ecrire/inc/signatures.php b/ecrire/inc/signatures.php index 602ff10b4ccb1835bf34794bd140c88d1678c2d7..d16d9d8e91ceb1627b78121468431fba2b9a2949 100644 --- a/ecrire/inc/signatures.php +++ b/ecrire/inc/signatures.php @@ -111,7 +111,7 @@ function signatures_edit($script, $id, $debut, $row) { $res .= "<font size='2'>".date_interface($date_time)."</font><br />"; if ($statut=="poubelle"){ - $res .= "<font size='1' color='red'>"._T('info_message_efface')."</font><br />"; + $res .= "<span style='font-size: 12px; color: red;'>"._T('info_message_efface')."</span><br />"; } if (strlen($url_site)>6 AND strlen($nom_site)>0){ $res .= "<font size='1'>"._T('info_site_web')."</font> <a href='$url_site'>$nom_site</a><br />"; diff --git a/ecrire/inc/tourner.php b/ecrire/inc/tourner.php index 247a261c7708719fe0f21980fed99d6cc67f1bd7..0cc5528adc28ee4669b9bd99ab54dccb3e93b905 100644 --- a/ecrire/inc/tourner.php +++ b/ecrire/inc/tourner.php @@ -66,9 +66,9 @@ function inc_tourner_dist($id_document, $document, $script, $flag, $type) $res .= document_et_vignette($document, $url, true); $res .= "</div>\n"; - $res .= "<div class='verdana1' style='text-align: center;'>" - . " <font size='1' face='arial,helvetica,sans-serif' color='333333'><doc$id_document></font>" - . "</div>"; + $res .= "<div class='verdana1' style='text-align: center; font-size: 12px; font-family: arial,helvetica,sans-serif; color: 333333;'><doc" + . $id_document + . "></div>"; if ($boite) return "$boite<div>$res</div>";