Add hook in 1.5.2 for attachments_top as with 1.4.23
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 18 Mar 2014 03:16:52 +0000 (03:16 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 18 Mar 2014 03:16:52 +0000 (03:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14451 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/read_attachments.tpl

index 11a0c59..72e0443 100644 (file)
@@ -6,6 +6,7 @@
  * template is called from the function formatAttachments() in functions/mime.php.
  *
  * The following variables are available in this template:
+ *    $plugin_output  array  An array of extra output that may be added by plugin(s).
  *    $attachments - array containing info for all message attachments.  Each
  *                   element in the array represents a separate attachment and
  *                   contains the following elements:
@@ -45,7 +46,10 @@ if (count($attachments)==0) {
 <table cellspacing="0" class="table2">
  <tr>
   <td class="header5" colspan="5">
-   <?php echo _("Attachments"); ?>
+   <?php
+      echo _("Attachments");
+      if (!empty($plugin_output['attachments_top'])) echo $plugin_output['attachments_top'];
+   ?>
   </td>
  </tr>
  <?php