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/JSON_READONLY.php +10 -3 1.2.3 → 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); ?>">
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 <span class="regular-span" style="">
45 45 <?php
@@ -49,13 +49,20 @@
49 49 ?>
50 50 <?php foreach ($json_data as $key => $value) : ?>
51 51 <?php if(in_array(strtolower($key), array('element_id','eli_id','eli_type','eli_page_id','action','message'))) continue;?>
52 52 <?php if (!empty($value)) : ?>
53 + <?php if(in_array($key, array('eli_id', 'eli_type', 'eli_nonce','eli_token','_wp_http_referer', 'ID','filter','action','send_action_type', 'g-recaptcha-response'))) continue; ?>
53 54 <p>
55 + <?php if(!is_intval($key)):?>
56 + <strong><?php echo
57 + // Dynamic field values are registered in the translation catalog separately.
58 +// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
59 + esc_html__(ucfirst(str_replace('_', ' ', $key)),'wpdirectorykit'); ?>:</strong>
60 + <?php endif;?>
54 61 <?php if(filter_var($value, FILTER_VALIDATE_URL ) || strpos( $value, 'http' ) !== FALSE):?>
55 - <strong><?php echo esc_html(ucfirst(str_replace('_', ' ', $key))); ?>:</strong> <a href="<?php echo esc_url($value);?>"><?php echo wp_kses_post($value); ?></a><br />
62 + <a href="<?php echo esc_url($value);?>"><?php echo wp_kses_post($value); ?></a><br />
56 63 <?php else : ?>
57 - <strong><?php echo esc_html(ucfirst(str_replace('_', ' ', $key))); ?>:</strong> <?php echo wp_kses_post($value); ?><br />
64 + <?php echo wp_kses_post($value); ?><br />
58 65 <?php endif; ?>
59 66 </p>
60 67 <?php endif; ?>
61 68 <?php endforeach; ?>