Add horizontal rule template and update line break to handle attributes
[squirrelmail.git] / templates / default / line_break.tpl
index 89196d92de832f500ab2ebe3e2b11cd7b3a951d9..4c782813bd736cdc7adcfc8c0bd9dff2cc4a00ad 100644 (file)
@@ -6,7 +6,12 @@
   * Template for constructing a line break.
   *
   * The following variables are available in this template:
-  *      (none)
+  *
+  * array $aAttribs Any extra attributes: an associative array, where
+  *                 keys are attribute names, and values (which are
+  *                 optional and might be null) should be placed
+  *                 in double quotes as attribute values (optional;
+  *                 may not be present)
   *
   * @copyright © 1999-2008 The SquirrelMail Project Team
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
@@ -16,4 +21,8 @@
   */
 
 
-?><br />
+echo '<br';
+foreach ($aAttribs as $key => $value) {
+    echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
+}
+echo ' />';