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/settings-advanced.php +43 -40 6.4 → trunk View file →
@@ -42,12 +42,23 @@
42 42 <?php esc_html_e( 'Show the form description', 'formidable' ); ?>
43 43 </label>
44 44 </p>
45 45
46 -<?php if ( ! $values['is_template'] ) { ?>
47 - <?php $first_h3 = ''; ?>
46 +<?php
47 +/**
48 + * Fires after the form description field.
49 + *
50 + * @since 6.18
51 + *
52 + * @param array $values The form values.
53 + */
54 +do_action( 'frm_settings_after_form_description', $values );
48 55
49 - <?php if ( has_action( 'frm_settings_buttons' ) ) { ?>
56 +if ( ! $values['is_template'] ) {
57 + $first_h3 = '';
58 +
59 + if ( has_action( 'frm_settings_buttons' ) ) {
60 + ?>
50 61 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
51 62 <?php esc_html_e( 'Form Settings', 'formidable' ); ?>
52 63 </h3>
53 64 <div class="misc-pub-section">
@@ -53,33 +64,21 @@
53 64 <div class="misc-pub-section">
54 65 <?php do_action( 'frm_settings_buttons', $values ); ?>
55 66 <div class="clear"></div>
56 67 </div>
57 - <?php $first_h3 = ''; ?>
58 - <?php } ?>
59 -<?php } ?>
68 + <?php
69 + $first_h3 = '';
70 + }
71 +}
72 +?>
60 73
61 74 <h3 class="<?php echo esc_attr( $first_h3 ); ?>">
62 75 <?php esc_html_e( 'On Submit', 'formidable' ); ?>
63 - <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Choose what will happen after the user submits this form.', 'formidable' ); ?>"></span>
76 + <?php FrmAppHelper::tooltip_icon( __( 'Choose what will happen after the user submits this form.', 'formidable' ) ); ?>
64 77 </h3>
65 78
66 -<input type="hidden" name="options[on_submit_migrated]" value="<?php echo empty( $values['on_submit_migrated'] ) ? '' : intval( $values['on_submit_migrated'] ); ?>" />
79 +<input type="hidden" name="options[on_submit_migrated]" value="<?php echo ! empty( $values['on_submit_migrated'] ) ? intval( $values['on_submit_migrated'] ) : ''; ?>" />
67 80
68 -<?php
69 -// Show a temporary message. This can be removed after the date is passed.
70 -if ( time() < strtotime( '2023-03-07' ) ) {
71 - FrmTipsHelper::show_tip(
72 - array(
73 - 'tip' => __( 'New: The form confirmation settings have moved.', 'formidable' ),
74 - 'call' => __( 'Go to the Form Actions', 'formidable' ),
75 - 'page' => add_query_arg( 't', 'email_settings' ),
76 - ),
77 - 'p'
78 - );
79 -}
80 -?>
81 -
82 81 <p class="frm8 frm_form_field">
83 82 <label for="no_save" class="frm_inline_block">
84 83 <input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked( $values['no_save'], 1 ); ?> />
85 84 <?php esc_html_e( 'Do not store entries submitted from this form', 'formidable' ); ?>
@@ -85,16 +84,20 @@
85 84 <?php esc_html_e( 'Do not store entries submitted from this form', 'formidable' ); ?>
86 85 </label>
87 86 </p>
88 87
88 +<div class="frm_note_style">
89 + <?php esc_html_e( 'Spam settings have been moved to a new section.', 'formidable' ); ?>
90 + <a href="#spam_settings"><?php esc_html_e( 'Click here to jump to Spam settings.', 'formidable' ); ?></a>
91 +</div>
92 +
89 93 <?php
90 -is_callable( 'FrmFormsController::render_spam_settings' ) && FrmFormsController::render_spam_settings( $values );
91 94 FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' );
92 95 ?>
93 96
94 97 <!--AJAX Section-->
95 98 <h3><?php esc_html_e( 'AJAX', 'formidable' ); ?>
96 - <span class="frm_help frm_icon_font frm_tooltip_icon" data-placement="right" title="<?php esc_attr_e( 'Make stuff happen in the background without a page refresh', 'formidable' ); ?>" ></span>
99 + <?php FrmAppHelper::tooltip_icon( __( 'Make stuff happen in the background without a page refresh', 'formidable' ), array( 'data-placement' => 'right' ) ); ?>
97 100 </h3>
98 101
99 102 <table class="form-table">
100 103 <tr>
@@ -99,40 +102,40 @@
99 102 <table class="form-table">
100 103 <tr>
101 104 <td>
102 105 <label for="ajax_load" class="frm_inline_block">
103 - <input type="checkbox" name="options[ajax_load]" id="ajax_load" value="1"<?php echo ( $values['ajax_load'] ) ? ' checked="checked"' : ''; ?> /> <?php esc_html_e( 'Load and save form builder page with AJAX', 'formidable' ); ?>
104 - <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ); ?>"></span>
106 + <input type="checkbox" name="options[ajax_load]" id="ajax_load" value="1"<?php echo $values['ajax_load'] ? ' checked="checked"' : ''; ?> /> <?php esc_html_e( 'Load and save form builder page with AJAX', 'formidable' ); ?>
107 + <?php FrmAppHelper::tooltip_icon( __( 'Recommended for long forms.', 'formidable' ) ); ?>
105 108 </label>
106 109 </td>
107 110 </tr>
108 111 <?php do_action( 'frm_add_form_ajax_options', $values ); ?>
109 - <?php if ( ! FrmFormsHelper::should_use_pro_for_ajax_submit() ) { ?>
110 - <tr>
111 - <td>
112 - <label for="ajax_submit">
113 - <input type="checkbox" name="options[ajax_submit]" id="ajax_submit" value="1" <?php checked( $values['ajax_submit'], 1 ); ?> />
114 - <?php esc_html_e( 'Submit this form with AJAX', 'formidable' ); ?>
115 - <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Submit the form without refreshing the page.', 'formidable' ); ?>"></span>
116 - </label>
117 - </td>
118 - </tr>
119 - <?php } ?>
120 112 <tr>
121 113 <td>
114 + <label for="ajax_submit">
115 + <input type="checkbox" name="options[ajax_submit]" id="ajax_submit" value="1" <?php checked( $values['ajax_submit'], 1 ); ?> />
116 + <?php esc_html_e( 'Submit this form with AJAX', 'formidable' ); ?>
117 + <?php FrmAppHelper::tooltip_icon( __( 'Submit the form without refreshing the page.', 'formidable' ) ); ?>
118 + </label>
119 + </td>
120 + </tr>
121 + <tr>
122 + <td>
122 123 <label for="js_validate" class="frm_inline_block">
123 124 <input type="checkbox" name="options[js_validate]" id="js_validate" value="1" <?php checked( $values['js_validate'], 1 ); ?> />
124 125 <?php esc_html_e( 'Validate this form with javascript', 'formidable' ); ?>
125 - <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Required fields, email format, and number format can be checked instantly in your browser. You may want to turn this option off if you have any customizations to remove validation messages on certain fields.', 'formidable' ); ?>" data-container="body"></span>
126 + <?php FrmAppHelper::tooltip_icon( __( 'Required fields, email format, and number format can be checked instantly in your browser. You may want to turn this option off if you have any customizations to remove validation messages on certain fields.', 'formidable' ), array( 'data-container' => 'body' ) ); ?>
126 127 </label>
127 128 </td>
128 129 </tr>
129 130 </table>
130 131
132 +<input type="hidden" name="options[custom_style]" value="<?php echo esc_attr( $values['custom_style'] ); ?>" />
133 +
131 134 <!--Permissions Section-->
132 -<?php do_action( 'frm_add_form_perm_options', $values ); ?>
135 +<?php
136 +do_action( 'frm_add_form_perm_options', $values );
133 137
134 -<?php
135 138 /*
136 139 * We keep this section to make the frm_add_form_msg_options hook still work after we moved the Success message option
137 140 * to the On Submit action, and moved the Draft message option to the below of its checkbox.
138 141 */