]> projects.mako.cc - scuttle/blob - templates/rss.tpl.php
Tagged 0.7.5
[scuttle] / templates / rss.tpl.php
1 <?php
2 echo '<?xml version="1.0" encoding="UTF-8" ?'.">\n";
3 ?>
4
5 <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
6 <channel>
7     <title><?php echo $feedtitle; ?></title> 
8     <link><?php echo $feedlink; ?></link> 
9     <description><?php echo $feeddescription; ?></description>
10     <ttl>60</ttl>
11
12 <?php foreach($bookmarks as $bookmark): ?>
13     <item>
14         <title><?php echo $bookmark['title']; ?></title>
15         <link><?php echo $bookmark['link']; ?></link>
16         <description><?php echo $bookmark['description']; ?></description>
17         <dc:creator><?php echo $bookmark['creator']; ?></dc:creator>
18         <pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
19
20     <?php foreach($bookmark['tags'] as $tag): ?>
21         <category><?php echo $tag; ?></category>
22     <?php endforeach; ?>
23
24     </item>
25 <?php endforeach; ?>
26
27 </channel>
28 </rss>

Benjamin Mako Hill || Want to submit a patch?