atom.xml.tpl 1.33 KB
Newer Older
1
2
3
4
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>{$feed.title}</title>
    <id>{$feed.id}</id>
5
6
7
8
9
10
    <link href="{$feed.link}" />
    <link rel="self" type="application/atom+xml" href="{$feed.selflink}" />
    <subtitle type="html"><![CDATA[ {$feed.description|clean_html|safe} ]]></subtitle>
    <logo>{$feed.logo}</logo>
    <icon>{$feed.icon}</icon>
    <generator uri="{$feed.generator.uri}" version="{$feed.generator.version}">
11
12
13
14
15
        {$feed.generator.text}
    </generator>
    <author>
        <name>{$feed.author.name}</name>
    {if $feed.author.uri}
16
        <uri>{$feed.author.uri}</uri>
17
18
19
20
21
22
23
24
    {/if}
    </author>
    <updated>{$feed.updated}</updated>
    <rights type="html"><![CDATA[ {$feed.rights} ]]></rights>
{foreach from=$posts item=post}
    <entry>
        <title>{$post.title}</title>
        <id>{$post.id}</id>
25
26
        <link href="{$post.link}" />
        <content type="html"><![CDATA[ {$post.description|clean_html|safe} ]]></content>
27
28
29
30
31
32
        <author>
            <name>{$feed.author.name}</name>
        </author>
        <updated>{$post.mtime}</updated>
        <rights type="html"><![CDATA[ {$feed.rights} ]]></rights>
    {foreach from=$post.attachments item=attachlink}
33
        <link rel="enclosure" title="{$attachlink.title}" href="{$attachlink.link}" />
34
35
36
37
    {/foreach}
    </entry>
{/foreach}
</feed>