aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/all
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2015-02-22 23:36:27 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-23 22:36:10 +0200
commit8e5e954438b232f4ce7aec6a5db3d52b974c07a8 (patch)
tree26eb33e968d8b7a48f40bb092b751a1a708a8f59 /phpBB/styles/all
parentf56fe0ba8da2211d3947369e79952f294cffe7d6 (diff)
downloadforums-8e5e954438b232f4ce7aec6a5db3d52b974c07a8.tar
forums-8e5e954438b232f4ce7aec6a5db3d52b974c07a8.tar.gz
forums-8e5e954438b232f4ce7aec6a5db3d52b974c07a8.tar.bz2
forums-8e5e954438b232f4ce7aec6a5db3d52b974c07a8.tar.xz
forums-8e5e954438b232f4ce7aec6a5db3d52b974c07a8.zip
[ticket/13645] Move the feeds to controllers
PHPBB3-13645
Diffstat (limited to 'phpBB/styles/all')
-rw-r--r--phpBB/styles/all/template/feed.xml.twig37
1 files changed, 37 insertions, 0 deletions
diff --git a/phpBB/styles/all/template/feed.xml.twig b/phpBB/styles/all/template/feed.xml.twig
new file mode 100644
index 0000000000..91467c62cd
--- /dev/null
+++ b/phpBB/styles/all/template/feed.xml.twig
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ FEED_LANG }}">
+ <link rel="self" type="application/atom+xml" href="{{ SELF_LINK }}" />
+
+ {% if not FEED_TITLE is empty %}<title>{{ FEED_TITLE }}</title>{% endif %}
+
+ {% if not FEED_SUBTITLE is empty %}<subtitle>{{ FEED_SUBTITLE }}</subtitle>{% endif %}
+
+ {% if not FEED_LINK is empty %}<link href="{{ FEED_LINK }}" />{% endif %}
+
+ <updated>{{ FEED_UPDATED }}</updated>
+
+ <author><name><![CDATA[{{ FEED_AUTHOR }}]]></name></author>
+ <id>{{ SELF_LINK }}</id>
+
+ {% for row in FEED_ROWS %}
+ <entry>
+ {% if not row.author is empty %}<author><name><![CDATA[{{ row.author }}]]></name></author>{% endif %}
+
+ <updated>{% if not row.updated is empty %}{{ row.updated }} {% else %}{{ row.published }}{% endif %}</updated>
+
+ {% if not row.published is empty %}<published>{{ row.published }}</published>{% endif %}
+
+ <id>{{ row.link }}</id>
+ <link href="{{ row.link }}"/>
+ <title type="html"><![CDATA[{{ row.title }}]]></title>
+
+ {% if not row.category is empty and row.category_name is defined and row.category_name != '' %}
+ <category term="{{ row.category_name }}" scheme="{{ row.category }}" label="{{ row.category_name }}"/>
+ {% endif %}
+
+ <content type="html" xml:base="{{ row.link }}"><![CDATA[
+{{ row.description }}{% if not row.statistics is empty %}<p>{{ lang('STATISTICS') }}: {{ row.statistics }}</p>{% endif %}<hr />
+]]></content>
+ </entry>
+ {% endfor %}
+</feed>