summaryrefslogtreecommitdiff
path: root/templates/atom.tpl
blob: ea8f35723a0837a8ecd67d53d5b6be5b3bd7efb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>{$feedTitle}</title>
  <link href="https://twitter.com/{$user}" />
  <id>{$feedID}</id>
  <updated>{$cacheTime|date_format:"c"}</updated>
  {foreach from=$content item=item}
  <entry>
    <title>{$item->Title|escape}</title>
    <link href="{$item->Link}" />
    <id>{$feedID}/{$item->ID}</id>
    <updated>{$item->Time|date_format:"c"}</updated>
    <summary><![CDATA[ {$item->Text|escape} ]]></summary>
    {if isset($item->Author)}
    <author>
      <name>{$item->Author}</name>
    </author>
    {/if}
  </entry>
  {/foreach}
</feed>