From 212f7c09ea4f1060516b4c573f6a0b28de46ddfb Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 21 Jul 2008 16:58:07 +0000 Subject: Groups using elgg_view_title git-svn-id: https://code.elgg.org/elgg/trunk@1483 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mod/groups/index.php') diff --git a/mod/groups/index.php b/mod/groups/index.php index 850fd4c3b..e4ca5a3ed 100644 --- a/mod/groups/index.php +++ b/mod/groups/index.php @@ -13,6 +13,8 @@ $limit = get_input("limit", 10); $offset = get_input("offset", 0); + + $title = sprintf(elgg_echo("groups:yours"),page_owner_entity()->name); // Get objects $context = get_context(); @@ -21,8 +23,10 @@ $objects = list_entities("group", "", page_owner(), $limit, false); set_context($context); - $body = elgg_view_layout('one_column',$objects); + $body = elgg_view_title($title); + $body .= $objects; + $body = elgg_view_layout('one_column',$body); // Finally draw the page - page_draw(sprintf(elgg_echo("groups:yours"),page_owner_entity()->name), $body); + page_draw($title, $body); ?> \ No newline at end of file -- cgit v1.2.3