diff options
-rw-r--r-- | mod/groups/start.php | 3 | ||||
-rw-r--r-- | views/default/page_elements/content_header.php | 10 |
2 files changed, 10 insertions, 3 deletions
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 = "<a href=\"{$url}\" class='action_button'>" . elgg_echo($type . ':new') . "</a>"; $action_buttons = "<div class='content_header_options'>".$action_buttons."</div>"; - } 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 = "<div class='content_header_title'>".elgg_view_title( $title )."</div>"; + $page_filter = ''; + $url = "{$CONFIG->wwwroot}pg/groups/new/"; + $action_buttons = "<a href=\"{$url}\" class='action_button'>" . elgg_echo($type . ':new') . "</a>"; + $action_buttons = "<div class='content_header_options'>".$action_buttons."</div>"; + + } else { // we're on an action page - we'll just have a simple page title, and no filter menu $title = elgg_echo($type); $title = "<div class='content_header_title'>".elgg_view_title( $title )."</div>"; $page_filter = ''; |