-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfeed_2.0.tpl
executable file
·67 lines (57 loc) · 2.47 KB
/
feed_2.0.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:admin="http://webns.net/mvcb/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
{$namespace_display_dat}>
<channel>
<title>{$metadata.title}</title>
<link>{$metadata.link}</link>
<description>{$metadata.description}</description>
<dc:language>{$metadata.language}</dc:language>
{if $metadata.showMail}
<admin:errorReportsTo rdf:resource="mailto:{$metadata.email}" />
{/if}
<generator>Serendipity {$serendipityVersion} - http://www.s9y.org/</generator>
{$metadata.additional_fields.channel}
{$metadata.additional_fields.image}
{foreach from=$entries item="entry"}
<item>
<title>{$entry.feed_title}</title>
<link>{$entry.feed_entryLink}{if $is_comments}#c{$entry.commentid}{/if}</link>
{foreach from=$entry.categories item="cat"}
<category>{$cat.feed_category_name}</category>
{/foreach}
<comments>{$entry.feed_entryLink}#comments</comments>
<wfw:comment>{$serendipityBaseURL}wfwcomment.php?cid={$entry.feed_id}</wfw:comment>
{if !$is_comments}
<slash:comments>{$entry.comments}</slash:comments>
<wfw:commentRss>{$serendipityBaseURL}rss.php?version={$metadata.version}&type=comments&cid={$entry.feed_id}</wfw:commentRss>
{/if}
<author>{$entry.feed_email} ({$entry.feed_author})</author>
{if !empty($entry.body)}
<content:encoded>
{$entry.feed_body|@escape} {$entry.feed_ext|@escape}
{if !$is_comments}
<br /><br /><a href="{$entry.feed_entryLink}#comments">{$CONST.COMMENTS}: ({$entry.comments})</a> | {$CONST.TRACKBACKS}: ({$entry.trackbacks})<br /><br />
<strong>{$CONST.COMMENTS}</strong><br />
<ol class="commentlist">
{serendipity_printComments|@escape entry=$entry.id}
</ol>
<strong>{$CONST.TRACKBACKS}</strong><br />
<ol class="commentlist">
{serendipity_printTrackbacks|@escape entry=$entry.id}
</ol>
{/if}
</content:encoded>
{/if}
<pubDate>{$entry.feed_timestamp_r}</pubDate>
<guid isPermaLink="false">{$entry.feed_guid}</guid>
{$entry.per_entry_display_dat}
</item>
{/foreach}
</channel>
</rss>