Bläddra i källkod

Add hook in 1.5.2 for attachments_top as with 1.4.23

pdontthink 11 år sedan
förälder
incheckning
ae627e4cd1
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      templates/default/read_attachments.tpl

+ 5 - 1
templates/default/read_attachments.tpl

@@ -6,6 +6,7 @@
  * template is called from the function formatAttachments() in functions/mime.php.
  * template is called from the function formatAttachments() in functions/mime.php.
  *
  *
  * The following variables are available in this template:
  * 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
  *    $attachments - array containing info for all message attachments.  Each
  *                   element in the array represents a separate attachment and
  *                   element in the array represents a separate attachment and
  *                   contains the following elements:
  *                   contains the following elements:
@@ -45,7 +46,10 @@ if (count($attachments)==0) {
 <table cellspacing="0" class="table2">
 <table cellspacing="0" class="table2">
  <tr>
  <tr>
   <td class="header5" colspan="5">
   <td class="header5" colspan="5">
-   <?php echo _("Attachments"); ?>
+   <?php
+      echo _("Attachments");
+      if (!empty($plugin_output['attachments_top'])) echo $plugin_output['attachments_top'];
+   ?>
   </td>
   </td>
  </tr>
  </tr>
  <?php
  <?php