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
|
|
|
?>
|
2012-01-20 14:54:54 +01:00
|
|
|
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
|
|
|
>
|
2007-12-12 17:29:16 +01:00
|
|
|
<channel>
|
2011-05-13 20:26:51 +02:00
|
|
|
<title><?php echo $feedtitle; ?></title>
|
2012-01-20 15:03:29 +01:00
|
|
|
<link><?php echo htmlspecialchars($pagelink); ?></link>
|
2012-01-20 14:54:54 +01:00
|
|
|
<atom:link rel="self" type="application/rss+xml" href="<?php echo htmlspecialchars($feedlink); ?>"/>
|
2010-01-19 21:32:10 +01:00
|
|
|
<description><?php echo htmlspecialchars($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>
|
2010-01-19 21:32:10 +01:00
|
|
|
<title><?php echo htmlspecialchars($bookmark['title']); ?></title>
|
|
|
|
<link><?php echo htmlspecialchars($bookmark['link']); ?></link>
|
2012-01-20 14:58:16 +01:00
|
|
|
<guid><?php echo $bookmark['guid']; ?></guid>
|
2010-01-19 21:32:10 +01:00
|
|
|
<description><?php echo htmlspecialchars($bookmark['description']); ?></description>
|
|
|
|
<dc:creator><?php echo htmlspecialchars($bookmark['creator']); ?></dc:creator>
|
2007-12-12 17:29:16 +01:00
|
|
|
<pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
|
2010-01-16 11:12:25 +01:00
|
|
|
<?php foreach($bookmark['tags'] as $tag): ?>
|
2010-01-19 21:32:10 +01:00
|
|
|
<category><?php echo htmlspecialchars($tag); ?></category>
|
2010-01-16 11:12:25 +01:00
|
|
|
<?php endforeach; ?>
|
2007-12-12 17:29:16 +01:00
|
|
|
</item>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</channel>
|
2011-05-13 20:26:51 +02:00
|
|
|
</rss>
|