aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-02 02:46:24 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-02 02:46:24 +0000
commit740bbc2c7b00f6e409fddff26d7d633caa2ddb9d (patch)
tree6eb7ede297bde5260c37a8744bf660fff1a702f4 /mod/groups
parent9064861b7b3946aa16d73aa3975f4fe4d89a0d97 (diff)
downloadelgg-740bbc2c7b00f6e409fddff26d7d633caa2ddb9d.tar.gz
elgg-740bbc2c7b00f6e409fddff26d7d633caa2ddb9d.tar.bz2
moved group profile layout out of page handler so that plugins can override it
git-svn-id: http://code.elgg.org/elgg/trunk@8905 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/lib/groups.php6
-rw-r--r--mod/groups/views/default/groups/profile/layout.php13
2 files changed, 15 insertions, 4 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php
index ec75078eb..279c5f238 100644
--- a/mod/groups/lib/groups.php
+++ b/mod/groups/lib/groups.php
@@ -227,13 +227,11 @@ function groups_handle_profile_page($guid) {
elgg_push_breadcrumb($group->name);
- $sidebar = '';
- $content = elgg_view('groups/profile/summary', array('entity' => $group));
+ $content = elgg_view('groups/profile/layout', array('entity' => $group));
if (group_gatekeeper(false)) {
- $content .= elgg_view('groups/profile/widgets', array('entity' => $group));
$sidebar = elgg_view('groups/sidebar/members', array('entity' => $group));
} else {
- $content .= elgg_view('groups/profile/closed_membership');
+ $sidebar = '';
}
$params = array(
diff --git a/mod/groups/views/default/groups/profile/layout.php b/mod/groups/views/default/groups/profile/layout.php
new file mode 100644
index 000000000..f513f10ae
--- /dev/null
+++ b/mod/groups/views/default/groups/profile/layout.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Layout of the groups profile page
+ *
+ * @uses $vars['entity']
+ */
+
+echo elgg_view('groups/profile/summary', $vars);
+if (group_gatekeeper(false)) {
+ echo elgg_view('groups/profile/widgets', $vars);
+} else {
+ echo elgg_view('groups/profile/closed_membership');
+}