X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fpage_header.php;h=3afdeef122aae02e436b5ca8af13256d383878d8;hp=ff964481c186dfa03ef8461aa219c31adaaac23d;hb=ffd8224ce14be1e6eb40c4ace15f46c21d6f4b9b;hpb=826b7f711520a63efece207c0602556d4681f29b diff --git a/functions/page_header.php b/functions/page_header.php index ff964481..3afdeef1 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -2,30 +2,33 @@ /** ** page_header.php ** + ** Copyright (c) 1999-2001 The Squirrelmail Development Team + ** Licensed under the GNU GPL. For full terms see the file COPYING. + ** ** Prints the page header (duh) ** ** $Id$ **/ - if (defined('page_header_php')) - return; - define('page_header_php', true); - // Always set up the language before calling these functions - function displayHtmlHeader ($title="SquirrelMail") { - global $theme_css; + function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) { - echo '' . - "\n\n\n\n"; - if ($theme_css != '') { - echo "\n"; - } - - do_hook ("generic_header"); + global $theme_css; + + echo '' . + "\n\n\n\n"; + + if ($theme_css != '') { + echo "\n"; + } + + if( $do_hook ) { + do_hook ("generic_header"); + } + + echo "$title$xtra\n\n"; - echo "$title\n"; - echo "\n\n"; } function displayInternalLink ($path, $text, $target='') { @@ -45,18 +48,18 @@ /** Here is the header and wrapping table **/ $shortBoxName = readShortMailboxName($mailbox, $delimiter); - echo "\n"; - // echo "
"; - echo "\n"; - echo " \n"; - echo "
\n"; + echo "\n". + // "\n". + " \n". + "
". + "\n". + " \n". + " \n"; - echo " \n"; - echo " \n"; - echo " \n". + " \n". + " \n". + " \n"; - echo " \n"; - echo "
\n"; displayInternalLink ("src/signout.php", _("Sign Out"), "_top"); - echo " \n"; - echo ' ' . _("Current Folder") . ": $shortBoxName \n"; - echo "
\n"; + echo " \n". + ' ' . _("Current Folder") . ": $shortBoxName \n". + "
\n"; $urlMailbox = urlencode($mailbox); displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), "right"); echo "  \n"; @@ -76,9 +79,10 @@ echo " \n"; echo ($hide_sm_attributions ? ' ' : "SquirrelMail\n"); - echo "
\n\n"; + echo "
\n\n"; // echo "
"; } -?> + +?> \ No newline at end of file