]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
create a new group button added
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 12 Apr 2010 08:17:44 +0000 (08:17 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 12 Apr 2010 08:17:44 +0000 (08:17 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5692 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/groups/start.php
views/default/page_elements/content_header.php

index fd9148086cfcc479e0758a6189760a828c63b492..9db55e3923e985a2d6987ee09818c93592d00aba 100644 (file)
                        'description' => 'longtext',
                        'briefdescription' => 'text',
                        'interests' => 'tags',
-                       'website' => 'url',
-
+                       //'website' => 'url',
                );
 
                $CONFIG->group = trigger_plugin_hook('profile:fields', 'group', NULL, $profile_defaults);
index f0e2ad5351217ab92c91ca3d5fe7a898acd2489e..cb547cd969d96ba12d2848be6fb86c032e5e7566 100644 (file)
@@ -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 = '';