PluginProbe
WP Directory Kit / 1.4.8
WP Directory Kit v1.4.8
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 1.4.0 All 36 releases
← All changes | application/views/fields_edit/DATE.php +6 -1 1.3.31.4.8 View file →
@@ -36,9 +36,9 @@
36 36 if(isset($field->rules) && strpos($field->rules, 'required') !== FALSE)
37 37 $required = '*';
38 38
39 39 ?>
40 -<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); ?>">
40 +<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;?>">
41 41 <label for="<?php echo esc_attr($field_id); ?>"><?php echo esc_html($field_label).esc_html($required); ?></label>
42 42 <div class="wdk-field-container">
43 43 <input class="regular-text db-date" <?php if(false):?>date-format="<?php echo esc_attr(wdk_jsdateformat(get_option('date_format')));?>"<?php endif;?> name="<?php echo esc_attr($field_id); ?>" type="hidden" id="<?php echo esc_attr($field_id); ?>" value="<?php echo esc_attr(wmvc_show_data($field_id, $db_data, '')); ?>">
44 44 <input class="regular-text wdk-fielddate" <?php if(false):?>date-format="<?php echo esc_attr(wdk_jsdateformat(get_option('date_format')));?>"<?php endif;?> name="<?php echo esc_attr($field_id); ?>_mask" type="text" id="<?php echo esc_attr($field_id); ?>_mask" value="<?php echo (wmvc_show_data($field_id, $db_data, false)) ? esc_attr(wdk_get_date(wmvc_show_data($field_id, $db_data),false)) : ''; ?>">
@@ -44,8 +44,13 @@
44 44 <input class="regular-text wdk-fielddate" <?php if(false):?>date-format="<?php echo esc_attr(wdk_jsdateformat(get_option('date_format')));?>"<?php endif;?> name="<?php echo esc_attr($field_id); ?>_mask" type="text" id="<?php echo esc_attr($field_id); ?>_mask" value="<?php echo (wmvc_show_data($field_id, $db_data, false)) ? esc_attr(wdk_get_date(wmvc_show_data($field_id, $db_data),false)) : ''; ?>">
45 45 <?php if(!empty($field->hint)):?>
46 46 <p class="wdk-hint">
47 47 <?php echo esc_html($field->hint); ?>
48 + </p>
49 + <?php endif;?>
50 + <?php if(!empty($form) && method_exists($form, 'hasError') && $form->getError($field_id)):?>
51 + <p class="wdk-hint wdk-error">
52 + <?php echo wp_kses_post($form->getError($field_id)); ?>
48 53 </p>
49 54 <?php endif;?>
50 55 </div>
51 56 </div>