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-forms/add_field.php +15 -4 6.26 → trunk View file →
@@ -5,9 +5,9 @@
5 5 ?>
6 6 <li id="frm_field_id_<?php echo esc_attr( $field['id'] ); ?>" class="<?php echo esc_attr( $li_classes ); ?>" data-fid="<?php echo esc_attr( $field['id'] ); ?>" data-formid="<?php echo esc_attr( 'divider' === $field['type'] && isset( $field['form_select'] ) ? $field['form_select'] : $field['form_id'] ); ?>" data-ftype="<?php echo esc_attr( $display['type'] ); ?>" data-type="<?php echo esc_attr( $field['type'] ); ?>" <?php FrmAppHelper::array_to_html_params( $extra_field_attributes, true ); ?>>
7 7 <?php
8 8 if ( $field['type'] === 'divider' ) {
9 - $icon_class = empty( $field['form_select'] ) ? 'frm-form-title-style' : 'frm_repeat_icon';
9 + $icon_class = ! empty( $field['form_select'] ) ? 'frm_repeat_icon' : 'frm-form-title-style';
10 10 FrmAppHelper::icon_by_class( "frmfont $icon_class frm-divider-icon" );
11 11 ?>
12 12 <div class="divider_section_only">
13 13 <?php } ?>
@@ -36,14 +36,14 @@
36 36 </a>
37 37 <?php endif; ?>
38 38
39 39 <a href="#" class="frm_bstooltip frm-move frm-hover-icon" title="<?php esc_attr_e( 'Move Field', 'formidable' ); ?>" data-container="body" aria-label="<?php esc_attr_e( 'Move Field', 'formidable' ); ?>">
40 - <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_thick_move_icon' ); ?>
40 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_thick_move_icon' ); ?>
41 41 </a>
42 42
43 43 <div class="dropdown">
44 44 <a href="#" class="frm_bstooltip frm-hover-icon frm-dropdown-toggle dropdown-toggle" title="<?php esc_attr_e( 'More Options', 'formidable' ); ?>" data-toggle="dropdown" data-container="body" data-trigger="hover" aria-expanded="false" data-bs-display="static">
45 - <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_thick_more_vert_icon' ); ?>
45 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_thick_more_vert_icon' ); ?>
46 46 <span class="screen-reader-text"><?php esc_html_e( 'Toggle More Options Dropdown', 'formidable' ); ?></span>
47 47 </a>
48 48 <ul class="frm-dropdown-menu frm-p-1 <?php echo esc_attr( is_rtl() ? 'dropdown-menu-left' : 'dropdown-menu-right' ); ?>" role="menu"></ul>
49 49 </div>
@@ -62,9 +62,20 @@
62 62 </div>
63 63 <?php } ?>
64 64 </div>
65 65 <?php
66 -if ( $display['conf_field'] ) {
66 +/**
67 + * Fires after a field's box in the form builder, before the field settings.
68 + *
69 + * @since 6.32
70 + *
71 + * @param array{field:array, display:array} $args Contains the `field` and `display` arrays.
72 + */
73 +do_action( 'frm_builder_preview_after_field', compact( 'field', 'display' ) );
74 +
75 +if ( $display['conf_field'] && ! is_callable( 'FrmProFieldsController::add_confirmation_field_preview' ) ) {
76 + // Backward compatibility for Pro versions that render the confirmation field
77 + // preview from here instead of via the frm_builder_preview_after_field hook.
67 78 $input_html = sprintf(
68 79 '<input type="text" id="conf_field_%1$s" name="field_options[conf_input_%2$s]" placeholder="%3$s" class="dyn_default_value" />',
69 80 esc_attr( $field['field_key'] ),
70 81 esc_attr( $field['id'] ),