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

Ajout de champ ICS pour Konqueror (corrige #693)

parent c2c9c7b7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
#CACHE{3600} #CACHE{3600}
BEGIN:VCALENDAR BEGIN:VCALENDAR
CALSCALE:GREGORIAN CALSCALE:GREGORIAN
PRODID: SPIP http://www.spip.net
VERSION:2.0
X-WR-CALNAME;VALUE=TEXT:[(#NOM_SITE_SPIP|filtrer_ical)] X-WR-CALNAME;VALUE=TEXT:[(#NOM_SITE_SPIP|filtrer_ical)]
X-WR-RELCALID:[(#URL_SITE_SPIP|filtrer_ical)] X-WR-RELCALID:[(#URL_SITE_SPIP|filtrer_ical)]
<BOUCLE_articles(ARTICLES){par date}{inverse}{0,100}> <BOUCLE_articles(ARTICLES){par date}{inverse}{0,100}>
......
...@@ -56,10 +56,13 @@ function action_ical_dist() ...@@ -56,10 +56,13 @@ function action_ical_dist()
lang_select($langue_utilisateur); lang_select($langue_utilisateur);
$nom_site = $GLOBALS['meta']["nom_site"]; $nom_site = $GLOBALS['meta']["nom_site"];
$adresse_site = url_de_base(); $adresse_site = url_de_base();
$spip = "SPIP " . $GLOBALS['spip_version_affichee'] . ' ' . $GLOBALS['home_server'];
header("Content-Type: text/calendar; charset=utf-8"); header("Content-Type: text/calendar; charset=utf-8");
echo filtrer_ical ("BEGIN:VCALENDAR"), "\n", echo filtrer_ical ("BEGIN:VCALENDAR"), "\n",
filtrer_ical ("CALSCALE:GREGORIAN"), "\n", filtrer_ical ("CALSCALE:GREGORIAN"), "\n",
filtrer_ical ("PRODID: $spip"), "\n",
filtrer_ical ("VERSION:2.0"), "\n",
filtrer_ical ("X-WR-CALNAME;VALUE=TEXT:$nom_site / $nom_utilisateur"), "\n", filtrer_ical ("X-WR-CALNAME;VALUE=TEXT:$nom_site / $nom_utilisateur"), "\n",
filtrer_ical ("X-WR-RELCALID:cal$id_utilisateur @ $adresse_site"), "\n"; filtrer_ical ("X-WR-RELCALID:cal$id_utilisateur @ $adresse_site"), "\n";
spip_ical_rendez_vous($id_utilisateur, $nom_site); spip_ical_rendez_vous($id_utilisateur, $nom_site);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter