openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 63ac23969c2e457672cc1808ffc8b5b3ad2d5ebe
parent 6f1e74c86e321bede5647e64d037ee7ad424dd45
Author: dankert <devnull@localhost>
Date:   Thu,  4 Feb 2010 00:23:15 +0100

Attribute width und class nicht ausgeben, wenn leer.

Diffstat:
themes/default/include/html/cell.inc.php | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/cell.inc.php b/themes/default/include/html/cell.inc.php @@ -2,7 +2,9 @@ #IF-ATTR width# width="%width%" #ELSE# - width="<?php if (!empty($column_widths)) echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> #END-IF# #IF-ATTR style# style="%style%" @@ -10,7 +12,9 @@ #IF-ATTR class# class="%class%" #ELSE# - class="<?php if (!empty($column_classes)) echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> #END-IF# #IF-ATTR colspan# colspan="%colspan%"