Makes use of PlIteratorUtils::map() to build contact calendar.
[platal.git] / templates / carnet / calendar.tpl
index 6565ffc..52df5e2 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}\r
 {*                                                                        *}\r
-{*  Copyright (C) 2003-2008 Polytechnique.org                             *}\r
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}\r
 {*  http://opensource.polytechnique.org/                                  *}\r
 {*                                                                        *}\r
 {*  This program is free software; you can redistribute it and/or modify  *}\r
@@ -26,7 +26,7 @@ CALSCALE:GREGORIAN
 METHOD:PUBLISH\r
 {display_ical name="x-wr-calname" value="Anniversaires des X"}\r
 X-WR-TIMEZONE:Europe/Paris\r
-{foreach from=$events item=e}\r
+{iterate from=$events item=e}\r
 BEGIN:VEVENT\r
 DTSTAMP:{$e.timestamp|date_format:"%Y%m%dT%H%M%SZ"}\r
 DTSTART;VALUE=DATE:{$e.date}\r
@@ -36,5 +36,5 @@ RRULE:FREQ=YEARLY;INTERVAL=1
 CLASS:PUBLIC\r
 {display_ical name="summary" value=$e.summary}\r
 END:VEVENT\r
-{/foreach}\r
+{/iterate}\r
 END:VCALENDAR{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}