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

la genericite du script des calendriers, c'est un bon debut avant celle de spip-image

parent 0b5dac12
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,5 +20,7 @@ elseif (file_exists($f = (_DIR_INCLUDE . 'inc_' . $nom . '.php'))) ...@@ -20,5 +20,7 @@ elseif (file_exists($f = (_DIR_INCLUDE . 'inc_' . $nom . '.php')))
include($f); include($f);
if (function_exists($nom)) if (function_exists($nom))
$nom($type, $css); $nom($type, $css);
if (function_exists($f = $nom . "_dist"))
$f($type, $css);
spip_log("fonction $nom indisponible");
?> ?>
...@@ -18,7 +18,7 @@ define("_ECRIRE_INC_CALENDRIER", "1"); ...@@ -18,7 +18,7 @@ define("_ECRIRE_INC_CALENDRIER", "1");
include_ecrire("inc_texte.php3"); include_ecrire("inc_texte.php3");
charger_generer_url(); charger_generer_url();
function calendrier($type, $css="") function calendrier_dist($type, $css="")
{ {
$date = date("Y-m-d", time()); $date = date("Y-m-d", time());
if ($type == 'semaine') { if ($type == 'semaine') {
...@@ -566,7 +566,7 @@ function http_calendrier_ics($annee, $mois, $jour,$echelle, $partie_cal, $large ...@@ -566,7 +566,7 @@ function http_calendrier_ics($annee, $mois, $jour,$echelle, $partie_cal, $large
$fin = 15; $fin = 15;
} else { } else {
$debut = 7; $debut = 7;
$fin =20; $fin =21;
} }
if ($echelle==0) $echelle = DEFAUT_D_ECHELLE; if ($echelle==0) $echelle = DEFAUT_D_ECHELLE;
......
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