aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-20 17:29:25 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-20 17:29:25 +0000
commit261131dd4e787b49a0a0aadfaccc1be055651e3b (patch)
treea36ecca1020189d292bd4048cfe32b85f5b2b5a7 /views
parent292330a21e1415b324896c4b632d171a4b12462a (diff)
downloadelgg-261131dd4e787b49a0a0aadfaccc1be055651e3b.tar.gz
elgg-261131dd4e787b49a0a0aadfaccc1be055651e3b.tar.bz2
small edit to header contents, will need to find a better way to extend this view in the required fashion.
git-svn-id: http://code.elgg.org/elgg/trunk@6114 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/page_elements/content_header.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/page_elements/content_header.php b/views/default/page_elements/content_header.php
index 483d85c4b..a6970dc49 100644
--- a/views/default/page_elements/content_header.php
+++ b/views/default/page_elements/content_header.php
@@ -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