2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
12 PRODID:-//CiviCRM//NONSGML CiviEvent iCal//EN
13 X-WR-TIMEZONE:{$timezone}
15 {foreach from=$events key=uid item=event}
18 SUMMARY:{$event.title|crmICalText}
19 {if $event.description}
20 DESCRIPTION:{$event.description|crmICalText}
22 {if $event.event_type}
23 CATEGORIES:{$event.event_type|crmICalText}
26 {if $event.start_date}
27 DTSTAMP;VALUE=DATE-TIME:{$event.start_date|crmICalDate}
28 DTSTART;VALUE=DATE-TIME:{$event.start_date|crmICalDate}
30 DTSTAMP;VALUE=DATE-TIME:{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'|crmICalDate}
33 DTEND;VALUE=DATE-TIME:{$event.end_date|crmICalDate}
35 DTEND;VALUE=DATE-TIME:{$event.start_date|crmICalDate}
37 {if $event.is_show_location EQ 1 && $event.location}
38 LOCATION:{$event.location|crmICalText}
40 {if $event.contact_email}
41 ORGANIZER:MAILTO:{$event.contact_email|crmICalText}