ical.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. #HTTP_HEADER{Content-Type: text/calendar; charset:#CHARSET}
  2. #HTTP_HEADER{Content-Disposition: attachment; filename=#NOM_SITE_SPIP|textebrut|replace{\W,'_'}|concat{.ics}}
  3. BEGIN:VCALENDAR
  4. CALSCALE:GREGORIAN
  5. PRODID: SPIP http://www.spip.net
  6. VERSION:2.0
  7. X-WR-CALNAME;VALUE=TEXT:[(#NOM_SITE_SPIP|filtrer_ical)]
  8. X-WR-RELCALID:[(#URL_SITE_SPIP|filtrer_ical)]
  9. <BOUCLE_articles(ARTICLES){!par date}{0,100}>
  10. BEGIN:VEVENT
  11. SUMMARY:[(#TITRE|filtrer_ical)] [[(#NOM_SITE_SPIP|filtrer_ical)]]
  12. UID:article#ID_ARTICLE @ [(#URL_SITE_SPIP|filtrer_ical)]
  13. DTSTAMP:[(#DATE|date_ical)]
  14. DTSTART:[(#DATE|date_ical)]
  15. DTEND:[(#DATE|date_ical{60})]
  16. CATEGORIES:<:articles|filtrer_ical:>
  17. URL:[(#URL_ARTICLE|url_absolue)]
  18. STATUS:CONFIRMED
  19. END:VEVENT</BOUCLE_articles><BOUCLE_breves(BREVES){!par date}{0,100}>
  20. BEGIN:VEVENT
  21. SUMMARY:[(#TITRE|filtrer_ical)] [[(#NOM_SITE_SPIP|filtrer_ical)]]
  22. UID:breve#ID_BREVE @ [(#URL_SITE_SPIP|filtrer_ical)]
  23. DTSTAMP:[(#DATE|date_ical)]
  24. DTSTART:[(#DATE|date_ical)]
  25. DTEND:[(#DATE|date_ical{60})]
  26. CATEGORIES:<:breves|filtrer_ical:>
  27. URL:[(#URL_BREVE|url_absolue)]
  28. STATUS:CONFIRMED
  29. END:VEVENT
  30. </BOUCLE_breves>
  31. END:VCALENDAR