diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/edit.php | 2 | ||||
-rw-r--r-- | mod/groups/groupprofile.php | 4 | ||||
-rw-r--r-- | mod/groups/languages/en.php | 1 | ||||
-rw-r--r-- | mod/groups/views/default/groups/items.php | 28 | ||||
-rw-r--r-- | mod/groups/views/default/groups/members.php | 27 |
5 files changed, 61 insertions, 1 deletions
diff --git a/mod/groups/edit.php b/mod/groups/edit.php index a5b1df74b..04cfdc35d 100644 --- a/mod/groups/edit.php +++ b/mod/groups/edit.php @@ -26,7 +26,7 @@ $body .= elgg_echo("groups:noaccess"); } - $body = elgg_view_layout('one_column', $body); + $body = elgg_view_layout('two_column_left_sidebar', '', $body); page_draw($title, $body); ?>
\ No newline at end of file diff --git a/mod/groups/groupprofile.php b/mod/groups/groupprofile.php index cf9a96f1f..c06654f85 100644 --- a/mod/groups/groupprofile.php +++ b/mod/groups/groupprofile.php @@ -19,6 +19,10 @@ $area2 = elgg_view_title($group->name);
$area2 .= elgg_view('group/group', array('entity' => $group, 'user' => $_SESSION['user'], 'full' => true));
+
+ //group profile 'items' - these are not real widgets, just contents to display
+ $area2 .= elgg_view('groups/items',array('entity' => $group));
+
$body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
// Finally draw the page
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index 1dc9c1840..4337af5ae 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -29,6 +29,7 @@ 'groups:briefdescription' => 'Brief description',
'groups:interests' => 'Interests',
'groups:website' => 'Website',
+ 'groups:members' => 'Group members',
'groups:membership' => "Membership",
'groups:access' => "Access permissions",
'groups:owner' => "Owner",
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 |