aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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