| @@ -39,12 +39,27 @@ | ||
| 39 | 39 | wdk_search_fields_toggle(); |
| 40 | 40 | |
| 41 | 41 | ?> |
| 42 | 42 | |
| 43 | -<div class="wdk-field-edit <?php echo esc_attr($field->field_type); ?> wdk-col-<?php echo esc_attr($field->columns_number); ?> <?php echo esc_attr($field->class); ?>"> | |
| 43 | +<div class="wdk-field-<?php echo esc_attr($field_id);?> wdk-field-edit <?php echo esc_attr($field->field_type); ?> wdk-col-<?php echo esc_attr($field->columns_number); ?> <?php echo esc_attr($field->class); ?>"> | |
| 44 | 44 | <label for="<?php echo esc_attr($field_id); ?>"><?php echo esc_html($field_label).esc_html($required); ?></label> |
| 45 | 45 | <div class="wdk-field-container"> |
| 46 | - <?php echo wdk_treefield_option($field_id, 'listing_m', wmvc_show_data($field_id, $db_data, ''), 'post_title', '', __('Not Selected', 'wpdirectorykit'));?> | |
| 46 | + <?php | |
| 47 | + echo wp_kses( | |
| 48 | + wdk_treefield_option($field_id, 'listing_m', wmvc_show_data($field_id, $db_data, ''), 'post_title', '', __('Not Selected', 'wpdirectorykit')), | |
| 49 | + array( | |
| 50 | + 'input' => array( | |
| 51 | + 'name' => true, | |
| 52 | + 'value' => true, | |
| 53 | + 'class' => true, | |
| 54 | + 'type' => true, | |
| 55 | + 'id' => true, | |
| 56 | + 'readonly' => true, | |
| 57 | + ), | |
| 58 | + ) | |
| 59 | + ); | |
| 60 | + ?> | |
| 61 | + | |
| 47 | 62 | <?php if(!empty($field->hint)):?> |
| 48 | 63 | <p class="wdk-hint"> |
| 49 | 64 | <?php echo esc_html($field->hint); ?> |
| 50 | 65 | </p> |