2007-12-12 17:29:16 +01:00
|
|
|
<?php
|
2010-01-16 11:13:52 +01:00
|
|
|
echo '<' . '?xml version="1.0" encoding="utf-8" ?' . ">\n";
|
2007-12-12 17:29:16 +01:00
|
|
|
?>
|
|
|
|
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
|
|
<channel>
|
|
|
|
<title><?php echo $feedtitle; ?></title>
|
|
|
|
<link><?php echo $feedlink; ?></link>
|
|
|
|
<description><?php echo $feeddescription; ?></description>
|
2010-01-16 11:12:25 +01:00
|
|
|
<pubDate><?php echo date('r'); ?></pubDate>
|
|
|
|
<lastBuildDate><?php echo $feedlastupdate ?></lastBuildDate>
|
2007-12-12 17:29:16 +01:00
|
|
|
<ttl>60</ttl>
|
|
|
|
|
|
|
|
<?php foreach($bookmarks as $bookmark): ?>
|
|
|
|
<item>
|
|
|
|
<title><?php echo $bookmark['title']; ?></title>
|
|
|
|
<link><?php echo $bookmark['link']; ?></link>
|
|
|
|
<description><?php echo $bookmark['description']; ?></description>
|
|
|
|
<dc:creator><?php echo $bookmark['creator']; ?></dc:creator>
|
|
|
|
<pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
|
2010-01-16 11:12:25 +01:00
|
|
|
<?php foreach($bookmark['tags'] as $tag): ?>
|
2007-12-12 17:29:16 +01:00
|
|
|
<category><?php echo $tag; ?></category>
|
2010-01-16 11:12:25 +01:00
|
|
|
<?php endforeach; ?>
|
2007-12-12 17:29:16 +01:00
|
|
|
</item>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</channel>
|
|
|
|
</rss>
|