Happy New Year!
[platal.git] / templates / carnet / calendar.tpl
1 {**************************************************************************}\r
2 {*                                                                        *}\r
3 {*  Copyright (C) 2003-2011 Polytechnique.org                             *}\r
4 {*  http://opensource.polytechnique.org/                                  *}\r
5 {*                                                                        *}\r
6 {*  This program is free software; you can redistribute it and/or modify  *}\r
7 {*  it under the terms of the GNU General Public License as published by  *}\r
8 {*  the Free Software Foundation; either version 2 of the License, or     *}\r
9 {*  (at your option) any later version.                                   *}\r
10 {*                                                                        *}\r
11 {*  This program is distributed in the hope that it will be useful,       *}\r
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}\r
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}\r
14 {*  GNU General Public License for more details.                          *}\r
15 {*                                                                        *}\r
16 {*  You should have received a copy of the GNU General Public License     *}\r
17 {*  along with this program; if not, write to the Free Software           *}\r
18 {*  Foundation, Inc.,                                                     *}\r
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}\r
20 {*                                                                        *}\r
21 {**************************************************************************}\r
22 BEGIN:VCALENDAR\r
23 {display_ical name="prodid" value="-//Polytechnique.org//Plat-al//FR"}\r
24 VERSION:2.0\r
25 CALSCALE:GREGORIAN\r
26 METHOD:PUBLISH\r
27 {display_ical name="x-wr-calname" value="Anniversaires des X"}\r
28 X-WR-TIMEZONE:Europe/Paris\r
29 {iterate from=$events item=e}\r
30 BEGIN:VEVENT\r
31 DTSTAMP:{$e.timestamp|date_format:"%Y%m%dT%H%M%SZ"}\r
32 DTSTART;VALUE=DATE:{$e.date}\r
33 DTEND;VALUE=DATE:{$e.tomorrow}\r
34 UID:anniv-{$e.date}-{$e.hruid}@{#globals.mail.domain#}\r
35 RRULE:FREQ=YEARLY;INTERVAL=1\r
36 CLASS:PUBLIC\r
37 {display_ical name="summary" value=$e.summary}\r
38 END:VEVENT\r
39 {/iterate}\r
40 END:VCALENDAR{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}