diff options
Diffstat (limited to 'mod/groups/views')
-rw-r--r-- | mod/groups/views/default/groups/items.php | 28 | ||||
-rw-r--r-- | mod/groups/views/default/groups/members.php | 27 |
2 files changed, 55 insertions, 0 deletions
diff --git a/mod/groups/views/default/groups/items.php b/mod/groups/views/default/groups/items.php new file mode 100644 index 000000000..64b87063b --- /dev/null +++ b/mod/groups/views/default/groups/items.php @@ -0,0 +1,28 @@ +<?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/
+ */
+
+ //members
+ echo "<div id=\"group_members\" style=\"float:right;width:200px;\">";
+ echo elgg_view("groups/members",array('entity' => $vars['entity']));
+ echo "</div>";
+
+ //forums
+ echo "<div id=\"group_forums\">";
+ echo elgg_view("groups/forums",array('entity' => $vars['entity']));
+ echo "</div>";
+
+ //messageboard
+ echo "<div id=\"group_messageboard\">";
+ echo elgg_view("groups/messageboard",array('entity' => $vars['entity']));
+ echo "</div>";
+
+?>
\ No newline at end of file diff --git a/mod/groups/views/default/groups/members.php b/mod/groups/views/default/groups/members.php new file mode 100644 index 000000000..3f3453f85 --- /dev/null +++ b/mod/groups/views/default/groups/members.php @@ -0,0 +1,27 @@ +<?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/
+ */
+
+ //var_export($vars['entity']);
+?>
+
+<h2><?php echo elgg_echo("groups:members"); ?></h2>
+
+<?php
+
+ $members = $vars['entity']->getMembers(20);
+ foreach($members as $mem){
+
+ echo "<div class=\"member_icon\" style=\"float:left;margin:4px;\">" . elgg_view("profile/icon",array('entity' => $mem, 'size' => 'small')) . "</div>";
+
+ }
+
+?>
\ No newline at end of file |