Skip to content
Extraits de code Groupes Projets
Valider a6c919d7 rédigé par esj's avatar esj
Parcourir les fichiers

simplification de la fonction icone, et évacuation des balises font avec attributs color.

parent 39c473b1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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";
}
......
......@@ -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);
}
......
......@@ -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");
......
......@@ -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'/>";
......
......@@ -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';
......
......@@ -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>";
......
......@@ -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
......
......@@ -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 />";
......
......@@ -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'>&lt;doc$id_document&gt;</font>"
. "</div>";
$res .= "<div class='verdana1' style='text-align: center; font-size: 12px; font-family: arial,helvetica,sans-serif; color: 333333;'>&lt;doc"
. $id_document
. "&gt;</div>";
if ($boite) return "$boite<div>$res</div>";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter