Browse Source

Add more flexibility for plugins

pdontthink 13 years ago
parent
commit
21beca61f8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      templates/default/compose_attachments.tpl

+ 3 - 1
templates/default/compose_attachments.tpl

@@ -22,7 +22,7 @@ extract($t);
 /** Begin template **/
 /** Begin template **/
 ?>
 ?>
 <div class="compose">
 <div class="compose">
-<table cellspacing="0" class="table1">
+<table cellspacing="0" class="table1" id="attachment_table">
  <tr class="header">
  <tr class="header">
   <td class="fieldName" style="width: 1%; white-space: nowrap;">
   <td class="fieldName" style="width: 1%; white-space: nowrap;">
    <?php echo _("New attachment");?>:
    <?php echo _("New attachment");?>:
@@ -41,10 +41,12 @@ extract($t);
     if($max_file_size != -1) {
     if($max_file_size != -1) {
        echo '(' . _("Max.") . ' ' . humanReadableSize($max_file_size) . ')';
        echo '(' . _("Max.") . ' ' . humanReadableSize($max_file_size) . ')';
     }
     }
+    if (!empty($plugin_output['add_attachment_notes'])) echo $plugin_output['add_attachment_notes'];
    ?>
    ?>
   </td>
   </td>
  </tr>
  </tr>
  <?php
  <?php
+    if (!empty($plugin_output['attachment_inputs'])) echo $plugin_output['attachment_inputs'];
     $attachment_count = 1;
     $attachment_count = 1;
     foreach ($attachments as $attach) {
     foreach ($attachments as $attach) {
         ?>
         ?>