Plugins may not specify button access keys
[squirrelmail.git] / templates / default / error_box.tpl
index b0ebd9c08ff202c15cecc128373abcc19ace5658..8af1ee0db358acc1b95b07e15cd94ae7e2aafa39 100644 (file)
  *      $error        - Translation of string "ERROR".  This string is
  *                      translated in functions that call this template to
  *                      avoid making multiple translations on this string
+ *      $link         - Array containing link to display to go back, if desired.
+ *                      If no link is dsired, this will be NULL.  The array
+ *                      will contain the following elements:
+ *              $link['URL']    - URL target for link
+ *              $link['FRAME']  - Frame target for link
+ *              $link['TEXT']   - Text to display for link
  * 
  * @copyright © 1999-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
@@ -37,6 +43,18 @@ extract($t);
       <?php echo $errorMessage."\n"; ?>
      </td>
     </tr>
+    <?php
+        if (!is_null($link)) {
+            ?>
+    <tr>
+     <td class="error_header">
+      <a href="<?php echo $link['URL']; ?>" target="<?php echo $link['FRAME']; ?>"><?php echo $link['TEXT']; ?></a>
+     </td>
+    </tr>
+            
+            <?php
+        }
+    ?>
    </table>
   </td>
  </tr>