- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/smarty_extends/function.html_checkboxes_ex.php
r21420 r21441 54 54 $extra = ''; 55 55 56 foreach ($params as $_key => $_val) {57 switch ($_key) {56 foreach ($params as $_key => $_val) { 57 switch ($_key) { 58 58 case 'tags': 59 59 $$_key = split("\|", $_val); … … 92 92 93 93 default: 94 if (!is_array($_val)) {94 if (!is_array($_val)) { 95 95 $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; 96 96 } else { … … 121 121 } 122 122 123 if (!empty($params['assign'])) {123 if (!empty($params['assign'])) { 124 124 $smarty->assign($params['assign'], $_html_result); 125 125 } else { … … 148 148 149 149 if ($labels) { 150 if ($label_ids) {150 if ($label_ids) { 151 151 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 152 152 $_output .= '<label for="' . $_id . '">';
Note: See TracChangeset
for help on using the changeset viewer.