]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
small edit to header contents, will need to find a better way to extend this view...
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 20 May 2010 17:29:25 +0000 (17:29 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 20 May 2010 17:29:25 +0000 (17:29 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6114 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/page_elements/content_header.php

index 483d85c4be7d8ab2e6990933cf68290f34c36f8a..a6970dc49bc7e82285930b83bcfb64418b6a785d 100644 (file)
@@ -73,7 +73,13 @@ if (isloggedin()) {
                $tabs = '';
        } else {
                $new_button = "<a href=\"{$new_link}\" class='action_button'>" . elgg_echo($type . ':new') . '</a>';
-               $new_button = "<div class='content_header_options'>$new_button</div>";
+               if(get_context() == "videolist"){
+                       $video_link = $CONFIG->wwwroot . "pg/videolist/browse/$username/";
+                       $browse_video .= "<a href=\"{$video_link}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
+               }else{
+                       $browse_video = '';
+               }
+               $new_button = "<div class='content_header_options'>$new_button $browse_video</div>";
        }
 
        // also hide the tabs if in a group context (ie, listing groups) or