| @@ -36,9 +36,9 @@ | ||
| 36 | 36 | $required = '*'; |
| 37 | 37 | |
| 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); ?>"> | |
| 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 | <span class="regular-span"> |
| 44 | 44 | <?php |
| @@ -51,11 +51,15 @@ | ||
| 51 | 51 | } |
| 52 | 52 | ?> |
| 53 | 53 | </span> |
| 54 | 54 | <span class="suffix"><?php |
| 55 | - echo esc_html($field->prefix); | |
| 55 | + // Dynamic field values are registered in the translation catalog separately. | |
| 56 | + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText | |
| 57 | + echo esc_html__($field->prefix, 'wpdirectorykit'); | |
| 56 | 58 | if(!empty($field->prefix) && !empty($field->suffix)) echo ' / '; |
| 57 | - echo esc_html($field->suffix); | |
| 59 | + // Dynamic field values are registered in the translation catalog separately. | |
| 60 | + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText | |
| 61 | + echo esc_html__($field->suffix, 'wpdirectorykit'); | |
| 58 | 62 | ?></span> |
| 59 | 63 | |
| 60 | 64 | <?php if(!empty($field->hint)):?> |
| 61 | 65 | <p class="wdk-hint"> |