field-controls.php
1 year ago
field-header.php
1 year ago
field-label.php
1 week ago
field-name.php
1 year ago
field-text.php
1 year ago
field-type.php
1 year ago
field-label.php
16 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Field Label |
| 4 | */ |
| 5 | ?> |
| 6 | <tr class="field-label-row"> |
| 7 | <th><?php echo esc_html_x( 'Label', 'noun', 'strong-testimonials' ); ?></th> |
| 8 | <td> |
| 9 | <input class="field-label" type="text" name="fields[<?php echo esc_attr( $key ); ?>][label]" value="<?php echo esc_attr( $field['label'] ); ?>"> |
| 10 | <label> |
| 11 | <input type="checkbox" name="fields[<?php echo esc_attr( $key ); ?>][show_label]" <?php checked( $field['show_label'] ?? false, true ); ?>> |
| 12 | <span class="help inline"><?php esc_html_e( 'Show this label on the form.', 'strong-testimonials' ); ?></span> |
| 13 | </label> |
| 14 | </td> |
| 15 | </tr> |
| 16 |