Merge pull request #17361 from jaapjansma/dev-1767
[civicrm-core.git] / templates / CRM / Core / Calendar / Rss.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 <?xml version="1.0" encoding="UTF-8"?>
11 <rss version="2.0">
12 <channel>
13 <title>{ts}CiviEvent Public Calendar{/ts}</title>
14 <link>{$config->userFrameworkBaseURL}</link>
15 <description>{ts}Listing of current and upcoming public events.{/ts}</description>
16 <language>{$rssLang}</language>
17 <generator>CiviCRM</generator>
18 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
19 {foreach from=$events key=uid item=event}
20 <item>
21 <title>{$event.title|escape:'html'}</title>
22 <link>{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`" fe=1 a=1}</link>
23 <description>
24 {if $event.summary}{$event.summary|escape:'html'}
25 {/if}
26 {if $event.description}{$event.description|escape:'html'}
27 {/if}
28 {if $event.start_date}{ts}When{/ts}: {$event.start_date|crmDate}{if $event.end_date} {ts}through{/ts} {strip}
29 {* Only show end time if end date = start date *}
30 {if $event.end_date|date_format:"%Y%m%d" == $event.start_date|date_format:"%Y%m%d"}
31 {$event.end_date|date_format:"%I:%M %p"}
32 {else}
33 {$event.end_date|crmDate}
34 {/if}{/strip}
35 {/if}
36 {/if}
37 {if $event.is_show_location EQ 1 && $event.location}{ts}Where{/ts}: {$event.location|escape:'html'}
38 {/if}
39 </description>
40 {if $event.event_type}<category>{$event.event_type|escape:'html'}</category>
41 {/if}
42 {if $event.contact_email}<author>{$event.contact_email}</author>
43 {/if}
44 <guid isPermaLink="false">{$event.uid}</guid>
45 </item>
46 {/foreach}
47 </channel>
48 </rss>