summaryrefslogtreecommitdiff
path: root/templates/rss.tpl
blob: f95a462a9192024bc524612ce559496e3d73aeb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>