PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.0
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/frm-fields/back-end/max.php +2 -17 6.32.15.0 View file →
@@ -1,25 +1,10 @@
1 1 <?php
2 -/**
3 - * Max characters / rows setting in field settings.
4 - *
5 - * @package Formidable
6 - *
7 - * @var array $field Field data including 'id', 'type', 'max'.
8 - * @var bool $can_fit_label_in_two_columns Whether the label is short enough for a two-column layout.
9 - */
10 -
11 2 if ( ! defined( 'ABSPATH' ) ) {
12 3 die( 'You are not allowed to call this page directly.' );
13 4 }
14 -
15 -$max_setting_container_atts = array();
16 -
17 -if ( ! empty( $can_fit_label_in_two_columns ) ) {
18 - $max_setting_container_atts['class'] = 'frm6 frm_form_field';
19 -}
20 5 ?>
21 -<p <?php FrmAppHelper::array_to_html_params( $max_setting_container_atts, true ); ?>>
6 +<p class="frm6 frm_form_field">
22 7 <label for="field_options_max_<?php echo esc_attr( $field['id'] ); ?>">
23 8 <?php
24 9 if ( 'textarea' === $field['type'] || 'rte' === $field['type'] ) {
25 10 esc_html_e( 'Rows', 'formidable' );
@@ -27,6 +12,6 @@
27 12 esc_html_e( 'Max Characters', 'formidable' );
28 13 }
29 14 ?>
30 15 </label>
31 - <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'] ); ?>" />
16 + <input type="text" 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" />
32 17 </p>