aboutsummaryrefslogtreecommitdiff
path: root/views/rss/page/components
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-20 21:02:38 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-20 21:02:38 +0000
commitae6bea4b0b40a94edb0c5271d279f3bdcca6a0c1 (patch)
treed02e5cfeb092620cc71e1960b99639fed4795419 /views/rss/page/components
parent21f41d24e2fad631499ab80950e4d9a1e22bcca0 (diff)
downloadelgg-ae6bea4b0b40a94edb0c5271d279f3bdcca6a0c1.tar.gz
elgg-ae6bea4b0b40a94edb0c5271d279f3bdcca6a0c1.tar.bz2
Refs #3197 fixed layout views for RSS viewtype
git-svn-id: http://code.elgg.org/elgg/trunk@8785 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss/page/components')
-rw-r--r--views/rss/page/components/image_block.php7
-rw-r--r--views/rss/page/components/list.php14
2 files changed, 21 insertions, 0 deletions
diff --git a/views/rss/page/components/image_block.php b/views/rss/page/components/image_block.php
new file mode 100644
index 000000000..ff94bcff2
--- /dev/null
+++ b/views/rss/page/components/image_block.php
@@ -0,0 +1,7 @@
+<?php
+/**
+ * RSS image block view
+ *
+ * Only display the body
+ */
+echo $vars['body']; \ No newline at end of file
diff --git a/views/rss/page/components/list.php b/views/rss/page/components/list.php
new file mode 100644
index 000000000..2650fc006
--- /dev/null
+++ b/views/rss/page/components/list.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * RSS list view
+ *
+ * @uses $vars['items']
+ */
+
+$items = $vars['items'];
+
+if (is_array($items) && sizeof($items) > 0) {
+ foreach ($items as $item) {
+ echo elgg_view_list_item($item, $vars);
+ }
+} \ No newline at end of file