summaryrefslogtreecommitdiff
path: root/http/templates/rss.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'http/templates/rss.tpl')
-rw-r--r--http/templates/rss.tpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/http/templates/rss.tpl b/http/templates/rss.tpl
new file mode 100644
index 0000000..f95a462
--- /dev/null
+++ b/http/templates/rss.tpl
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0">
+ <channel>
+ <title>{$user}'s timeline</title>
+ <link>https://twitter.com/{$user}</link>
+ <lastBuildDate>{$cacheTime|date_format:"D, d M Y H:i:s O"}</lastBuildDate>
+ {foreach from=$content item=item}
+ <item>
+ <title>{$item->text|escape}</title>
+ <link>https://twitter.com/{$user}/status/{$item->id_str}</link>
+ {if isset($item->user)}
+ <guid>http://emkael.info/tulz/twitterRSS/{$item->user->id_str}/{$item->id_str}</guid>
+ {/if}
+ <description><![CDATA[ {$item->text|escape} ]]></description>
+ <pubDate>{$item->created_at|date_format:"D, d M Y H:i:s O"}</pubDate>
+ </item>
+ {/foreach}
+ </channel>
+</rss>