]> projects.mako.cc - scuttle/blob - templates/rss.tpl.php
The contents of mysql4 database must be stored in right utf-8.
[scuttle] / templates / rss.tpl.php
1 <?php echo '<?xml version="1.0" encoding="UTF-8" ?'.">\n"; ?>
2 <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
3 <channel>
4   <title><?php echo $feedtitle; ?></title> 
5   <link><?php echo $feedlink; ?></link> 
6   <description><?php echo $feeddescription; ?></description>
7   <ttl>60</ttl>
8   <?php foreach($bookmarks as $bookmark): ?>
9     <item>
10       <title><?php echo $bookmark['title']; ?></title>
11       <link><?php echo $bookmark['link']; ?></link>
12       <description><?php echo $bookmark['description']; ?></description>
13       <dc:creator><?php echo $bookmark['creator']; ?></dc:creator>
14       <pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
15       <?php foreach($bookmark['tags'] as $tag): ?>
16         <category><?php echo $tag; ?></category>
17       <?php endforeach; ?>
18       <?php if ($bookmark['enclosure_mime']): ?>
19         <enclosure url="<?php echo $bookmark['link']; ?>" length="<?php echo $bookmark['enclosure_length']; ?>" type="<?php echo $bookmark['enclosure_mime']; ?>" />
20       <?php endif; ?>
21     </item>
22   <?php endforeach; ?>
23 </channel>
24 </rss>

Benjamin Mako Hill || Want to submit a patch?