From b6e17eb139367d8602ec8a96295f03cda42398a1 Mon Sep 17 00:00:00 2001
From: Tim Almdal
Date: Mon, 23 Feb 2009 02:47:29 +0000
Subject: 1) Updated the media feed with new fields 2) Created a comments feed
(/rss/comments) 3) Created a updates feed (/rss/updates)
User interface to follow
---
modules/rss/views/comment.mrss.php | 43 ++++++++++++++++++++++++++++++++++++++
modules/rss/views/feed.mrss.php | 8 ++++---
2 files changed, 48 insertions(+), 3 deletions(-)
create mode 100644 modules/rss/views/comment.mrss.php
(limited to 'modules/rss/views')
diff --git a/modules/rss/views/comment.mrss.php b/modules/rss/views/comment.mrss.php
new file mode 100644
index 00000000..8b7e4f70
--- /dev/null
+++ b/modules/rss/views/comment.mrss.php
@@ -0,0 +1,43 @@
+
+ echo "" ?>
+
+
+ gallery3
+ = $title ?>
+ = $link ?>
+ = htmlspecialchars($description) ?>
+ en-us
+
+
+ if (!empty($previous_page_link)): ?>
+
+ endif ?>
+ if (!empty($next_page_link)): ?>
+
+ endif ?>
+ = $pub_date ?>
+ = $pub_date ?>
+ foreach ($children as $child): ?>
+ -
+ = $child["title"]?>
+ = $child["item_link"] ?>
+ = $child["author"] ?>
+ = $child["item_link"] ?>
+ = $child["pub_date"] ?>
+
+ = $child["text"] ?>
+
+
"
+ height="= $child["thumb_height"] ?>" width="= $child["thumb_width"] ?>" />
+
+
+ ]]>
+
+
+ endforeach ?>
+
+
diff --git a/modules/rss/views/feed.mrss.php b/modules/rss/views/feed.mrss.php
index dbaee532..fbcd415e 100644
--- a/modules/rss/views/feed.mrss.php
+++ b/modules/rss/views/feed.mrss.php
@@ -23,11 +23,12 @@
foreach ($children as $child): ?>
-
= htmlspecialchars($child->title) ?>
- = url::abs_site("photos/$child->id") ?>
- = htmlspecialchars($child->description) ?>
- = url::abs_site("photos/$child->id") ?>
+ = url::abs_site("{$child->type}s/{$child->id}") ?>
+ = url::abs_site("{$child->type}s/{$child->id}") ?>
+ = date("D, d M Y H:i:s T", $child->createdb); ?>
= $child->description ?>
if (access::can("view_full", $child)): ?>