| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * page_header.tpl |
| 5 | * |
| 6 | * Template to create the header for each page. |
| 7 | * |
| 8 | * @copyright 1999-2018 The SquirrelMail Project Team |
| 9 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
| 10 | * @version $Id$ |
| 11 | * @package squirrelmail |
| 12 | * @subpackage templates |
| 13 | */ |
| 14 | |
| 15 | /* retrieve the template vars */ |
| 16 | extract($t); |
| 17 | |
| 18 | |
| 19 | $current_folder_str = ''; |
| 20 | if ( $shortBoxName != '' ) { |
| 21 | $current_folder_str .= _("Current Folder") . ": <em>$shortBoxName </em>\n"; |
| 22 | } else { |
| 23 | $current_folder_str .= ' '; |
| 24 | } |
| 25 | |
| 26 | // Define our default link text. |
| 27 | $signout_link_default = _("Sign Out"); |
| 28 | $compose_link_default = _("Compose"); |
| 29 | $address_link_default = _("Addresses"); |
| 30 | $folders_link_default = _("Folders"); |
| 31 | $options_link_default = _("Options"); |
| 32 | $search_link_default = _("Search"); |
| 33 | $help_link_default = _("Help"); |
| 34 | |
| 35 | /* |
| 36 | * Create strings to use for links. If tempalte authors |
| 37 | * wish to use images instead, they may change the values |
| 38 | * below to img tags. |
| 39 | |
| 40 | * Example w/ image: |
| 41 | * $compose_str = '<img src="compose.png" border="0" ' . |
| 42 | * 'alt="'.$compose_link_default.'" ' . |
| 43 | * 'title="'.$compose_link_default.'" />'; |
| 44 | */ |
| 45 | |
| 46 | $signout_str = $signout_link_default; |
| 47 | $compose_str = $compose_link_default; |
| 48 | $address_str = $address_link_default; |
| 49 | $folders_str = $folders_link_default; |
| 50 | $options_str = $options_link_default; |
| 51 | $search_str = $search_link_default; |
| 52 | $help_str = $help_link_default; |
| 53 | |
| 54 | $compose_link = makeComposeLink('src/compose.php?mailbox=' . $urlMailbox |
| 55 | . '&startMessage=' . $startMessage, |
| 56 | $compose_str, '', $accesskey_menubar_compose); |
| 57 | $signout_link = makeInternalLink('src/signout.php', $signout_str, $frame_top, |
| 58 | $accesskey_menubar_signout); |
| 59 | $address_link = makeInternalLink('src/addressbook.php', $address_str, '', |
| 60 | $accesskey_menubar_addresses); |
| 61 | $folders_link = makeInternalLink('src/folders.php', $folders_str, '', |
| 62 | $accesskey_menubar_folders); |
| 63 | $search_link = makeInternalLink('src/search.php?mailbox='.$urlMailbox . '&what=', |
| 64 | $search_str, '', $accesskey_menubar_search); |
| 65 | $options_link = makeInternalLink('src/options.php', $options_str, '', |
| 66 | $accesskey_menubar_options); |
| 67 | $help_link = makeInternalLink('src/help.php', $help_str, '', |
| 68 | $accesskey_menubar_help); |
| 69 | |
| 70 | ?> |
| 71 | <body <?php if (!empty($onload)) echo ' onload="' . $onload . '"'; ?>> |
| 72 | <div id="page_header"> |
| 73 | <a name="pagetop"></a> |
| 74 | <?php if (!empty($plugin_output['page_header_top'])) echo $plugin_output['page_header_top']; ?> |
| 75 | <!-- Begin Header Navigation Table --> |
| 76 | <table class="table_empty" cellspacing="0"> |
| 77 | <tr> |
| 78 | <td class="sqm_currentFolder"> |
| 79 | <?php echo $current_folder_str; ?> |
| 80 | </td> |
| 81 | <td class="sqm_headerSignout"> |
| 82 | <?php echo $signout_link; ?> |
| 83 | </td> |
| 84 | </tr> |
| 85 | <tr> |
| 86 | <td class="sqm_topNavigation"> |
| 87 | <?php echo $compose_link; ?> |
| 88 | <?php echo $address_link; ?> |
| 89 | <?php echo $folders_link; ?> |
| 90 | <?php echo $options_link; ?> |
| 91 | <?php echo $search_link; ?> |
| 92 | <?php echo $help_link; ?> |
| 93 | <?php if (!empty($plugin_output['menuline'])) echo $plugin_output['menuline']; ?> |
| 94 | </td> |
| 95 | <td class="sqm_providerInfo"> |
| 96 | <?php |
| 97 | if (!empty($plugin_output['provider_link_before'])) |
| 98 | echo $plugin_output['provider_link_before']; |
| 99 | if (!empty($provider_link)) |
| 100 | echo $provider_link; |
| 101 | if (!empty($plugin_output['provider_link_after'])) |
| 102 | echo $plugin_output['provider_link_after']; |
| 103 | ?> |
| 104 | </td> |
| 105 | </tr> |
| 106 | </table> |
| 107 | </div> |
| 108 | <br /> |
| 109 | <!-- End Header Navigation Table --> |