Esempio n. 1
0
             break;
         case 'image-upload':
             $column->value = empty($column->value) ? '' : $column->value;
             break;
         case 'multi-select-other':
         case 'multi-checkbox':
             $column->value = is_array($column->value) ? $column->value : explode(',', $column->value);
             break;
         case 'password':
             $column->value = '';
             break;
         case 'hidden':
             $column->form_element = 'text-line';
             break;
         case 'timestamp':
             if (Participants_Db::import_timestamp($column->value) === false) {
                 $column->value = '';
             }
             break;
     }
 }
 if ('rich-text' == $column->form_element) {
     wp_editor($column->value, preg_replace('#[0-9_-]#', '', Participants_Db::$prefix . $column->name), array('media_buttons' => false, 'textarea_name' => $column->name, 'editor_class' => $field_class));
 } else {
     $params = array('type' => $column->form_element, 'value' => $column->value, 'name' => $column->name, 'options' => $column->values, 'class' => $field_class, 'attributes' => $attributes, 'module' => 'admin-edit');
     PDb_FormElement::print_element($params);
 }
 if (!empty($column->help_text)) {
     ?>
         <span class="helptext"><?php 
     echo stripslashes(trim($column->help_text));