PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | application/views/fields_edit/TEXTAREA.php +6 -1 1.3.2 → 1.5.9 View file →
@@ -37,9 +37,9 @@
37 37 $required = '*';
38 38
39 39 ?>
40 40
41 -<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); ?>">
41 +<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); ?> <?php echo esc_attr($field->class); ?> <?php if(!empty($form) && method_exists($form, 'hasError') && $form->hasError($field_id)):?> field-error <?php endif;?>">
42 42 <label for="<?php echo esc_attr($field_id); ?>"><?php echo esc_html($field_label).esc_html($required); ?></label>
43 43 <div class="wdk-field-container">
44 44 <?php
45 45 wp_editor(wp_kses_post(wmvc_show_data(esc_attr($field_id), $db_data, '', FALSE)), esc_attr($field_id), array (
@@ -55,8 +55,13 @@
55 55 ?>
56 56 <?php if(!empty($field->hint)):?>
57 57 <p class="wdk-hint">
58 58 <?php echo esc_html($field->hint); ?>
59 + </p>
60 + <?php endif;?>
61 + <?php if(!empty($form) && method_exists($form, 'hasError') && $form->getError($field_id)):?>
62 + <p class="wdk-hint wdk-error">
63 + <?php echo wp_kses_post($form->getError($field_id)); ?>
59 64 </p>
60 65 <?php endif;?>
61 66 </div>
62 67 </div>