Add more flexibility for plugins
[squirrelmail.git] / templates / default / compose_attachments.tpl
index f15cc096d7bee5887efd35acb2dc5321d710a7e9..5314fe1f58112a8514f1033634980ebfd4e76b80 100644 (file)
@@ -9,7 +9,7 @@
  *    $accesskey_compose_attach        - The access key to be used for the Attach button
  *    $accesskey_compose_delete_attach - The access key to be used for the Delete Attachments button
  *
- * @copyright 1999-2010 The SquirrelMail Project Team
+ * @copyright 1999-2012 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -22,7 +22,7 @@ extract($t);
 /** Begin template **/
 ?>
 <div class="compose">
-<table cellspacing="0" class="table1">
+<table cellspacing="0" class="table1" id="attachment_table">
  <tr class="header">
   <td class="fieldName" style="width: 1%; white-space: nowrap;">
    <?php echo _("New attachment");?>:
@@ -41,10 +41,12 @@ extract($t);
     if($max_file_size != -1) {
        echo '(' . _("Max.") . ' ' . humanReadableSize($max_file_size) . ')';
     }
+    if (!empty($plugin_output['add_attachment_notes'])) echo $plugin_output['add_attachment_notes'];
    ?>
   </td>
  </tr>
  <?php
+    if (!empty($plugin_output['attachment_inputs'])) echo $plugin_output['attachment_inputs'];
     $attachment_count = 1;
     foreach ($attachments as $attach) {
         ?>