aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 20:02:05 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 20:02:05 +0000
commitc14a496b158c572a7aa33dca03f41d52c72f686f (patch)
tree4f87c3490ecd4ddbfd87b5629bc8036c05a6ebc6 /mod/groups/views
parenta67c2a133f4b23a057b40d069513c183e66a23b2 (diff)
downloadelgg-c14a496b158c572a7aa33dca03f41d52c72f686f.tar.gz
elgg-c14a496b158c572a7aa33dca03f41d52c72f686f.tar.bz2
new group profile views
git-svn-id: https://code.elgg.org/elgg/trunk@1692 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views')
-rw-r--r--mod/groups/views/default/groups/items.php28
-rw-r--r--mod/groups/views/default/groups/members.php27
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