PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.16.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.16.1
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-settings / general.php

general.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.16.1, at classes/views/frm-settings/general.php

84 lines 3.4 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 <div class="frm_license_box">
7 <h3 class="frm-no-border frm-mt-0"><?php esc_html_e( 'License Key', 'formidable' ); ?></h3>
8 <p class="howto">
9 <?php esc_html_e( 'Your license key provides access to new features and updates.', 'formidable' ); ?>
10 </p>
11
12 <?php do_action( 'frm_before_settings' ); ?>
13 </div>
14
15 <h3><?php esc_html_e( 'Other', 'formidable' ); ?></h3>
16
17 <p class="frm_grid_container">
18 <label class="frm4 frm_form_field" for="frm_default_email">
19 <?php esc_html_e( 'Default Email Address', 'formidable' ); ?>
20 <?php FrmAppHelper::tooltip_icon( __( 'The default email address to receive notifications for new form submissions.', 'formidable' ) ); ?>
21 </label>
22 <input class="frm_with_left_label frm8" type="text" name="frm_default_email" id="frm_default_email" value="<?php echo esc_attr( $frm_settings->default_email ); ?>" />
23 </p>
24
25 <p class="frm_grid_container">
26 <label class="frm4 frm_form_field" for="frm_from_email">
27 <?php esc_html_e( 'Default From Address', 'formidable' ); ?>
28 <?php FrmAppHelper::tooltip_icon( __( 'The "From" address for emails sent from this site.', 'formidable' ) ); ?>
29 </label>
30 <input class="frm_with_left_label frm8" type="text" name="frm_from_email" id="frm_from_email" value="<?php echo esc_attr( $frm_settings->from_email ); ?>" />
31 </p>
32
33 <?php
34 ob_start();
35
36 /**
37 * Trigger an action so Pro can display additional General settings in the Other section.
38 *
39 * @param FrmSettings $frm_settings
40 */
41 do_action( 'frm_settings_form', $frm_settings );
42
43 $more_html = ob_get_clean();
44 echo $more_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
45
46 FrmSettingsController::maybe_render_currency_selector( $frm_settings, $more_html );
47 unset( $more_html );
48 ?>
49
50 <div class="clear"></div>
51
52 <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?>
53 <input type="hidden" name="frm_menu" id="frm_menu" value="<?php echo esc_attr( $frm_settings->menu ); ?>"/>
54 <input type="hidden" name="frm_mu_menu" id="frm_mu_menu" value="<?php echo esc_attr( $frm_settings->mu_menu ); ?>"/>
55 <?php } ?>
56
57 <p>
58 <label>
59 <input type="checkbox" name="frm_no_ips" id="frm_no_ips" value="1" <?php checked( $frm_settings->no_ips, 1 ); ?> data-frmhide=".frm_custom_header_ip_cont" />
60 <?php esc_html_e( 'Do not store IPs with form submissions. Check this box for to assist with GDPR compliance.', 'formidable' ); ?>
61 </label>
62 </p>
63
64 <?php
65 $custom_header_ip_wrapper_params = array( 'class' => 'frm_custom_header_ip_cont' );
66 if ( $frm_settings->no_ips ) {
67 $custom_header_ip_wrapper_params['class'] .= ' frm_hidden';
68 }
69 ?>
70 <p <?php FrmAppHelper::array_to_html_params( $custom_header_ip_wrapper_params, true ); ?>>
71 <label>
72 <input type="checkbox" name="frm_custom_header_ip" id="frm_custom_header_ip" value="1" <?php checked( $frm_settings->custom_header_ip, 1 ); ?> />
73 <?php esc_html_e( 'Use custom headers when retrieving IPs with form submissions.', 'formidable' ); ?>
74 <?php FrmAppHelper::tooltip_icon( __( 'Only turn this on if IP addresses are incorrect in entries. Some server setups may require spoofable headers to determine an accurate IP address.', 'formidable' ) ); ?>
75 </label>
76 </p>
77
78 <p>
79 <label>
80 <input type="checkbox" name="frm_admin_bar" id="frm_admin_bar" value="1" <?php checked( $frm_settings->admin_bar, 1 ); ?> />
81 <?php esc_html_e( 'Do not include Formidable in the admin bar.', 'formidable' ); ?>
82 </label>
83 </p>
84