| @@ -49,14 +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','ID','filter','action','send_action_type', 'g-recaptcha-response'))) continue; ?> | |
| 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; ?> | |
| 54 | 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;?> | |
| 55 | 61 | <?php if(filter_var($value, FILTER_VALIDATE_URL ) || strpos( $value, 'http' ) !== FALSE):?> |
| 56 | - <strong><?php echo esc_html__(ucfirst(str_replace('_', ' ', $key)),'wpdirectorykit'); ?>:</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 /> | |
| 57 | 63 | <?php else : ?> |
| 58 | - <strong><?php echo esc_html__(ucfirst(str_replace('_', ' ', $key)),'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> | |
| 64 | + <?php echo wp_kses_post($value); ?><br /> | |
| 59 | 65 | <?php endif; ?> |
| 60 | 66 | </p> |
| 61 | 67 | <?php endif; ?> |
| 62 | 68 | <?php endforeach; ?> |