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

title systematique et consorts pour Accessibilite

parent be9c70b5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,7 +20,6 @@ charger_generer_url(); ...@@ -20,7 +20,6 @@ charger_generer_url();
function calendrier($type, $css="") function calendrier($type, $css="")
{ {
spip_log("css $css");
$date = date("Y-m-d", time()); $date = date("Y-m-d", time());
if ($type == 'semaine') { if ($type == 'semaine') {
...@@ -312,7 +311,8 @@ function http_calendrier_mois_sept($annee, $mois, $premier_jour, $dernier_jour,$ ...@@ -312,7 +311,8 @@ function http_calendrier_mois_sept($annee, $mois, $premier_jour, $dernier_jour,$
if ($jour_semaine == 0) $couleur_fond = $couleur_claire; if ($jour_semaine == 0) $couleur_fond = $couleur_claire;
else if ($jour_semaine==1) else if ($jour_semaine==1)
{ {
$total .= "\n<tr>$init$ligne\n</tr>"; if ($ligne||$init)
$total .= "\n<tr>$init$ligne\n</tr>";
$ligne = $init = ''; $ligne = $init = '';
} }
...@@ -339,7 +339,7 @@ function http_calendrier_mois_sept($annee, $mois, $premier_jour, $dernier_jour,$ ...@@ -339,7 +339,7 @@ function http_calendrier_mois_sept($annee, $mois, $premier_jour, $dernier_jour,$
(!_DIR_RESTREINT ? (!_DIR_RESTREINT ?
(http_href(calendrier_args_date($script,$annee_en_cours, $mois_en_cours, $jour, "jour", $ancre), (http_href(calendrier_args_date($script,$annee_en_cours, $mois_en_cours, $jour, "jour", $ancre),
$jour, $jour,
'', "color: $couleur_lien",'calendrier-helvetica16') . $jour, "color: $couleur_lien",'calendrier-helvetica16') .
http_calendrier_ics_message($annee_en_cours, $mois_en_cours, $jour, false)): http_calendrier_ics_message($annee_en_cours, $mois_en_cours, $jour, false)):
http_calendrier_mois_clics($annee_en_cours, $mois_en_cours, $jour, $script, $ancre)) . http_calendrier_mois_clics($annee_en_cours, $mois_en_cours, $jour, $script, $ancre)) .
$res . $res .
...@@ -444,14 +444,11 @@ function http_calendrier_semaine_noms($annee, $mois, $jour, $script, $ancre){ ...@@ -444,14 +444,11 @@ function http_calendrier_semaine_noms($annee, $mois, $jour, $script, $ancre){
$num = intval(date("d", $nom)) ; $num = intval(date("d", $nom)) ;
$numois = date("m",$nom); $numois = date("m",$nom);
$nomjour = _T('date_jour_'. (1+date('w',$nom))); $nomjour = _T('date_jour_'. (1+date('w',$nom)));
$clic = ($nomjour . " " . $num . (($num == 1) ? 'er' : '') .
($ancre ? ('/' . $numois) : ''));
$bandeau .= $bandeau .=
"\n\t<th class='calendrier-th'>" . "\n\t<th class='calendrier-th'>" .
http_href((calendrier_args_date($script, date("Y",$nom), $numois, $num, 'jour', $ancre)), http_href((calendrier_args_date($script, date("Y",$nom), $numois, $num, 'jour', $ancre)), $clic, $clic) .
($nomjour .
" " .
$num .
(($num == 1) ? 'er' : '') .
($ancre ? ('/' . $numois) : ''))) .
"</th>"; "</th>";
} }
return "\n<tr" . return "\n<tr" .
...@@ -658,7 +655,7 @@ function http_calendrier_ics($annee, $mois, $jour,$echelle, $partie_cal, $large ...@@ -658,7 +655,7 @@ function http_calendrier_ics($annee, $mois, $jour,$echelle, $partie_cal, $large
if (!$sum) { $sum = $lieu; $lieu = '';} if (!$sum) { $sum = $lieu; $lieu = '';}
if (!$sum) { $sum = $perso; $perso = '';} if (!$sum) { $sum = $perso; $perso = '';}
if ($sum) if ($sum)
$sum = "<span class='calendrier-verdana10'><b>$sum</b>$lieu $perso</span>"; $sum = "<span class='calendrier-verdana10'><span style='font-weight: bold;'>$sum</span>$lieu $perso</span>";
if (($largeur > 90) && $desc) if (($largeur > 90) && $desc)
$sum .= "\n<br /><span class='calendrier-noir'>$desc</span>"; $sum .= "\n<br /><span class='calendrier-noir'>$desc</span>";
$colors = $evenement['CATEGORIES']; $colors = $evenement['CATEGORIES'];
...@@ -769,11 +766,9 @@ function http_calendrier_ics_titre($annee, $mois, $jour,$script, $finurl='') ...@@ -769,11 +766,9 @@ function http_calendrier_ics_titre($annee, $mois, $jour,$script, $finurl='')
$jour = date("d",$date); $jour = date("d",$date);
$mois = date("m",$date); $mois = date("m",$date);
$annee = date("Y",$date); $annee = date("Y",$date);
$nom = affdate_jourcourt("$annee-$mois-$jour");
return "<div class='calendrier-arial10 calendrier-titre'>" . return "<div class='calendrier-arial10 calendrier-titre'>" .
http_href(calendrier_args_date($script, $annee, $mois, $jour, 'jour', $finurl), http_href(calendrier_args_date($script, $annee, $mois, $jour, 'jour', $finurl), $nom, $nom, '', 'calendrier-noir') .
affdate_jourcourt("$annee-$mois-$jour"),
'', '', 'calendrier-noir') .
"</div>"; "</div>";
} }
...@@ -851,13 +846,13 @@ function http_calendrier_avec_heure($evenement, $amj) ...@@ -851,13 +846,13 @@ function http_calendrier_avec_heure($evenement, $amj)
if ($deb_h >0 OR $deb_m > 0) { if ($deb_h >0 OR $deb_m > 0) {
if ((($deb_h > 0) OR ($deb_m > 0)) AND $amj == $jour_debut) if ((($deb_h > 0) OR ($deb_m > 0)) AND $amj == $jour_debut)
{ $deb = '<b>' . $deb_h . ':' . $deb_m . '</b> ';} { $deb = "<span style='font-weight: bold;'>" . $deb_h . ':' . $deb_m . '</span>';}
else { else {
$deb = '...'; $deb = '...';
} }
if ((($fin_h > 0) OR ($fin_m > 0)) AND $amj == $jour_fin) if ((($fin_h > 0) OR ($fin_m > 0)) AND $amj == $jour_fin)
{ $fin = '<b>' . $fin_h . ':' . $fin_m . '</b> ';} { $fin = "<span style='font-weight: bold;'>" . $fin_h . ':' . $fin_m . '</span> ';}
else { else {
$fin = '...'; $fin = '...';
} }
...@@ -875,8 +870,7 @@ function http_calendrier_aide_mess() ...@@ -875,8 +870,7 @@ function http_calendrier_aide_mess()
{ {
global $bleu, $vert, $jaune, $spip_lang_left; global $bleu, $vert, $jaune, $spip_lang_left;
return return
"\n<br /><br /><br />\n<font face='arial,helvetica,sans-serif' size='2'><table width='700'>\n<tr><th style='text-align: $spip_lang_left'> " . "\n<br /><br /><br />\n<font face='arial,helvetica,sans-serif' size='2'><table width='700'>\n<tr><th style='text-align: $spip_lang_left; font-weight: bold;'> " . _T('info_aide').
"<b>"._T('info_aide')."</b>" .
"</th></tr><tr><td>$bleu\n"._T('info_symbole_bleu')."\n" . "</th></tr><tr><td>$bleu\n"._T('info_symbole_bleu')."\n" .
"</td></tr><tr><td>$vert\n"._T('info_symbole_vert')."\n" . "</td></tr><tr><td>$vert\n"._T('info_symbole_vert')."\n" .
"</th></tr><tr><td>$jaune\n"._T('info_symbole_jaune')."\n" . "</th></tr><tr><td>$jaune\n"._T('info_symbole_jaune')."\n" .
...@@ -1000,12 +994,14 @@ function http_calendrier_invisible($annee, $mois, $jour, $script, $ancre, $id) ...@@ -1000,12 +994,14 @@ function http_calendrier_invisible($annee, $mois, $jour, $script, $ancre, $id)
$annee_apres = $annee + 1; $annee_apres = $annee + 1;
for ($i=$mois; $i < 13; $i++) { for ($i=$mois; $i < 13; $i++) {
$nom = nom_mois("$annee_avant-$i-1");
$gadget .= http_href(calendrier_args_date($script,$annee_avant, $i, 1, "mois", $ancre), $gadget .= http_href(calendrier_args_date($script,$annee_avant, $i, 1, "mois", $ancre),
nom_mois("$annee_avant-$i-1"),'','', 'calendrier-annee') ; $nom,$nom . ' ' . $annee_avant,'', 'calendrier-annee') ;
} }
for ($i=1; $i < $mois - 1; $i++) { for ($i=1; $i < $mois - 1; $i++) {
$nom = nom_mois("$annee-$i-1");
$gadget .= http_href(calendrier_args_date($script,$annee, $i, 1, "mois", $ancre), $gadget .= http_href(calendrier_args_date($script,$annee, $i, 1, "mois", $ancre),
nom_mois("$annee-$i-1"),'','', 'calendrier-annee'); $nom,$nom . ' ' . $annee,'', 'calendrier-annee');
} }
$gadget .= "</td></tr>" $gadget .= "</td></tr>"
. "\n<tr><td class='calendrier-tripleagenda'>" . "\n<tr><td class='calendrier-tripleagenda'>"
...@@ -1018,12 +1014,14 @@ function http_calendrier_invisible($annee, $mois, $jour, $script, $ancre, $id) ...@@ -1018,12 +1014,14 @@ function http_calendrier_invisible($annee, $mois, $jour, $script, $ancre, $id)
. "</tr>" . "</tr>"
. "\n<tr><td colspan='3' style='text-align:$spip_lang_right;'>"; . "\n<tr><td colspan='3' style='text-align:$spip_lang_right;'>";
for ($i=$mois+2; $i <= 12; $i++) { for ($i=$mois+2; $i <= 12; $i++) {
$nom = nom_mois("$annee-$i-1");
$gadget .= http_href(calendrier_args_date($script,$annee, $i, 1, "mois", $ancre), $gadget .= http_href(calendrier_args_date($script,$annee, $i, 1, "mois", $ancre),
nom_mois("$annee-$i-1"),'','', 'calendrier-annee'); $nom,$nom . ' ' . $annee,'', 'calendrier-annee');
} }
for ($i=1; $i < $mois+1; $i++) { for ($i=1; $i < $mois+1; $i++) {
$nom = nom_mois("$annee_apres-$i-1");
$gadget .= http_href(calendrier_args_date($script, $annee_apres, $i, 1, "mois", $ancre), $gadget .= http_href(calendrier_args_date($script, $annee_apres, $i, 1, "mois", $ancre),
nom_mois("$annee_apres-$i-1"),'','', 'calendrier-annee'); $nom,$nom . ' ' . $annee_apres,'', 'calendrier-annee');
} }
return $gadget . "</td></tr></table></div>"; return $gadget . "</td></tr></table></div>";
} }
...@@ -1037,11 +1035,11 @@ function http_calendrier_agenda ($annee, $mois, $jour_ved, $mois_ved, $annee_ved ...@@ -1037,11 +1035,11 @@ function http_calendrier_agenda ($annee, $mois, $jour_ved, $mois_ved, $annee_ved
if (!$mois) {$mois = 12; $annee--;} if (!$mois) {$mois = 12; $annee--;}
elseif ($mois==13) {$mois = 1; $annee++;} elseif ($mois==13) {$mois = 1; $annee++;}
if (!$evt) $evt = sql_calendrier_agenda($annee, $mois); if (!$evt) $evt = sql_calendrier_agenda($annee, $mois);
$nom = affdate_mois_annee("$annee-$mois-1");
return return
"<div class='calendrier-titre calendrier-arial10'>" . "<div class='calendrier-titre calendrier-arial10'>" .
http_href(calendrier_args_date($script, $annee, $mois, 1, 'mois', $ancre), http_href(calendrier_args_date($script, $annee, $mois, 1, 'mois', $ancre),
affdate_mois_annee("$annee-$mois-1"), $nom, $nom,
'',
'color: black;') . 'color: black;') .
"<table width='100%' cellspacing='0' cellpadding='0'>" . "<table width='100%' cellspacing='0' cellpadding='0'>" .
http_calendrier_agenda_rv ($annee, $mois, $evt, http_calendrier_agenda_rv ($annee, $mois, $evt,
...@@ -1059,7 +1057,7 @@ function http_calendrier_clic($annee, $mois, $jour, $type, $couleur, $perso) ...@@ -1059,7 +1057,7 @@ function http_calendrier_clic($annee, $mois, $jour, $type, $couleur, $perso)
return http_href(calendrier_args_date($script, $annee, $mois, $jour,$type, $ancre), return http_href(calendrier_args_date($script, $annee, $mois, $jour,$type, $ancre),
$jour, $jour,
'', "$jour-$mois-$annee",
"color: $couleur; font-weight: bold"); "color: $couleur; font-weight: bold");
} }
...@@ -1138,7 +1136,7 @@ function http_calendrier_agenda_rv ($annee, $mois, $les_rv, $fclic, $perso='', ...@@ -1138,7 +1136,7 @@ function http_calendrier_agenda_rv ($annee, $mois, $les_rv, $fclic, $perso='',
"</div></td>"; "</div></td>";
if ($jour_semaine==7) if ($jour_semaine==7)
{ {
$total .= "\n<tr>$ligne\n</tr>"; if ($ligne) $total .= "\n<tr>$ligne\n</tr>";
$ligne = ''; $ligne = '';
} }
} }
......
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