From: pdontthink Date: Thu, 3 Jul 2008 17:36:18 +0000 (+0000) Subject: Add horizontal rule template and update line break to handle attributes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=12e4996a72a0dc29e25fc90bf9edf9dce30f2810;p=squirrelmail.git Add horizontal rule template and update line break to handle attributes git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13210 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default/horizontal_rule.tpl b/templates/default/horizontal_rule.tpl new file mode 100644 index 00000000..8ca2bbaa --- /dev/null +++ b/templates/default/horizontal_rule.tpl @@ -0,0 +1,28 @@ + $value) { + echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"'); +} +echo ' />'; diff --git a/templates/default/line_break.tpl b/templates/default/line_break.tpl index 89196d92..4c782813 100644 --- a/templates/default/line_break.tpl +++ b/templates/default/line_break.tpl @@ -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 @@ */ -?>
+echo ' $value) { + echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"'); +} +echo ' />';