PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.32.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.32.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.32.1, at classes/views/frm-settings/general.php

120 lines 4.8 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 $is_gdpr_enabled = FrmAppHelper::is_gdpr_enabled();
7
8 ?>
9 <div class="frm_license_box">
10 <h3 class="frm-no-border frm-mt-0"><?php esc_html_e( 'License Key', 'formidable' ); ?></h3>
11 <p class="howto">
12 <?php esc_html_e( 'Your license key provides access to new features and updates.', 'formidable' ); ?>
13 </p>
14
15 <?php do_action( 'frm_before_settings' ); ?>
16 </div>
17
18 <h3><?php esc_html_e( 'Defaults', 'formidable' ); ?></h3>
19
20 <p class="frm_grid_container">
21 <label class="frm4 frm_form_field" for="frm_default_email">
22 <?php esc_html_e( 'Default Email Address', 'formidable' ); ?>
23 <?php FrmAppHelper::tooltip_icon( __( 'The default email address to receive notifications for new form submissions.', 'formidable' ) ); ?>
24 </label>
25 <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 ); ?>" />
26 </p>
27
28 <p class="frm_grid_container">
29 <label class="frm4 frm_form_field" for="frm_from_email">
30 <?php esc_html_e( 'Default From Address', 'formidable' ); ?>
31 <?php FrmAppHelper::tooltip_icon( __( 'The "From" address for emails sent from this site.', 'formidable' ) ); ?>
32 </label>
33 <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 ); ?>" />
34 </p>
35
36 <?php
37 /**
38 * Trigger an action so Pro can display additional General settings in the Other section.
39 *
40 * @param FrmSettings $frm_settings
41 */
42 do_action( 'frm_settings_form', $frm_settings );
43
44 FrmSettingsController::maybe_render_currency_selector( $frm_settings );
45 ?>
46
47 <div class="clear"></div>
48
49 <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?>
50 <input type="hidden" name="frm_menu" id="frm_menu" value="<?php echo esc_attr( $frm_settings->menu ); ?>"/>
51 <input type="hidden" name="frm_mu_menu" id="frm_mu_menu" value="<?php echo esc_attr( $frm_settings->mu_menu ); ?>"/>
52 <?php } ?>
53
54 <h3><?php esc_html_e( 'GDPR', 'formidable' ); ?></h3>
55 <?php
56 $gdpr_options_wrapper_params = array( 'class' => 'frm_gdpr_options' );
57
58 if ( ! $is_gdpr_enabled ) {
59 $gdpr_options_wrapper_params['class'] .= ' frm_hidden';
60 }
61
62 $custom_header_ip_wrapper_params = array( 'class' => 'frm_custom_header_ip_cont frm_gdpr_options' );
63
64 if ( $frm_settings->no_ips || ! $is_gdpr_enabled ) {
65 $custom_header_ip_wrapper_params['class'] .= ' frm_hidden';
66 }
67 ?>
68 <p>
69 <label>
70 <input type="checkbox" name="frm_enable_gdpr" id="frm_enable_gdpr" value="1" <?php checked( $is_gdpr_enabled, 1 ); ?> data-frmshow=".frm_gdpr_options" data-frmuncheck="#frm_no_gdpr_cookies, #frm_no_ips, #frm_custom_header_ip" />
71 <?php esc_html_e( 'Enable GDPR related features and enhancements.', 'formidable' ); ?>
72 </label>
73 </p>
74
75 <p <?php FrmAppHelper::array_to_html_params( $gdpr_options_wrapper_params, true ); ?>>
76 <label>
77 <input type="checkbox" name="frm_no_gdpr_cookies" id="frm_no_gdpr_cookies" value="1" <?php checked( $frm_settings->no_gdpr_cookies, 1 ); ?> />
78 <?php esc_html_e( 'Disable user tracking cookies. This will disable the option to limit form entries to one per user by cookie.', 'formidable' ); ?>
79 </label>
80 </p>
81
82 <p <?php FrmAppHelper::array_to_html_params( $gdpr_options_wrapper_params, true ); ?>>
83 <label>
84 <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" />
85 <?php esc_html_e( 'Do not store user IPs with form submissions.', 'formidable' ); ?>
86 </label>
87 </p>
88 <p <?php FrmAppHelper::array_to_html_params( $custom_header_ip_wrapper_params, true ); ?>>
89 <label>
90 <input type="checkbox" name="frm_custom_header_ip" id="frm_custom_header_ip" value="1" <?php checked( $frm_settings->custom_header_ip, 1 ); ?> />
91 <?php esc_html_e( 'Use custom headers when retrieving IPs with form submissions.', 'formidable' ); ?>
92 <?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' ) ); ?>
93 </label>
94 </p>
95 <p class="frm-text-xs frm-mb-0">
96 <?php
97 $gdpr_utm = array(
98 'campaign' => 'gdpr-settings',
99 'content' => 'gdpr-settings-docs',
100 );
101 printf(
102 // translators: %1$s: Opening tag for a link, %2$s: Closing tag for a link
103 esc_html__( 'Learn more about our GDPR settings %1$shere%2$s', 'formidable' ),
104 '<a href="' . esc_url( FrmAppHelper::admin_upgrade_link( $gdpr_utm, 'knowledgebase/gdpr-settings/' ) ) . '" target="_blank">',
105 '</a>'
106 );
107 ?>
108 </p>
109 <h3 class="frm-mt-xs"><?php esc_html_e( 'Other', 'formidable' ); ?></h3>
110
111 <?php
112 /**
113 * Trigger an action so Pro can display additional General settings in the Other section.
114 *
115 * @since 6.18
116 *
117 * @param FrmSettings $frm_settings
118 */
119 do_action( 'frm_other_settings_form', $frm_settings );
120