PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.7
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.7
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/models/FrmSettings.php +15 -3 6.36.7 View file →
@@ -41,9 +41,13 @@
41 41 public $no_ips;
42 42 public $custom_header_ip;
43 43 public $current_form = 0;
44 44 public $tracking;
45 + public $summary_emails;
46 + public $summary_emails_recipients;
45 47
48 + public $currency;
49 +
46 50 /**
47 51 * @since 6.0
48 52 *
49 53 * @var string|false|null
@@ -119,13 +123,16 @@
119 123 'failed_msg' => __( 'We\'re sorry. It looks like you\'ve already submitted that.', 'formidable' ),
120 124 'submit_value' => __( 'Submit', 'formidable' ),
121 125 'login_msg' => __( 'You do not have permission to view this form.', 'formidable' ),
122 126 'admin_permission' => __( 'You do not have permission to do that', 'formidable' ),
127 + 'new_tab_msg' => __( 'The page has been opened in a new tab.', 'formidable' ),
123 128
124 129 'email_to' => '[admin_email]',
125 130 'no_ips' => 0,
126 131 'custom_header_ip' => false, // Use false by default. We show a warning when this is unset. Once global settings have been saved, this gets saved
127 132 'tracking' => FrmAppHelper::pro_is_installed(),
133 + 'summary_emails' => 1,
134 + 'summary_emails_recipients' => '[admin_email]',
128 135
129 136 // Normally custom CSS is a string. A false value is used when nothing has been set.
130 137 // When it is false, we try to use the old custom_key value from the default style's post_content array.
131 138 'custom_css' => false,
@@ -161,8 +168,12 @@
161 168 if ( ! isset( $this->$frm_role ) ) {
162 169 $this->$frm_role = 'administrator';
163 170 }
164 171 }
172 +
173 + if ( ! isset( $this->currency ) ) {
174 + $this->currency = 'USD';
175 + }
165 176 }
166 177
167 178 /**
168 179 * @param array $params
@@ -339,18 +350,19 @@
339 350 */
340 351 private function update_settings( $params ) {
341 352 $this->active_captcha = $params['frm_active_captcha'];
342 353 $this->hcaptcha_pubkey = trim( $params['frm_hcaptcha_pubkey'] );
343 - $this->hcaptcha_privkey = $params['frm_hcaptcha_privkey'];
354 + $this->hcaptcha_privkey = trim( $params['frm_hcaptcha_privkey'] );
344 355 $this->pubkey = trim( $params['frm_pubkey'] );
345 - $this->privkey = $params['frm_privkey'];
356 + $this->privkey = trim( $params['frm_privkey'] );
346 357 $this->re_type = $params['frm_re_type'];
347 358 $this->re_lang = $params['frm_re_lang'];
348 359 $this->re_threshold = floatval( $params['frm_re_threshold'] );
349 360 $this->load_style = $params['frm_load_style'];
350 361 $this->custom_css = $params['frm_custom_css'];
362 + $this->currency = $params['frm_currency'];
351 363
352 - $checkboxes = array( 'mu_menu', 're_multi', 'use_html', 'jquery_css', 'accordion_js', 'fade_form', 'no_ips', 'custom_header_ip', 'tracking', 'admin_bar' );
364 + $checkboxes = array( 'mu_menu', 're_multi', 'use_html', 'jquery_css', 'accordion_js', 'fade_form', 'no_ips', 'custom_header_ip', 'tracking', 'admin_bar', 'summary_emails' );
353 365 foreach ( $checkboxes as $set ) {
354 366 $this->$set = isset( $params[ 'frm_' . $set ] ) ? absint( $params[ 'frm_' . $set ] ) : 0;
355 367 }
356 368 }