From: dave Date: Mon, 12 Apr 2010 08:17:44 +0000 (+0000) Subject: create a new group button added X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f6f63110c3cffb14043960fd4bbc9f6cba62fa7e;p=lorea%2Felgg.git create a new group button added git-svn-id: http://code.elgg.org/elgg/trunk@5692 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/mod/groups/start.php b/mod/groups/start.php index fd9148086..9db55e392 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -171,8 +171,7 @@ 'description' => 'longtext', 'briefdescription' => 'text', 'interests' => 'tags', - 'website' => 'url', - + //'website' => 'url', ); $CONFIG->group = trigger_plugin_hook('profile:fields', 'group', NULL, $profile_defaults); 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 = '';