Merge pull request #1630 from Stricted/option_modifyEnableOptions
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / rssFeed.tpl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <rss version="2.0"
3 xmlns:atom="http://www.w3.org/2005/Atom"
4 xmlns:content="http://purl.org/rss/1.0/modules/content/"
5 xmlns:dc="http://purl.org/dc/elements/1.1/"
6 xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
7 >
8 <channel>
9 <title><![CDATA[{if $title}{@$title|escapeCDATA} - {/if}{@PAGE_TITLE|language|escapeCDATA}]]></title>
10 <link><![CDATA[{@$baseHref|escapeCDATA}]]></link>
11 <description><![CDATA[{@PAGE_DESCRIPTION|language|escapeCDATA}]]></description>
12 <language>{@$__wcf->language->getFixedLanguageCode()}</language>
13 <pubDate>{'r'|gmdate:TIME_NOW}</pubDate>
14 {assign var='dummy' value=$items->rewind()}
15 <lastBuildDate>{if $items->valid()}{'r'|gmdate:$items->current()->getTime()}{else}{'r'|gmdate:TIME_NOW}{/if}</lastBuildDate>
16 <ttl>60</ttl>
17 <generator><![CDATA[WoltLab Community Framework{if SHOW_VERSION_NUMBER} {@WCF_VERSION}{/if}]]></generator>
18 <atom:link href="{$__wcf->getRequestURI()}" rel="self" type="application/rss+xml" />
19 {* *}{foreach from=$items item='item'}
20 <item>
21 <title><![CDATA[{@$item->getTitle()|escapeCDATA}]]></title>
22 <link><![CDATA[{@$item->getLink()|escapeCDATA}]]></link>
23 {hascontent}<description><![CDATA[{content}{@$item->getExcerpt()|escapeCDATA}{/content}]]></description>{/hascontent}
24 <pubDate>{'r'|gmdate:$item->getTime()}</pubDate>
25 <dc:creator><![CDATA[{@$item->getUsername()|escapeCDATA}]]></dc:creator>
26 <guid><![CDATA[{@$item->getLink()|escapeCDATA}]]></guid>
27 {foreach from=$item->getCategories() item='category'}
28 <category><![CDATA[{@$category|escapeCDATA}]]></category>
29 {/foreach}
30 {hascontent}<content:encoded><![CDATA[{content}{@$item->getFormattedMessage()|escapeCDATA}{/content}]]></content:encoded>{/hascontent}
31 <slash:comments><![CDATA[{@$item->getComments()|escapeCDATA}]]></slash:comments>
32 </item>
33 {* *}{/foreach}
34 </channel>
35 {if ENABLE_BENCHMARK}
36 <!--
37 Execution time: {@$__wcf->getBenchmark()->getExecutionTime()}s ({#($__wcf->getBenchmark()->getExecutionTime()-$__wcf->getBenchmark()->getQueryExecutionTime())/$__wcf->getBenchmark()->getExecutionTime()*100}% PHP, {#$__wcf->getBenchmark()->getQueryExecutionTime()/$__wcf->getBenchmark()->getExecutionTime()*100}% SQL) | SQL queries: {#$__wcf->getBenchmark()->getQueryCount()} | Memory-Usage: {$__wcf->getBenchmark()->getMemoryUsage()}
38
39 {* *}{if ENABLE_DEBUG_MODE}
40 {* *}{foreach from=$__wcf->getBenchmark()->getItems() item=item}
41 {* *} {if $item.type == 1}(SQL Query) {/if}{$item.text} ({@$item.use}s)
42 {* *}{/foreach}
43 {* *}{/if}
44 -->
45 {/if}
46 </rss>