summaryrefslogtreecommitdiff
path: root/templates/rss.tpl
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-12-27 14:44:39 +0100
committeremkael <emkael@tlen.pl>2016-12-27 14:44:39 +0100
commit59bd9d51cc705dd44bdce753a56cc6ae914b02ce (patch)
treed61f42dccd15b1b630204c1575b4dedc1c98e9cf /templates/rss.tpl
parentb76bf844db1f196e3fa709461fcb4706839744e5 (diff)
* directory structure
Diffstat (limited to 'templates/rss.tpl')
-rw-r--r--templates/rss.tpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/rss.tpl b/templates/rss.tpl
new file mode 100644
index 0000000..f95a462
--- /dev/null
+++ b/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>