aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/rss/forum
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/rss/forum')
-rw-r--r--mod/groups/views/rss/forum/topics.php21
-rw-r--r--mod/groups/views/rss/forum/viewposts.php16
2 files changed, 37 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