Merge pull request #23931 from eileenmcnaughton/repeat_pledge
[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 {* pubDate must follow RFC822 format *}
23 <pubDate>{$event.start_date|crmRSSPubDate}</pubDate>
24 <link>{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`" fe=1 a=1}</link>
25 <description>
26 {if $event.summary}{$event.summary|escape:'html'}
27 {/if}
28 {if $event.description}{$event.description|escape:'html'}
29 {/if}
30 {if $event.start_date}{ts}When{/ts}: {$event.start_date|crmDate}{if $event.end_date} {ts}through{/ts} {strip}
31 {* Only show end time if end date = start date *}
32 {if $event.end_date|crmDate:"%Y%m%d" == $event.start_date|crmDate:"%Y%m%d"}
33 {$event.end_date|crmDate:"%I:%M %p"}
34 {else}
35 {$event.end_date|crmDate}
36 {/if}{/strip}
37 {/if}
38 {/if}
39 {if $event.is_show_location EQ 1 && $event.location}{ts}Where{/ts}: {$event.location|escape:'html'}
40 {/if}
41 </description>
42 {if $event.event_type}<category>{$event.event_type|escape:'html'}</category>
43 {/if}
44 {if $event.contact_email}<author>{$event.contact_email}</author>
45 {/if}
46 <guid isPermaLink="false">{$event.uid}</guid>
47 </item>
48 {/foreach}
49 </channel>
50 </rss>