summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-01-16 10:12:25 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-01-16 10:12:25 +0000
commit7d3de4e01ec11a553f46fea48c5733e6ab25e91d (patch)
treeb0b7c1887ca426fc9056803f74983f04640513cc /data
parentbacc8ecb70663a0b3a4a06f884eb45db0ece989e (diff)
downloadsemanticscuttle-7d3de4e01ec11a553f46fea48c5733e6ab25e91d.tar.gz
semanticscuttle-7d3de4e01ec11a553f46fea48c5733e6ab25e91d.tar.bz2
add pubdate and latest change date to rss feed
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@589 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'data')
-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