Merge pull request #4185 from samuelsov/CRM-15330
[civicrm-core.git] / templates / CRM / Core / Calendar / Rss.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*}
26<?xml version="1.0" encoding="UTF-8"?>
27<rss version="2.0">
28<channel>
29<title>{ts}CiviEvent Public Calendar{/ts}</title>
30<link>{$config->userFrameworkBaseURL}</link>
31<description>{ts}Listing of current and upcoming public events.{/ts}</description>
32<language>{$rssLang}</language>
33<generator>CiviCRM</generator>
34<docs>http://blogs.law.harvard.edu/tech/rss</docs>
35{foreach from=$events key=uid item=event}
36<item>
d70f1660 37<title>{$event.title|escape:'html'}</title>
6a488035
TO
38<link>{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`" fe=1 a=1}</link>
39<description>
d70f1660 40{if $event.summary}{$event.summary|escape:'html'}
6a488035 41{/if}
d70f1660 42{if $event.description}{$event.description|escape:'html'}
6a488035
TO
43{/if}
44{if $event.start_date}{ts}When{/ts}: {$event.start_date|crmDate}{if $event.end_date} {ts}through{/ts} {strip}
45 {* Only show end time if end date = start date *}
46 {if $event.end_date|date_format:"%Y%m%d" == $event.start_date|date_format:"%Y%m%d"}
47 {$event.end_date|date_format:"%I:%M %p"}
48 {else}
49 {$event.end_date|crmDate}
50 {/if}{/strip}
51 {/if}
52{/if}
d70f1660 53{if $event.is_show_location EQ 1 && $event.location}{ts}Where{/ts}: {$event.location|escape:'html'}
6a488035
TO
54{/if}
55</description>
d70f1660 56{if $event.event_type}<category>{$event.event_type|escape:'html'}</category>
6a488035
TO
57{/if}
58{if $event.contact_email}<author>{$event.contact_email}</author>
59{/if}
60<guid isPermaLink="false">{$event.uid}</guid>
61</item>
62{/foreach}
63</channel>
232624b1 64</rss>