diff --git a/inc/sc_agenda.php b/inc/sc_agenda.php index 8c2514008780d8c71f590f1437c432eb0ebf67f8..6308ec9cfb2ec58ee9d282186e85b7b2e8a8a5d3 100644 --- a/inc/sc_agenda.php +++ b/inc/sc_agenda.php @@ -684,7 +684,7 @@ function http_calendrier_ics($annee, $mois, $jour, $echelle, $partie_cal, $large [$dimheure, $dimjour, $fontsize, $padding] = calendrier_echelle($debut, $fin, $echelle); $size = sprintf('%0.2f', DEFAUT_TAILLE_HEURE + (10 / $echelle)); - $style .= "height:${dimjour}px;font-size:${size}em;"; + $style .= "height:{$dimjour}px;font-size:{$size}em;"; $date = date('Ymd', mktime(0, 0, 0, $mois, $jour, $annee)); $avecheure = !isset($evt[1][$date]) ? '' : http_calendrier_ics_div($evt[1][$date], $date, $debut, $fin, $dimheure, $dimjour, $echelle, $largeur, $padding); @@ -798,7 +798,7 @@ $lieu = ''; $width = $largeur - ($padding << 1) - DEFAUT_DECALE; $fontsize = sprintf('%0.2f', 1 + (10 / $echelle)); - $style = "z-index:${i};${spip_lang_left}:${decale}em;top:${haut}px;height:${hauteur}px;width:${width}px;font-size:${fontsize}em;padding:${padding}px;$bordure"; + $style = "z-index:{$i};{$spip_lang_left}:{$decale}em;top:{$haut}px;height:{$hauteur}px;width:{$width}px;font-size:{$fontsize}em;padding:{$padding}px;$bordure"; $total .= "\n<div class='$colors calendrier-evt' style='$style' onmouseover=\"this.style.zIndex=" . $tous . '" onmouseout="this.style.zIndex=' . $i . '">' . @@ -825,11 +825,11 @@ function http_calendrier_ics_grille($debut, $fin, $dimheure, $dimjour, $echelle) for ($i = $debut; $i < $fin; $i++) { $k = "$i:00"; $n = calendrier_top($k, $debut, $fin, $dimheure, $dimjour); - $total .= "\n<span style='$spip_lang_left:0;top:${n}px;'>$k</span>"; + $total .= "\n<span style='$spip_lang_left:0;top:{$n}px;'>$k</span>"; for ($j = 1; $j < $slice; $j++) { $k = $i . ':' . sprintf('%02d', floor(($j * 60) / $slice)); $n = calendrier_top($k, $debut, $fin, $dimheure, $dimjour); - $total .= "\n<span class='calendrier-jour-m' style='$spip_lang_left:0;top:${n}px;'>$k</span>"; + $total .= "\n<span class='calendrier-jour-m' style='$spip_lang_left:0;top:{$n}px;'>$k</span>"; } } @@ -839,8 +839,8 @@ function http_calendrier_ics_grille($debut, $fin, $dimheure, $dimjour, $echelle) return "\n<span style='border:0;$spip_lang_left:0;top:2px;'>0:00</span>" . $total . - "\n<span style='$spip_lang_left:0;top:${n}px;'>$fin:00</span>" . - "\n<span style='border:0;$spip_lang_left:0;top:${c}px;'>23:59</span>"; + "\n<span style='$spip_lang_left:0;top:{$n}px;'>$fin:00</span>" . + "\n<span style='border:0;$spip_lang_left:0;top:{$c}px;'>23:59</span>"; } /// si la largeur le permet, les evenements sans duree, @@ -875,7 +875,7 @@ function http_calendrier_ics_trois($evt, $largeur, $dimjour, $echelle, $border) $pos = 0; } - return "\n<div style='position: relative; z-index: 2; top: ${pos}px; margin-$spip_lang_left: " . $largeur . "px'>$res</div>"; + return "\n<div style='position: relative; z-index: 2; top: {$pos}px; margin-$spip_lang_left: " . $largeur . "px'>$res</div>"; } // https://code.spip.net/@http_calendrier_ics_titre