aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
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
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')
-rw-r--r--mod/groups/edit.php2
-rw-r--r--mod/groups/groupprofile.php4
-rw-r--r--mod/groups/languages/en.php1
-rw-r--r--mod/groups/views/default/groups/items.php28
-rw-r--r--mod/groups/views/default/groups/members.php27
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