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=$timezones item=tzItem}
18 {foreach from=$tzItem.transitions item=tzTr}
20 TZOFFSETFROM:{$tzTr.offset_from}
21 TZOFFSETTO:{$tzTr.offset_to}
24 DTSTART:{$tzTr.dtstart|crmICalDate}
30 {foreach from=$events key=uid item=event}
33 SUMMARY:{$event.title|crmICalText}
34 {if $event.description}
35 X-ALT-DESC;FMTTYPE=text/html:{$event.description|crmICalText:true:29}
36 DESCRIPTION:{$event.description|crmICalText}
38 {if $event.event_type}
39 CATEGORIES:{$event.event_type|crmICalText}
42 {if $event.start_date}
43 DTSTAMP;TZID={$timezone}:{$event.start_date|crmICalDate}
44 DTSTART;TZID={$timezone}:{$event.start_date|crmICalDate}
46 DTSTAMP;TZID={$timezone}:{$smarty.now|crmDate:'%Y-%m-%d %H:%M:%S'|crmICalDate}
49 DTEND;TZID={$timezone}:{$event.end_date|crmICalDate}
51 DTEND;TZID={$timezone}:{$event.start_date|crmICalDate}
53 {if $event.is_show_location EQ 1 && $event.location}
54 LOCATION:{$event.location|crmICalText}
56 {if $event.contact_email}
57 ORGANIZER:MAILTO:{$event.contact_email|crmICalText}