Adding new plugin output sections 'provider_link_after' and 'provider_link_before'
[squirrelmail.git] / templates / default / page_header.tpl
index 438667e01f0e779d62eafb789816e9b348998de2..10acf65cc941c6e2ce92ea7273904fa27d68d246 100644 (file)
@@ -17,20 +17,20 @@ extract($t);
 
 
 $current_folder_str = '';
-if ( $shortBoxName <> '' && strtolower( $shortBoxName ) <> 'none' ) {
+if ( $shortBoxName != '' ) {
     $current_folder_str .= _("Current Folder") . ": <em>$shortBoxName&nbsp;</em>\n";
 } else {
     $current_folder_str .= '&nbsp;';
 }
 
 // Define our default link text.
-$signout_link_default = _('Sign Out');
-$compose_link_default = _('Compose');
-$address_link_default = _('Addresses');
-$folders_link_default = _('Folders');
-$options_link_default = _('Options');
-$search_link_default = _('Search');
-$help_link_default = _('Help');
+$signout_link_default = _("Sign Out");
+$compose_link_default = _("Compose");
+$address_link_default = _("Addresses");
+$folders_link_default = _("Folders");
+$options_link_default = _("Options");
+$search_link_default = _("Search");
+$help_link_default = _("Help");
 
 /*
  * Create strings to use for links.  If tempalte authors
@@ -63,6 +63,7 @@ $help_link            = makeInternalLink ('src/help.php', $help_str);
 <body <?php echo $body_tag_js; ?>>
 <div id="page_header">
 <a name="pagetop"></a>
+<?php if (!empty($plugin_output['page_header_top'])) echo $plugin_output['page_header_top']; ?>
 <!-- Begin Header Navigation Table -->
 <table class="table_empty" cellspacing="0">
  <tr>
@@ -74,16 +75,25 @@ $help_link          = makeInternalLink ('src/help.php', $help_str);
   </td>
  </tr>
  <tr>
-  <td class="sqm_topNavigation"<?php echo ($hide_sm_attributions ? ' colspan="2"' : ''); ?>>
+  <td class="sqm_topNavigation">
    <?php echo $compose_link; ?>&nbsp;&nbsp;
    <?php echo $address_link; ?>&nbsp;&nbsp;
    <?php echo $folders_link; ?>&nbsp;&nbsp;
    <?php echo $options_link; ?>&nbsp;&nbsp;
    <?php echo $search_link; ?>&nbsp;&nbsp;
    <?php echo $help_link; ?>&nbsp;&nbsp;
-   <?php do_hook('menuline'); ?>
+   <?php /* FIXME: no hooks in templates!! */ global $null; do_hook('menuline', $null); ?>
+  </td>
+  <td class="sqm_providerInfo">
+   <?php 
+       if (!empty($plugin_output['provider_link_before']))
+           echo $plugin_output['provider_link_before'];
+       if (!empty($provider_link))
+           echo $provider_link;
+       if (!empty($plugin_output['provider_link_after']))
+           echo $plugin_output['provider_link_after'];
+   ?>
   </td>
-  <?php echo $sm_attribute_str."\n"; ?>
  </tr>
 </table>
 </div>