diff options
-rw-r--r-- | mod/groups/lib/groups.php | 6 | ||||
-rw-r--r-- | mod/groups/views/default/groups/profile/layout.php | 13 |
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'); +} |