diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-10 17:13:37 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-10 17:13:37 +0000 |
commit | 409331a459355fb827aa33acf3275f3d618a2510 (patch) | |
tree | c300483fe791a99a4e6890cf507ddf7c9843078d /mod/groups/all.php | |
parent | 755367a31d3c1dbc1cc24ce270a217d2390cbe44 (diff) | |
download | elgg-409331a459355fb827aa33acf3275f3d618a2510.tar.gz elgg-409331a459355fb827aa33acf3275f3d618a2510.tar.bz2 |
Updated Groups to the new interface. Some view clean-up & simplification done.
git-svn-id: http://code.elgg.org/elgg/trunk@5348 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/all.php')
-rw-r--r-- | mod/groups/all.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/mod/groups/all.php b/mod/groups/all.php index 11c3235d1..1d9f36dc5 100644 --- a/mod/groups/all.php +++ b/mod/groups/all.php @@ -44,24 +44,25 @@ //get a group count $group_count = elgg_get_entities(array('types' => 'group', 'limit' => 10, 'count' => TRUE)); - - //find groups - $area1 = elgg_view("groups/find"); //menu options - $area1 .= elgg_view("groups/side_menu"); + $area2 = elgg_view("groups/side_menu"); + + //find groups + $area2 .= elgg_view("groups/find"); //featured groups $featured_groups = elgg_get_entities_from_metadata(array('metadata_name' => 'featured_group', 'metadata_value' => 'yes', 'types' => 'group', 'limit' => 10)); - $area1 .= elgg_view("groups/featured", array("featured" => $featured_groups)); - + $area2 .= elgg_view("groups/featured", array("featured" => $featured_groups)); set_context($context); + $objects = "<div class='group_listings'>".$objects."</div>"; + $title = sprintf(elgg_echo("groups:all"),page_owner_entity()->name); - $area2 = elgg_view_title($title); - $area2 .= elgg_view("groups/group_sort_menu", array("count" => $group_count, "filter" => $filter)) . $objects; - $body = elgg_view_layout('one_column_with_sidebar', $area2, $area1); + $area1 .= elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups')); + $area1 .= elgg_view("groups/group_sort_menu", array("count" => $group_count, "filter" => $filter)) . $objects; + $body = elgg_view_layout('one_column_with_sidebar', $area1, $area2); // Finally draw the page page_draw($title, $body); |