From f6f63110c3cffb14043960fd4bbc9f6cba62fa7e Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 12 Apr 2010 08:17:44 +0000 Subject: create a new group button added git-svn-id: http://code.elgg.org/elgg/trunk@5692 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/content_header.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'views/default') diff --git a/views/default/page_elements/content_header.php b/views/default/page_elements/content_header.php index f0e2ad535..cb547cd96 100644 --- a/views/default/page_elements/content_header.php +++ b/views/default/page_elements/content_header.php @@ -88,7 +88,15 @@ EOT; $action_buttons = "" . elgg_echo($type . ':new') . ""; $action_buttons = "
".$action_buttons."
"; - } else { // we're on an action page (or groups) - we'll just have a simple page title, and no filter menu + } elseif(get_context() == 'groups'){ + $title = elgg_echo($type); + $title = "
".elgg_view_title( $title )."
"; + $page_filter = ''; + $url = "{$CONFIG->wwwroot}pg/groups/new/"; + $action_buttons = "" . elgg_echo($type . ':new') . ""; + $action_buttons = "
".$action_buttons."
"; + + } else { // we're on an action page - we'll just have a simple page title, and no filter menu $title = elgg_echo($type); $title = "
".elgg_view_title( $title )."
"; $page_filter = ''; -- cgit v1.2.3