X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fpage_header.php;h=bf731b50f10be978eb8d89c9110bc1c0a7e9c197;hp=c6a1f4b0d0280312501b89767cea665c6db886cd;hb=5ca05f193c50a532a031fb76cd77aecbd279199d;hpb=6dc0e4643d9162034631ed7dac0a0a7cddc1f48d diff --git a/functions/page_header.php b/functions/page_header.php index c6a1f4b0..bf731b50 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -1,87 +1,326 @@ ' . - "\n\n\n
\n"; + if ( !sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) { + global $base_uri; + } + global $theme_css, $custom_css; - if ($theme_css != '') { - echo "\n"; - } + echo '' . + "\n\n" . html_tag( 'html' ,'' , '', '', '' ) . "\n\n"; - if( $do_hook ) { - do_hook ("generic_header"); + if ( !isset( $custom_css ) || $custom_css == 'none' ) { + if ($theme_css != '') { + echo ""; } + } else { + echo ''; + } + + if ($squirrelmail_language == 'ja_JP') { + echo "\n"; + echo '' . "\n"; + } + + if ($do_hook) { + do_hook('generic_header'); + } + + echo "\n\n"; - displayInternalLink ("src/signout.php", _("Sign Out"), "_top"); - echo " | \n". - ' ' . _("Current Folder") . ": $shortBoxName \n". - " | \n". - "
\n"; - $urlMailbox = urlencode($mailbox); - displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), "right"); - echo " \n"; - displayInternalLink ("src/addressbook.php", _("Addresses"), "right"); - echo " \n"; - displayInternalLink ("src/folders.php", _("Folders"), "right"); - echo " \n"; - displayInternalLink ("src/options.php", _("Options"), "right"); - echo " \n"; - displayInternalLink ("src/search.php?mailbox=$urlMailbox", _("Search"), "right"); - echo " \n"; - displayInternalLink ("src/help.php", _("Help"), "right"); - echo " \n"; - - do_hook("menuline"); - - echo " | \n"; - echo ($hide_sm_attributions ? ' ' : - "SquirrelMail\n"); - echo " | \n". - "