Changeset 902:5f31f1a09e21 for plugins/widgets/index.php
- Timestamp:
- 10/24/12 13:20:43 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/index.php
r864 r902 34 34 __('custom') => 'custom' 35 35 ); 36 37 function literalNullString($v) 38 { 39 if ($v == '') { 40 return '<'.__('empty string').'>'; 41 } 42 return $v; 43 } 36 44 37 45 # Adding widgets to sidebars … … 274 282 switch ($s['type']) { 275 283 case 'check': 276 $s_type = '0|1'; 284 $s_type = __('boolean').", ".__('possible values:')." <code>0</code> ".__('or')." <code>1</code>"; 285 // $s_type = '0|1'; 277 286 break; 278 287 case 'combo': 279 $s_type = implode('|',$s['options']); 288 $s['options'] = array_map("literalNullString", $s['options']); 289 $s_type = __('listitem').", ".__('possible values:')." <code>".implode('</code>, <code>',$s['options'])."</code>"; 290 // $s_type = implode('|',$s['options']); 280 291 break; 281 292 case 'text': 282 293 case 'textarea': 283 294 default: 284 $s_type = 'text'; 295 $s_type = __('string'); 296 // $s_type = 'text'; 285 297 break; 286 298 }
Note: See TracChangeset
for help on using the changeset viewer.