[REF] Move handling of form elements back to the Form
[civicrm-core.git] / templates / CRM / Activity / Calendar / ICal.tpl
CommitLineData
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*}
10BEGIN:VCALENDAR
11VERSION:2.0
12PRODID:-//CiviCRM//NONSGML CiviCRM iCal//EN
13X-WR-TIMEZONE:{$timezone}
14METHOD:REQUEST
15BEGIN:VEVENT
16UID:CIVICRMACTIVITY{$activity->id}
17SUMMARY:{$activity->subject|crmICalText}
18CALSCALE:GREGORIAN
19DTSTAMP;VALUE=DATE-TIME:{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'|crmICalDate}
20DTSTART;VALUE=DATE-TIME:{$activity->activity_date_time|crmICalDate}
89ad464a 21DURATION:PT{$activity->duration}M
6a488035
TO
22{if $activity->location}
23LOCATION:{$activity->location|crmICalText}
24{/if}
25{if $organizer}
26ORGANIZER:MAILTO:{$organizer|crmICalText}
27{/if}
28{foreach from=$contacts item=contact}
29ATTENDEE;CN="{$contact.display_name|crmICalText}":MAILTO:{$contact.email|crmICalText}
30{/foreach}
31END:VEVENT
32END:VCALENDAR