aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-12 08:17:44 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-12 08:17:44 +0000
commitf6f63110c3cffb14043960fd4bbc9f6cba62fa7e (patch)
tree35aa4868f36f183e3ff163563afae73a619f08a9 /views/default
parentc204355f2dc239c864f71f943ce47461b4410655 (diff)
downloadelgg-f6f63110c3cffb14043960fd4bbc9f6cba62fa7e.tar.gz
elgg-f6f63110c3cffb14043960fd4bbc9f6cba62fa7e.tar.bz2
create a new group button added
git-svn-id: http://code.elgg.org/elgg/trunk@5692 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/page_elements/content_header.php10
1 files changed, 9 insertions, 1 deletions
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 = '';