Merge pull request #15670 from eileenmcnaughton/dupe_locks
[civicrm-core.git] / templates / CRM / Activity / Calendar / ICal.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
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}
21 DURATION:PT{$activity->duration}M
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