| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
$max_setting_container_atts = array(); |
| 7 |
if ( ! empty( $can_fit_label_in_two_columns ) ) { |
| 8 |
$max_setting_container_atts['class'] = 'frm6 frm_form_field'; |
| 9 |
} |
| 10 |
?> |
| 11 |
<p <?php FrmAppHelper::array_to_html_params( $max_setting_container_atts, true ); ?>> |
| 12 |
<label for="field_options_max_<?php echo esc_attr( $field['id'] ); ?>"> |
| 13 |
<?php |
| 14 |
if ( 'textarea' === $field['type'] || 'rte' === $field['type'] ) { |
| 15 |
esc_html_e( 'Rows', 'formidable' ); |
| 16 |
} else { |
| 17 |
esc_html_e( 'Max Characters', 'formidable' ); |
| 18 |
} |
| 19 |
?> |
| 20 |
</label> |
| 21 |
<input type="text" class="frm_max_length_opt" name="field_options[max_<?php echo esc_attr( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['max'] ); ?>" id="field_options_max_<?php echo esc_attr( $field['id'] ); ?>" size="5" data-fid="<?php echo intval( $field['id'] ); ?>" /> |
| 22 |
</p> |
| 23 |
|