aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 01:13:02 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 01:13:02 +0000
commit42ae2d2d1face8c781b6aef3140f4ec183d6f8a1 (patch)
tree52abad19e2b5f5fc15dc10e9409819678f2da8ec /views
parent1b3512f61edbde3c3d071df064d58efd49911b2d (diff)
downloadelgg-42ae2d2d1face8c781b6aef3140f4ec183d6f8a1.tar.gz
elgg-42ae2d2d1face8c781b6aef3140f4ec183d6f8a1.tar.bz2
Fixes #2113 - updated rss view type to use new view structure for lists
git-svn-id: http://code.elgg.org/elgg/trunk@7765 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/rss/entities/entity_list.php10
-rw-r--r--views/rss/layout/objects/list.php15
-rw-r--r--views/rss/layout/shells/default.php5
3 files changed, 20 insertions, 10 deletions
diff --git a/views/rss/entities/entity_list.php b/views/rss/entities/entity_list.php
deleted file mode 100644
index 83b45b00f..000000000
--- a/views/rss/entities/entity_list.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-$entities = $vars['entities'];
-$fullview = $vars['fullview'];
-
-if (is_array($entities) && sizeof($entities) > 0) {
- foreach($entities as $entity) {
- echo elgg_view_entity($entity, $fullview);
- }
-} \ No newline at end of file
diff --git a/views/rss/layout/objects/list.php b/views/rss/layout/objects/list.php
new file mode 100644
index 000000000..352725239
--- /dev/null
+++ b/views/rss/layout/objects/list.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * RSS list view
+ *
+ * @uses $vars['items']
+ */
+
+$items = $vars['items'];
+$full_view = elgg_get_array_value('full_view', $vars, false);
+
+if (is_array($items) && sizeof($items) > 0) {
+ foreach ($items as $item) {
+ echo elgg_view_list_item($item, $full_view, $vars);
+ }
+} \ No newline at end of file
diff --git a/views/rss/layout/shells/default.php b/views/rss/layout/shells/default.php
new file mode 100644
index 000000000..7f3ddebbd
--- /dev/null
+++ b/views/rss/layout/shells/default.php
@@ -0,0 +1,5 @@
+<?php
+/**
+ * RSS layout shell
+ */
+echo $vars['content']; \ No newline at end of file