aboutsummaryrefslogtreecommitdiff
path: root/views/rss/river
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 21:25:25 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 21:25:25 +0000
commit694781d190fba09437a37983f077d0381a56050b (patch)
tree788d5eeb369d7dc85bb35adf4fd1abe86f00b504 /views/rss/river
parentd46162271a5ca3c3af690173d0abfcd1ab9f69a1 (diff)
downloadelgg-694781d190fba09437a37983f077d0381a56050b.tar.gz
elgg-694781d190fba09437a37983f077d0381a56050b.tar.bz2
Finished standardizing seconday views.
git-svn-id: http://code.elgg.org/elgg/trunk@3559 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss/river')
-rw-r--r--views/rss/river/item/list.php50
1 files changed, 26 insertions, 24 deletions
diff --git a/views/rss/river/item/list.php b/views/rss/river/item/list.php
index c74a99f97..5ac43c544 100644
--- a/views/rss/river/item/list.php
+++ b/views/rss/river/item/list.php
@@ -1,16 +1,20 @@
<?php
+/**
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- if (isset($vars['items']) && is_array($vars['items'])) {
-
- $i = 0;
- if (!empty($vars['items']))
+if (isset($vars['items']) && is_array($vars['items'])) {
+
+ $i = 0;
+ if (!empty($vars['items'])) {
foreach($vars['items'] as $item) {
-
+
// echo elgg_view_river_item($item);
if (elgg_view_exists($item->view,'default')) {
- $body = elgg_view($item->view,array(
- 'item' => $item
- ),false,false,'default');
+ $body = elgg_view($item->view,array('item' => $item),false,false,'default');
$time = date("r",$item->posted);
if ($entity = get_entity($item->object_guid)) {
$url = htmlspecialchars($entity->getURL());
@@ -18,25 +22,23 @@
$url = $vars['url'];
}
$title = strip_tags($body);
-
-?>
+
+ ?>
<item>
- <guid isPermaLink='true'><?php echo $url; ?></guid>
- <pubDate><?php echo $time; ?></pubDate>
- <link><?php echo $url; ?></link>
- <title><![CDATA[<?php echo $title; ?>]]></title>
- <description><![CDATA[<?php echo (autop($body)); ?>]]></description>
+ <guid isPermaLink='true'><?php echo $url; ?></guid>
+ <pubDate><?php echo $time; ?></pubDate>
+ <link><?php echo $url; ?></link>
+ <title><![CDATA[<?php echo $title; ?>]]></title>
+ <description><![CDATA[<?php echo (autop($body)); ?>]]></description>
</item>
-<?php
-
+ <?php
+
}
-
+
$i++;
- if ($i >= $vars['limit']) break;
-
+ if ($i >= $vars['limit']) {
+ break;
+ }
}
-
}
-
-
-?> \ No newline at end of file
+} \ No newline at end of file