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
formidable / classes / views / frm-settings / general.php

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

89 lines 3.5 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( 'Styling & Scripts', 'formidable' ); ?></h3>
16
17 <p class="frm_grid_container">
18 <label class="frm4 frm_form_field" for="frm_load_style">
19 <?php esc_html_e( 'Load form styling', 'formidable' ); ?>
20 </label>
21 <select id="frm_load_style" name="frm_load_style" class="frm8 frm_form_field">
22 <option value="all" <?php selected( $frm_settings->load_style, 'all' ); ?>>
23 <?php esc_html_e( 'on every page of my site', 'formidable' ); ?>
24 </option>
25 <option value="dynamic" <?php selected( $frm_settings->load_style, 'dynamic' ); ?>>
26 <?php esc_html_e( 'only on applicable pages', 'formidable' ); ?>
27 </option>
28 <option value="none" <?php selected( $frm_settings->load_style, 'none' ); ?>>
29 <?php esc_html_e( 'Don\'t use form styling on any page', 'formidable' ); ?>
30 </option>
31 </select>
32 </p>
33
34 <?php do_action( 'frm_style_general_settings', $frm_settings ); ?>
35
36 <h3><?php esc_html_e( 'Other', 'formidable' ); ?></h3>
37
38 <?php
39 ob_start();
40
41 /**
42 * Trigger an action so Pro can display additional General settings in the Other section.
43 *
44 * @param FrmSettings $frm_settings
45 */
46 do_action( 'frm_settings_form', $frm_settings );
47
48 $more_html = ob_get_clean();
49 echo $more_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
50
51 FrmSettingsController::maybe_render_currency_selector( $frm_settings, $more_html );
52 unset( $more_html );
53 ?>
54
55 <div class="clear"></div>
56
57 <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?>
58 <input type="hidden" name="frm_menu" id="frm_menu" value="<?php echo esc_attr( $frm_settings->menu ); ?>"/>
59 <input type="hidden" name="frm_mu_menu" id="frm_mu_menu" value="<?php echo esc_attr( $frm_settings->mu_menu ); ?>"/>
60 <?php } ?>
61
62 <p>
63 <label for="frm_no_ips">
64 <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" />
65 <?php esc_html_e( 'Do not store IPs with form submissions. Check this box for to assist with GDPR compliance.', 'formidable' ); ?>
66 </label>
67 </p>
68
69 <?php
70 $custom_header_ip_wrapper_params = array( 'class' => 'frm_custom_header_ip_cont' );
71 if ( $frm_settings->no_ips ) {
72 $custom_header_ip_wrapper_params['class'] .= ' frm_hidden';
73 }
74 ?>
75 <p <?php FrmAppHelper::array_to_html_params( $custom_header_ip_wrapper_params, true ); ?>>
76 <label for="frm_custom_header_ip">
77 <input type="checkbox" name="frm_custom_header_ip" id="frm_custom_header_ip" value="1" <?php checked( $frm_settings->custom_header_ip, 1 ); ?> />
78 <?php esc_html_e( 'Use custom headers when retrieving IPs with form submissions.', 'formidable' ); ?>
79 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( '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' ); ?>"></span>
80 </label>
81 </p>
82
83 <p>
84 <label for="frm_admin_bar">
85 <input type="checkbox" name="frm_admin_bar" id="frm_admin_bar" value="1" <?php checked( $frm_settings->admin_bar, 1 ); ?> />
86 <?php esc_html_e( 'Do not include Formidable in the admin bar.', 'formidable' ); ?>
87 </label>
88 </p>
89