Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | BEGIN:VCALENDAR | |
11 | VERSION:2.0 | |
12 | PRODID:-//CiviCRM//NONSGML CiviCRM iCal//EN | |
13 | X-WR-TIMEZONE:{$timezone} | |
14 | METHOD:REQUEST | |
15 | BEGIN:VEVENT | |
16 | UID:CIVICRMACTIVITY{$activity->id} | |
17 | SUMMARY:{$activity->subject|crmICalText} | |
18 | CALSCALE:GREGORIAN | |
19 | DTSTAMP;VALUE=DATE-TIME:{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'|crmICalDate} | |
20 | DTSTART;VALUE=DATE-TIME:{$activity->activity_date_time|crmICalDate} | |
89ad464a | 21 | DURATION:PT{$activity->duration}M |
6a488035 TO |
22 | {if $activity->location} |
23 | LOCATION:{$activity->location|crmICalText} | |
24 | {/if} | |
25 | {if $organizer} | |
26 | ORGANIZER:MAILTO:{$organizer|crmICalText} | |
27 | {/if} | |
28 | {foreach from=$contacts item=contact} | |
29 | ATTENDEE;CN="{$contact.display_name|crmICalText}":MAILTO:{$contact.email|crmICalText} | |
30 | {/foreach} | |
31 | END:VEVENT | |
32 | END:VCALENDAR |