aboutsummaryrefslogtreecommitdiff
path: root/tpls
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-03-03 14:25:39 +0100
committerKevin Chabowski <kevin@kch42.de>2012-03-03 14:25:39 +0100
commit6d1ef4d36ddc545acb1d43386194eaa635c0db39 (patch)
treedf66c4015d03bf7901cf435045fd6459510d1652 /tpls
downloadatom_feed-6d1ef4d36ddc545acb1d43386194eaa635c0db39.tar.gz
atom_feed-6d1ef4d36ddc545acb1d43386194eaa635c0db39.tar.bz2
atom_feed-6d1ef4d36ddc545acb1d43386194eaa635c0db39.zip
Initial commit.
Diffstat (limited to 'tpls')
-rw-r--r--tpls/backend.html16
-rw-r--r--tpls/feed.xml51
-rw-r--r--tpls/tpls.zipbin0 -> 1410 bytes
3 files changed, 67 insertions, 0 deletions
diff --git a/tpls/backend.html b/tpls/backend.html
new file mode 100644
index 0000000..284b7c0
--- /dev/null
+++ b/tpls/backend.html
@@ -0,0 +1,16 @@
+<ste:load name="/systemtemplates/master.html" />
+<ste:block name="content">
+ <ste:default_error />
+ <ste:default_success />
+
+ <h2>Configure your feeds</h2>
+ <form action="$rel_path_to_pluginpage" method="POST" accept-charset="UTF-8">
+ <p><strong>Title of your feeds:</strong> <input type="text" name="title" value="<ste:escape>$feed_title</ste:escape>" /></p>
+ <p><strong>URL path:</strong> <input type="text" name="path" value="<ste:escape>$feed_path</ste:escape>" /></p>
+ <p><strong>Default author name:</strong> <input type="text" name="author_name" value="<ste:escape>$feed_author[name]</ste:escape>" /></p>
+ <p><strong>Default author email:</strong> <input type="text" name="author_email" value="<ste:escape>$feed_author[email]</ste:escape>" /></p>
+ <p><strong>Default author uri:</strong> <input type="text" name="author_uri" value="<ste:escape>$feed_author[uri]</ste:escape>" /></p>
+ <p><strong>Feed base ID (only change this, if you really know what you are doing):</strong> <input type="text" name="baseid" value="<ste:escape>$feed_baseid</ste:escape>" /></p>
+ <p><input type="submit" name="save_config" /></p>
+ </form>
+</ste:block>
diff --git a/tpls/feed.xml b/tpls/feed.xml
new file mode 100644
index 0000000..1074b88
--- /dev/null
+++ b/tpls/feed.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ste:mktag name="atom_feed_author" mandatory="var">
+ <author>
+ <name><ste:escape><ste:get var="${_tag_parameters[var]}[name]" /></ste:escape></name>
+ ?{<ste:get var="${_tag_parameters[var]}[email]" />|<email><ste:escape><ste:get var="${_tag_parameters[var]}[email]" /></ste:escape></email>|}
+ ?{<ste:get var="${_tag_parameters[var]}[uri]" />|<uri><ste:escape><ste:get var="${_tag_parameters[var]}[uri]" /></ste:escape></uri>|}
+ </author>
+</ste:mktag>
+<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="$feed[lang]" xml:base="$xmlbase">
+ <title><ste:escape>$feed[title]</ste:escape></title>
+ <link rel="self" href="<ste:escape>$baseurl/$feed[feedpath]/$feed[lang]/$feed[mode]/$feed[id].xml</ste:escape>"/>
+ ?{$feed[alternate]|<link href="<ste:escape>$feed[alternate]</ste:escape>" />|}
+ <updated><ste:date timestamp="$feed[updated]">%Y-%m-%dT%H:%M:%SZ</ste:date></updated>
+ <ste:if>$feed[author]
+ <ste:then>
+ <ste:atom_feed_author var="feed[author]" />
+ </ste:then>
+ </ste:if>
+ <ste:set var="feed_id_root">data:,<ste:escape>$feed[unique_id]/$feed[lang]/$feed[mode]/$feed[id]</ste:escape></ste:set>
+ <id>$feed_id_root</id>
+ <generator>atom_feed plugin for Ratatöskr</generator>
+
+ <ste:foreach array="feed[entries]" value="entry">
+ <entry>
+ <id>$feed_id_root/$entry[id]</id>
+ <title><ste:escape>$entry[title]</ste:escape></title>
+ <updated><ste:date timestamp="$entry[updated]">%Y-%m-%dT%H:%M:%SZ</ste:date></updated>
+ ?{$entry[author]|<ste:atom_feed_author var="entry[author]" />|}
+ <ste:if>$entry[content]
+ <ste:then>
+ <content type="xhtml">
+ <div xmlns="http://www.w3.org/1999/xhtml">$entry[content]</div>
+ </content>
+ </ste:then>
+ </ste:if>
+ <ste:if>$entry[summary]
+ <ste:then>
+ <summary type="xhtml">
+ <div xmlns="http://www.w3.org/1999/xhtml">$entry[summary]</div>
+ </summary>
+ </ste:then>
+ </ste:if>
+ <ste:if>$entry[alternate]
+ <ste:then>
+ <link href="<ste:escape>$entry[alternate]</ste:escape>" />
+ </ste:then>
+ </ste:if>
+ </entry>
+ </ste:foreach>
+
+</feed>
diff --git a/tpls/tpls.zip b/tpls/tpls.zip
new file mode 100644
index 0000000..0ee4579
--- /dev/null
+++ b/tpls/tpls.zip
Binary files differ