| @@ -1,10 +1,20 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * Field size (pixels wide) setting in field settings. | |
| 4 | + * | |
| 5 | + * @package Formidable | |
| 6 | + * | |
| 7 | + * @var array $field Field data including 'id' and 'size'. | |
| 8 | + * @var bool $display_max Whether to include the Max Characters input. | |
| 9 | + */ | |
| 10 | + | |
| 2 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 12 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 13 | } |
| 5 | 14 | |
| 6 | 15 | $field_size_container_atts = array(); |
| 16 | + | |
| 7 | 17 | if ( $display_max ) { |
| 8 | 18 | $max_characters_label = __( 'Max Characters', 'formidable' ); |
| 9 | 19 | $can_fit_label_in_two_columns = FrmAppHelper::mb_function( array( 'mb_strlen', 'strlen' ), array( $max_characters_label ) ) < 20; |
| 10 | 20 | |