PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.10
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.10
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
formidable / classes / views / frm-forms / add_field.php

add_field.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.10, at classes/views/frm-forms/add_field.php

114 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
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'] ? $field['form_select'] : $field['form_id'] ); ?>" data-ftype="<?php echo esc_attr( $display['type'] ); ?>" data-type="<?php echo esc_attr( $field['type'] ); ?>">
7 <?php if ( $field['type'] === 'divider' ) { ?>
8 <div class="divider_section_only">
9 <?php } ?>
10
11 <?php do_action( 'frm_extra_field_actions', $field['id'] ); ?>
12
13 <div id="field_<?php echo esc_attr( $field['id'] ); ?>_inner_container" class="frm_inner_field_container">
14 <div class="frm-field-action-icons frm-show-hover">
15
16 <div class="frm-sub-label frm-field-id">
17 (ID <?php echo esc_html( $field['id'] ); ?>)
18 </div>
19
20 <?php if ( $field['type'] === 'divider' ) : ?>
21 <a href="#" class="frm-collapse-section" title="<?php esc_attr_e( 'Expand/Collapse Section', 'formidable' ); ?>">
22 <?php
23 FrmAppHelper::icon_by_class(
24 'frmfont frm_arrowdown6_icon',
25 array( 'aria-label' => esc_attr__( 'Expand/Collapse Section Icon', 'formidable' ) )
26 );
27 ?>
28 </a>
29 <?php endif; ?>
30
31 <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' ); ?>">
32 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_thick_move_icon' ); ?>
33 </a>
34
35 <div class="dropdown">
36 <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" aria-expanded="false">
37 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_thick_more_vert_icon' ); ?>
38 <span class="screen-reader-text"><?php esc_html_e( 'Toggle More Options Dropdown', 'formidable' ); ?></span>
39 </a>
40 <ul class="frm-dropdown-menu frm-p-1 <?php echo esc_attr( is_rtl() ? 'dropdown-menu-left' : 'dropdown-menu-right' ); ?>" role="menu"></ul>
41 </div>
42
43 </div>
44
45 <?php $field_obj->show_label_on_form_builder(); ?>
46
47 <div class="frm_form_fields frm_opt_container" data-ftype="<?php echo esc_attr( $display['type'] ); ?>">
48 <?php $field_obj->show_on_form_builder(); ?>
49 <div class="clear"></div>
50 </div>
51 <?php if ( $display['description'] || in_array( $field['type'], array( 'address', 'credit_card' ), true ) ) { ?>
52 <div class="frm_description" id="field_description_<?php echo esc_attr( $field['id'] ); ?>">
53 <?php echo FrmAppHelper::kses( force_balance_tags( $field['description'] ), 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
54 </div>
55 <?php } ?>
56 </div>
57 <?php
58 if ( $display['conf_field'] ) {
59 $input_html = sprintf(
60 '<input type="text" id="conf_field_%1$s" name="field_options[conf_input_%2$s]" placeholder="%3$s" class="dyn_default_value" />',
61 esc_attr( $field['field_key'] ),
62 esc_attr( $field['id'] ),
63 esc_attr( $field['conf_input'] )
64 );
65 ?>
66 <div id="frm_conf_field_<?php echo esc_attr( $field['id'] ); ?>_container" class="frm_conf_field_container frm_form_fields frm_conf_details<?php echo esc_attr( $field['id'] . ( $field['conf_field'] ? '' : ' frm_hidden' ) ); ?>">
67 <div id="frm_conf_field_<?php echo esc_attr( $field['id'] ); ?>_inner_container" class="frm_inner_conf_container">
68 <label class="frm_primary_label">&nbsp;</label>
69 <div class="frm_form_fields">
70 <?php
71 /**
72 * Filters the HTML of confirmation input in the backend.
73 *
74 * @since 6.3.1
75 *
76 * @param string $input_html Input HTML.
77 * @param array $args Contains `field` array.
78 */
79 echo apply_filters( 'frm_conf_input_backend', $input_html, compact( 'field' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
80 ?>
81 </div>
82 <div id="conf_field_description_<?php echo esc_attr( $field['id'] ); ?>" class="frm_description"><?php
83 echo FrmAppHelper::kses( force_balance_tags( $field['conf_desc'] ), 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
84 ?></div>
85 </div>
86 </div>
87 <div class="clear"></div>
88 <?php
89 }//end if
90
91 FrmFieldsController::load_single_field_settings( compact( 'field', 'field_obj', 'values', 'display' ) );
92
93 if ( 'divider' === $field['type'] ) {
94 ?>
95 </div>
96 <div class="frm_no_section_fields">
97 <p class="howto"><?php esc_html_e( 'Add Fields Here', 'formidable' ); ?></p>
98 </div>
99 <ul class="start_divider frm_sorting frm_grid_container">
100 <?php
101 } elseif ( 'end_divider' === $field['type'] ) {
102 ?>
103 </ul>
104 <?php
105 }
106
107 if ( $field['type'] !== 'divider' ) {
108 ?>
109 </li>
110 <?php
111 }
112
113 ?>
114