diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 19:39:09 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 19:39:09 +0000 |
commit | 1592d4217af947daa4d866b52c171db04fcda32d (patch) | |
tree | ee0b85a98273c0e3e2f7511d6ee06fd6f0f86c20 /mod/groups/views/rss/forum | |
parent | 2c3a303bdf91bc229747f3c5f8663c413ee06f8f (diff) | |
download | elgg-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
Diffstat (limited to 'mod/groups/views/rss/forum')
-rw-r--r-- | mod/groups/views/rss/forum/topics.php | 21 | ||||
-rw-r--r-- | mod/groups/views/rss/forum/viewposts.php | 16 |
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 |