Adding new plugin output sections 'provider_link_after' and 'provider_link_before'
[squirrelmail.git] / templates / default / page_header.tpl
index 4b7687716eaa87bd7e2e303facb94c37e348b6f4..10acf65cc941c6e2ce92ea7273904fa27d68d246 100644 (file)
@@ -17,7 +17,7 @@ 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;';
@@ -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,7 +75,7 @@ $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;
@@ -83,7 +84,16 @@ $help_link           = makeInternalLink ('src/help.php', $help_str);
    <?php echo $help_link; ?>&nbsp;&nbsp;
    <?php /* FIXME: no hooks in templates!! */ global $null; do_hook('menuline', $null); ?>
   </td>
-  <?php echo $sm_attribute_str."\n"; ?>
+  <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>
  </tr>
 </table>
 </div>