Add more flexibility for plugins
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Aug 2012 23:00:43 +0000 (23:00 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Aug 2012 23:00:43 +0000 (23:00 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14336 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/compose_attachments.tpl

index 546f916a9047c96ff34fbe888cca18d10a0aff56..5314fe1f58112a8514f1033634980ebfd4e76b80 100644 (file)
@@ -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) {
         ?>