openrat-cms

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

commit 940f3774db0f5c45b28548cb42a046630313af06
parent a2b8cc401592127506fbf8dd74cef0d7919580dc
Author: Jan Dankert <devnull@localhost>
Date:   Fri, 18 Nov 2011 23:36:30 +0100

Element "label" kann auch Text ausgeben.

Diffstat:
themes/default/include/html/label.inc.php | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/label.inc.php b/themes/default/include/html/label.inc.php @@ -1 +1,2 @@ -<label for="id_<?php echo $attr_for ?><?php if (!empty($attr_value)) echo '_'.$attr_value ?>">- \ No newline at end of file +<label<?php if (isset($attr_for)) { ?> for="id_<?php echo $attr_for ?><?php if (!empty($attr_value)) echo '_'.$attr_value ?>" class="label"<?php } ?>> +<?php if (isset($attr_key)) { echo lang($attr_key); if(hasLang($attr_key.'_desc')) { ?><div class="description"><?php echo lang($attr_key.'_desc')?></div> <?php } } ?>+ \ No newline at end of file