aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 15:06:30 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 15:06:30 +0000
commitd079f3ce5d6df2d3ca4b5900457a68858ecde629 (patch)
treead7d208cc3e8ff174dd6e0dad986686cc9ca7e9a
parentb78ced90b2561ed07d498cc3e08f6d60bf1cca5e (diff)
downloadelgg-d079f3ce5d6df2d3ca4b5900457a68858ecde629.tar.gz
elgg-d079f3ce5d6df2d3ca4b5900457a68858ecde629.tar.bz2
small tweak to header contents
git-svn-id: http://code.elgg.org/elgg/trunk@6229 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/page_elements/content_header.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/default/page_elements/content_header.php b/views/default/page_elements/content_header.php
index a6970dc49..825d6a1ed 100644
--- a/views/default/page_elements/content_header.php
+++ b/views/default/page_elements/content_header.php
@@ -69,17 +69,17 @@ EOT;
if (isloggedin()) {
// only show the new button when not on the add form.
// hide the tabs when on the add form.
+ // @todo remove the hard coded reference to the videolist plugin
if ($filter_context == 'action') {
$tabs = '';
} else {
- $new_button = "<a href=\"{$new_link}\" class='action_button'>" . elgg_echo($type . ':new') . '</a>';
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>';
+ $new_button .= "<a href=\"{$video_link}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
}else{
- $browse_video = '';
+ $new_button = "<a href=\"{$new_link}\" class='action_button'>" . elgg_echo($type . ':new') . '</a>';
}
- $new_button = "<div class='content_header_options'>$new_button $browse_video</div>";
+ $new_button = "<div class='content_header_options'>$new_button</div>";
}
// also hide the tabs if in a group context (ie, listing groups) or