diff options
author | emkael <emkael@tlen.pl> | 2016-12-27 14:37:42 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-12-27 14:37:42 +0100 |
commit | 4d80ef582eae06edd785db3d0e4bdf94d83cf537 (patch) | |
tree | 353339f6e6c56fdc0b0ce2497e301b26df1baa39 /http/templates/rss.tpl | |
parent | 0f90768414cfd4c779f8ac51573fcfa0695a13ff (diff) |
* initial commit
Diffstat (limited to 'http/templates/rss.tpl')
-rw-r--r-- | http/templates/rss.tpl | 19 |
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> |