Happy New Year
[squirrelmail.git] / templates / default / read_attachments.tpl
index 0ed091639ce0aab543cb307db4ca0052631f9ffc..866f67c8e7f91fb5418344e44e653c6d382ffe7c 100644 (file)
@@ -4,8 +4,9 @@
  *
  * Template used to generate the attachment list while reading a message.  This
  * 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:
  *            $link['HREF'] - URL to access the functionality
  *            $link['Text'] - Text representing the functionality.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2018 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage templates
  */
 
-/** add required includes **/
-require(SM_PATH . 'templates/util_global.php');
 
 /** extract template variables **/
 extract($t);
@@ -47,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
@@ -76,7 +78,7 @@ if (count($attachments)==0) {
    <a href="<?php echo $attachment['ViewHREF']; ?>"><?php echo _("View"); ?></a>
         <?php
     }
-    
+
     foreach ($attachment['OtherLinks'] as $link) {
         ?>
    &nbsp;|&nbsp;
@@ -89,7 +91,7 @@ if (count($attachments)==0) {
  </tr>
         <?php
     }
-    
+
     if (!empty($plugin_output['attachments_bottom'])) echo $plugin_output['attachments_bottom'];
  ?>
 </table>
@@ -99,4 +101,4 @@ if (count($attachments)==0) {
   </td>
  </tr>
 </table>
-</div>
\ No newline at end of file
+</div>