From 00fad54c0babfb0643c2ab9da98b4b74af84d466 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Sun, 14 Jun 2009 16:40:57 -0700
Subject: Refactor feed code to use stdClass everywhere. Fix bugs in the
max-pages calculation code. Move feed related data into the $feed variable
and only pass that to the view.
---
modules/comment/views/comment.mrss.php | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
(limited to 'modules/comment/views')
diff --git a/modules/comment/views/comment.mrss.php b/modules/comment/views/comment.mrss.php
index d2177026..4f520144 100644
--- a/modules/comment/views/comment.mrss.php
+++ b/modules/comment/views/comment.mrss.php
@@ -6,33 +6,33 @@
xmlns:fh="http://purl.org/syndication/history/1.0">
gallery3
- = p::clean($title) ?>
- = $link ?>
- = p::clean($description) ?>
+ = p::clean($feed->title) ?>
+ = $feed->uri ?>
+ = p::clean($feed->description) ?>
en-us
-
+
- if (!empty($previous_page_link)): ?>
-
+ if (!empty($feed->previous_page_uri)): ?>
+
endif ?>
- if (!empty($next_page_link)): ?>
-
+ if (!empty($feed->next_page_uri)): ?>
+
endif ?>
= $pub_date ?>
= $pub_date ?>
- foreach ($children as $child): ?>
+ foreach ($feed->children as $child): ?>
-
- = p::clean($child["title"]) ?>
- = p::clean($child["item_link"]) ?>
- = p::clean($child["author"]) ?>
- = $child["item_link"] ?>
- = $child["pub_date"] ?>
+ = p::clean($child->title) ?>
+ = p::clean($child->item_uri) ?>
+ = p::clean($child->author) ?>
+ = $child->item_uri ?>
+ = $child->pub_date ?>
= p::clean($child["text"]) ?>
+ = p::clean($child->text) ?>
-
"
- height="= $child["thumb_height"] ?>" width="= $child["thumb_width"] ?>" />
+
]]>
--
cgit v1.2.3