openrat-cms

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

commit a50ccea2c0049c083108375d7d1907426a2a3219
parent 68e12634049c585083f3988a59dfaad097d7b239
Author: dankert <devnull@localhost>
Date:   Sat, 20 Jan 2007 16:15:50 +0100

Umstellung von Attributen auf neues Value-Binding

Diffstat:
themes/default/include/html/text.inc.php | 23+++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/themes/default/include/html/text.inc.php b/themes/default/include/html/text.inc.php @@ -1,6 +1,12 @@ <?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -12,14 +18,23 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); + if ( isset($$attr_text)) + $tmp_text = lang($$attr_text); + else + $tmp_text = lang($attr_text); elseif (!empty($attr_textvar)) $tmp_text = lang($$attr_textvar); + elseif (!empty($attr_key)) + $tmp_text = lang($attr_key); elseif (!empty($attr_var)) $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; elseif (!empty($attr_raw)) $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );