aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-15 19:39:09 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-15 19:39:09 +0000
commit1592d4217af947daa4d866b52c171db04fcda32d (patch)
treeee0b85a98273c0e3e2f7511d6ee06fd6f0f86c20
parent2c3a303bdf91bc229747f3c5f8663c413ee06f8f (diff)
downloadelgg-1592d4217af947daa4d866b52c171db04fcda32d.tar.gz
elgg-1592d4217af947daa4d866b52c171db04fcda32d.tar.bz2
RSS views for forums
git-svn-id: https://code.elgg.org/elgg/trunk@1952 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/groups/views/rss/forum/topics.php21
-rw-r--r--mod/groups/views/rss/forum/viewposts.php16
-rw-r--r--mod/groups/views/rss/groups/profileitems.php20
3 files changed, 57 insertions, 0 deletions
diff --git a/mod/groups/views/rss/forum/topics.php b/mod/groups/views/rss/forum/topics.php
new file mode 100644
index 000000000..dff44b7f0
--- /dev/null
+++ b/mod/groups/views/rss/forum/topics.php
@@ -0,0 +1,21 @@
+<?php
+ /**
+ * Elgg groups plugin
+ *
+ * @package ElggGroups
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ // If there are any topics to view, view them
+ if (is_array($vars['entity']) && sizeof($vars['entity']) > 0) {
+
+ foreach($vars['entity'] as $topic) {
+
+ echo elgg_view_entity($topic);
+
+ }
+ }
+?> \ No newline at end of file
diff --git a/mod/groups/views/rss/forum/viewposts.php b/mod/groups/views/rss/forum/viewposts.php
new file mode 100644
index 000000000..b1f4fb6ee
--- /dev/null
+++ b/mod/groups/views/rss/forum/viewposts.php
@@ -0,0 +1,16 @@
+<?php
+
+ /**
+ * Elgg groups plugin display topic posts
+ *
+ * @package ElggGroups
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ echo elgg_view_entity($vars['entity']);
+
+
+?> \ No newline at end of file
diff --git a/mod/groups/views/rss/groups/profileitems.php b/mod/groups/views/rss/groups/profileitems.php
new file mode 100644
index 000000000..7867f3683
--- /dev/null
+++ b/mod/groups/views/rss/groups/profileitems.php
@@ -0,0 +1,20 @@
+<?php
+ /**
+ * Elgg groups items view.
+ * This is the messageboard, members, pages and latest forums posts. Each plugin will extend the views
+ *
+ * @package ElggGroups
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ //right column
+ echo elgg_view("groups/forum_latest",array('entity' => $vars['entity']));
+ echo elgg_view("groups/right_column",array('entity' => $vars['entity']));
+
+ //left column
+ echo elgg_view("groups/left_column",array('entity' => $vars['entity']));
+
+?> \ No newline at end of file