PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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/value-format.php +15 -5 6.3 → trunk View file →
@@ -1,22 +1,32 @@
1 1 <?php
2 +/**
3 + * Value format setting.
4 + *
5 + * @package Formidable
6 + *
7 + * @var array $field Field data including 'id' and 'format'.
8 + * @var array $attributes HTML attributes for the wrapping paragraph.
9 + */
10 +
2 11 if ( ! defined( 'ABSPATH' ) ) {
3 12 die( 'You are not allowed to call this page directly.' );
4 13 }
5 14 ?>
6 -<p class="frm-has-modal">
7 - <label for="frm_format_<?php echo esc_attr( $field['field_key'] ); ?>" class="frm_help" title="<?php esc_attr_e( 'Insert the format you would like to accept. Use a regular expression starting with ^ or an exact format like (999)999-9999.', 'formidable' ); ?>">
15 +<p <?php FrmAppHelper::array_to_html_params( $attributes, true ); ?>>
16 + <label for="frm_format_<?php echo esc_attr( absint( $field['id'] ) ); ?>" class="frm_help" title="<?php esc_attr_e( 'Insert the format you would like to accept. Use a regular expression starting with ^ or an exact format like (999)999-9999.', 'formidable' ); ?>">
8 17 <?php esc_html_e( 'Format', 'formidable' ); ?>
9 18 </label>
10 - <span class="frm-with-right-icon">
19 + <span class="frm-with-right-icon frm-block">
20 + <input type="text" class="frm_long_input frm_format_opt" value="<?php echo esc_attr( $field['format'] ); ?>" name="field_options[format_<?php echo absint( $field['id'] ); ?>]" id="frm_format_<?php echo absint( $field['id'] ); ?>" data-fid="<?php echo intval( $field['id'] ); ?>" />
11 21 <?php
12 22 FrmAppHelper::icon_by_class(
13 - 'frm_icon_font frm_more_horiz_solid_icon frm-show-inline-modal',
23 + 'frmfont frm_more_horiz_solid_icon frm-show-inline-modal frm-input-icon',
14 24 array(
15 25 'data-open' => 'frm-input-mask-box',
16 26 'title' => esc_attr__( 'Toggle Options', 'formidable' ),
27 + 'tabindex' => '0',
17 28 )
18 29 );
19 30 ?>
20 - <input type="text" class="frm_long_input frm_format_opt" value="<?php echo esc_attr( $field['format'] ); ?>" name="field_options[format_<?php echo absint( $field['id'] ); ?>]" id="frm_format_<?php echo absint( $field['id'] ); ?>" data-fid="<?php echo intval( $field['id'] ); ?>" />
21 31 </span>
22 32 </p>