summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/rss.tpl.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/data/templates/rss.tpl.php b/data/templates/rss.tpl.php
index 0f03c06..87c86e7 100644
--- a/data/templates/rss.tpl.php
+++ b/data/templates/rss.tpl.php
@@ -1,12 +1,13 @@
<?php
-echo '<?xml version="1.0" encoding="UTF-8" ?'.">\n";
+echo '<' . '?xml version="1.0" encoding="UTF-8" ?' . ">\n";
?>
-
<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>
+ <pubDate><?php echo date('r'); ?></pubDate>
+ <lastBuildDate><?php echo $feedlastupdate ?></lastBuildDate>
<ttl>60</ttl>
<?php foreach($bookmarks as $bookmark): ?>
@@ -16,13 +17,10 @@ echo '<?xml version="1.0" encoding="UTF-8" ?'.">\n";
<description><?php echo $bookmark['description']; ?></description>
<dc:creator><?php echo $bookmark['creator']; ?></dc:creator>
<pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
-
- <?php foreach($bookmark['tags'] as $tag): ?>
+<?php foreach($bookmark['tags'] as $tag): ?>
<category><?php echo $tag; ?></category>
- <?php endforeach; ?>
-
+<?php endforeach; ?>
</item>
<?php endforeach; ?>
-
</channel>
</rss> \ No newline at end of file