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

conformité HTML pour les esperluettes

parent bb5b9f71
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -778,7 +778,7 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a ...@@ -778,7 +778,7 @@ function afficher_articles($titre_table, $requete, $afficher_visites = false, $a
if ($afficher_trad) { if ($afficher_trad) {
$texte_img .= http_img_pack("searching.gif", "*", "style='border: 0px; visibility: hidden; float: $spip_lang_right' id = 'img_$div_trad'"); $texte_img .= http_img_pack("searching.gif", "*", "style='border: 0px; visibility: hidden; float: $spip_lang_right' id = 'img_$div_trad'");
$texte_img .= "<div style='float: $spip_lang_right;'><a href=\"javascript:charger_id_url('" . generer_url_ecrire("ajax_page", "fonction=sql&id_ajax_fonc=$id_ajax_trad", true). "','$div_trad');\"><img src='". _DIR_IMG_PACK . "langues-12.gif' border='0' /></a></div>"; $texte_img .= "<div style='float: $spip_lang_right;'><a href=\"javascript:charger_id_url('" . generer_url_ecrire("ajax_page", "fonction=sql&id_ajax_fonc=$id_ajax_trad"). "','$div_trad');\"><img src='". _DIR_IMG_PACK . "langues-12.gif' border='0' /></a></div>";
} }
bandeau_titre_boite2($texte_img.$titre_table, "article-24.gif"); bandeau_titre_boite2($texte_img.$titre_table, "article-24.gif");
...@@ -961,7 +961,7 @@ function afficher_articles_trad($titre_table, $requete, $afficher_visites = fals ...@@ -961,7 +961,7 @@ function afficher_articles_trad($titre_table, $requete, $afficher_visites = fals
$hash = "0x".substr(md5($connect_id_auteur.$jjscript), 0, 16); $hash = "0x".substr(md5($connect_id_auteur.$jjscript), 0, 16);
$tmp_var = substr(md5($jjscript), 0, 4); $tmp_var = substr(md5($jjscript), 0, 4);
$javascript = "charger_id_url('" . generer_url_ecrire("ajax_page", 'fonction=sql&id_ajax_fonc=::id_ajax_fonc::::deb::', true) . "','$tmp_var')"; $javascript = "charger_id_url('" . generer_url_ecrire("ajax_page", 'fonction=sql&id_ajax_fonc=::id_ajax_fonc::::deb::') . "','$tmp_var')";
$tranches = afficher_tranches_requete($requete, 4, $tmp_var, $javascript); $tranches = afficher_tranches_requete($requete, 4, $tmp_var, $javascript);
$requete = str_replace("FROM spip_articles AS articles ", "FROM spip_articles AS articles LEFT JOIN spip_petitions AS petitions USING (id_article)", $requete); $requete = str_replace("FROM spip_articles AS articles ", "FROM spip_articles AS articles LEFT JOIN spip_petitions AS petitions USING (id_article)", $requete);
...@@ -988,7 +988,7 @@ function afficher_articles_trad($titre_table, $requete, $afficher_visites = fals ...@@ -988,7 +988,7 @@ function afficher_articles_trad($titre_table, $requete, $afficher_visites = fals
$texte_img .= http_img_pack("searching.gif", "*", "style='border: 0px; visibility: hidden; float: $spip_lang_right' id = 'img_$div_trad'"); $texte_img .= http_img_pack("searching.gif", "*", "style='border: 0px; visibility: hidden; float: $spip_lang_right' id = 'img_$div_trad'");
$texte_img .= "<div style='float: $spip_lang_right;'><a href=\"javascript:charger_id_url('" . generer_url_ecrire("ajax_page", "fonction=sql&id_ajax_fonc=$id_ajax_trad", true) . "','$div_trad');\"><img src='". _DIR_IMG_PACK . "langues-off-12.gif' border='0' /></a></div>"; $texte_img .= "<div style='float: $spip_lang_right;'><a href=\"javascript:charger_id_url('" . generer_url_ecrire("ajax_page", "fonction=sql&id_ajax_fonc=$id_ajax_trad") . "','$div_trad');\"><img src='". _DIR_IMG_PACK . "langues-off-12.gif' border='0' /></a></div>";
bandeau_titre_boite2($texte_img.$titre_table, "article-24.gif"); bandeau_titre_boite2($texte_img.$titre_table, "article-24.gif");
...@@ -2325,7 +2325,7 @@ if (true /*$bandeau_colore*/) { ...@@ -2325,7 +2325,7 @@ if (true /*$bandeau_colore*/) {
// echo "<a href='" . generer_url_ecrire("articles_tous","") . "' class='icone26' onMouseOver=\"changestyle('bandeautoutsite','visibility','visible');\">" . // echo "<a href='" . generer_url_ecrire("articles_tous","") . "' class='icone26' onMouseOver=\"changestyle('bandeautoutsite','visibility','visible');\">" .
// http_img_pack("tout-site.png", "", "width='26' height='20' border='0'") . "</a>"; // http_img_pack("tout-site.png", "", "width='26' height='20' border='0'") . "</a>";
echo "<a href='" . generer_url_ecrire("articles_tous") . "' class='icone26' onMouseOver=\"changestyle('bandeautoutsite','visibility','visible'); charger_id_url_si_vide('" . generer_url_ecrire("ajax_page", "fonction=aff_nav_recherche&id=$id_rubrique", true) . "','nav-recherche');\">", echo "<a href='" . generer_url_ecrire("articles_tous") . "' class='icone26' onMouseOver=\"changestyle('bandeautoutsite','visibility','visible'); charger_id_url_si_vide('" . generer_url_ecrire("ajax_page", "fonction=aff_nav_recherche&id=$id_rubrique") . "','nav-recherche');\">",
http_img_pack("tout-site.png", "", "width='26' height='20' border='0'") . "</a>"; http_img_pack("tout-site.png", "", "width='26' height='20' border='0'") . "</a>";
if ($id_rubrique > 0) echo "<a href='" . generer_url_ecrire("brouteur","id_rubrique=$id_rubrique") . "' class='icone26' onMouseOver=\"changestyle('bandeaunavrapide','visibility','visible');\">" . if ($id_rubrique > 0) echo "<a href='" . generer_url_ecrire("brouteur","id_rubrique=$id_rubrique") . "' class='icone26' onMouseOver=\"changestyle('bandeaunavrapide','visibility','visible');\">" .
http_img_pack("naviguer-site.png", "", "width='26' height='20' border='0'") ."</a>"; http_img_pack("naviguer-site.png", "", "width='26' height='20' border='0'") ."</a>";
......
...@@ -749,10 +749,13 @@ function get_spip_script($default='') { ...@@ -749,10 +749,13 @@ function get_spip_script($default='') {
function generer_url_public($script, $args="", $no_entities=false) { function generer_url_public($script, $args="", $no_entities=false) {
// si le script est une action (spip_pass, spip_inscription), // si le script est une action (spip_pass, spip_inscription),
// utiliser generer_url_action [hack temporaire pour faire // standardiser vers la nouvelle API
// fonctionner #URL_PAGE{spip_pass} ] // [hack temporaire pour faire fonctionner #URL_PAGE{spip_pass} ]
if (preg_match(',^spip_(.*),', $script, $regs))
return generer_url_action($regs[1],$args,true); # attention a la recursivite !! if (preg_match(',^spip_(.*),', $script, $regs)) {
$args = "action=" . $regs[1] .($args ? "&$args" :'');
$script = "";
}
$action = get_spip_script(); $action = get_spip_script();
if ($script) if ($script)
......
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