Adding new plugin output section 'provider_link_before'
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 9 Mar 2007 06:05:20 +0000 (06:05 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 9 Mar 2007 06:05:20 +0000 (06:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12326 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default_advanced/page_header.tpl

index d348932e712f798d5db3648c31998312ed5f0f5a..704243e7f6b80cf66325549f41e4f7c5de24653a 100644 (file)
@@ -95,7 +95,7 @@ $help_link            = makeInternalLink ('src/help.php', $help_str);
   </td>
  </tr>
  <tr>
   </td>
  </tr>
  <tr>
-  <td class="sqm_topNavigation"<?php echo (empty($provider_link) ? ' 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 $compose_link; ?>&nbsp;&nbsp;
    <?php echo $address_link; ?>&nbsp;&nbsp;
    <?php echo $folders_link; ?>&nbsp;&nbsp;
@@ -104,10 +104,14 @@ $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 $help_link; ?>&nbsp;&nbsp;
    <?php /* FIXME: no hooks in templates!! */ global $null; do_hook('menuline', $null); ?>
   </td>
-  <?php if (!empty($provider_link))
-            echo '<td class="sqm_providerInfo">'
-               . $provider_link
-               . "</td>\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; 
+    ?>
+  </td>
  </tr>
 </table>
 </div>
  </tr>
 </table>
 </div>