PluginProbe
HTML Forms – Simple WordPress Forms Plugin / 1.6.3
HTML Forms – Simple WordPress Forms Plugin v1.6.3
1.7.0 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 All 67 releases
html-forms / views / page-global-settings.php

page-global-settings.php in HTML Forms – Simple WordPress Forms Plugin 1.6.3, at views/page-global-settings.php

118 lines 6.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined( 'ABSPATH' ) or exit; ?>
2
3 <div class="wrap hf">
4
5 <p class="breadcrumbs">
6 <span class="prefix"><?php echo __( 'You are here: ', 'html-forms' ); ?></span>
7 <a href="<?php echo admin_url( 'admin.php?page=html-forms' ); ?>">HTML Forms</a> &rsaquo;
8 <span class="current-crumb"><strong><?php _e( 'Settings', 'html-forms' ); ?></strong></span>
9 </p>
10
11 <div class="hf-row" style="border-top: 1px dashed #ddd; border-bottom: 1px dashed #ddd;">
12 <!-- Main column -->
13 <div class="hf-col hf-col-4">
14 <h1 class="page-title"><?php _e( 'Settings', 'html-forms' ); ?></h1>
15
16 <?php if ( ! empty( $_GET['settings-updated'] ) ) {
17 echo '<div class="notice notice-success"><p>' . __( 'Settings updated.', 'html-forms' ) . '</p></div>';
18 } ?>
19
20 <form method="post" action="<?php echo admin_url( 'options.php' ); ?>">
21 <?php settings_fields( 'hf_settings' ); ?>
22
23 <table class="form-table">
24 <tr valign="top">
25 <th scope="row">
26 <?php _e( 'Enable Nonce', 'html-forms' ); ?>
27 <a target="_blank" tabindex="-1" class="html-forms-help" href="https://htmlformsplugin.com/kb/enable-nonce/"><span class="dashicons dashicons-editor-help"></span></a>
28 </th>
29 <td>
30 <label><input type="radio" name="hf_settings[enable_nonce]" value="1" <?php checked( $settings['enable_nonce'], 1 ); ?>> <?php _e( 'Yes' ); ?></label> &nbsp;
31 <label><input type="radio" name="hf_settings[enable_nonce]" value="0" <?php checked( $settings['enable_nonce'], 0 ); ?>> <?php _e( 'No' ); ?></label>
32
33 <p class="description">
34 <?php _e( 'Select "Yes" to include a nonce field in each of your forms.', 'html-forms' ); ?><br>
35 If your website uses a caching plugin or service, you may need to select "No" to prevent submission issues.<br>
36 <a target="_blank" tabindex="-1" href="https://htmlformsplugin.com/kb/enable-nonce/"><?php _e( 'Learn more at the HTML Forms Knowledge Base', 'html-forms' ); ?></a>.
37 </p>
38 </td>
39 </tr>
40
41 <tr valign="top">
42 <th scope="row">
43 <?php _e( 'Load Stylesheet?', 'html-forms' ); ?>
44 </th>
45 <td>
46 <label><input type="radio" name="hf_settings[load_stylesheet]" value="1" <?php checked( $settings['load_stylesheet'], 1 ); ?>> <?php _e( 'Yes' ); ?></label> &nbsp;
47 <label><input type="radio" name="hf_settings[load_stylesheet]" value="0" <?php checked( $settings['load_stylesheet'], 0 ); ?>> <?php _e( 'No' ); ?></label>
48
49 <p class="description"><?php _e( 'Select "Yes" to apply some basic form styles to all HTML Forms.', 'html-forms' ); ?></p>
50 </td>
51 </tr>
52
53 <tr valign="top">
54 <th scope="row"><?php _e( 'Wrapper Tag', 'html-forms' ); ?></th>
55 <td>
56 <select name="hf_settings[wrapper_tag]">
57 <?php foreach ( $wrapper_tags as $wt ) : ?>
58 <option value="<?php echo $wt; ?>"<?php echo (selected($settings['wrapper_tag'], $wt)); ?>><?php echo $wt; ?></option>
59 <?php endforeach; ?>
60 </select>
61
62 <p class="description"><?php _e( 'Select the HTML tag to wrap form fields in.', 'html-forms' ); ?></p>
63 </td>
64 </tr>
65 </table>
66
67 <h2 class="title">
68 <?php echo _e('Google reCAPTCHA v3', 'html-forms'); ?>
69 <a target="_blank" tabindex="-1" class="html-forms-help" href="https://htmlformsplugin.com/kb/google-recaptcha/"><span class="dashicons dashicons-editor-help"></span></a>
70 </h2>
71
72 <p class="description">
73 <?php _e( 'Google reCAPTCHA v3 helps protect your forms from spam and abuse. To use this feature, you need to register your site at', 'html-forms' ); ?>
74 <a target="_blank" tabindex="-1" href="https://www.google.com/recaptcha/admin/">https://www.google.com/recaptcha/admin/</a>
75 <?php _e( 'and select reCAPTCHA v3. Once configured, reCAPTCHA will automatically protect all your forms.', 'html-forms' ); ?>
76 </p>
77
78 <table class="form-table" role="presentation">
79 <tbody>
80 <tr valign="top">
81 <th scope="row">
82 <?php _e( 'Site Key', 'html-forms' ); ?>
83 </th>
84 <td>
85 <input type="text" class="large-text" min="0" name="hf_settings[google_recaptcha][site_key]" value="<?php echo esc_attr( $settings['google_recaptcha']['site_key'] ); ?>" />
86 </td>
87 </tr>
88
89 <tr valign="top">
90 <th scope="row">
91 <?php _e( 'Secret Key', 'html-forms' ); ?>
92 </th>
93 <td>
94 <input type="text" class="large-text" min="0" name="hf_settings[google_recaptcha][secret_key]" value="<?php echo esc_attr( $settings['google_recaptcha']['secret_key'] ); ?>" />
95 </td>
96 </tr>
97
98
99 <?php do_action( 'hf_admin_output_google_recaptcha_v3_settings' ); ?>
100 </tbody>
101 </table>
102
103 <?php do_action( 'hf_admin_output_settings' ); ?>
104
105 <?php submit_button(); ?>
106 </form>
107
108 <?php do_action( 'hf_admin_output_misc_settings' ); ?>
109 </div>
110
111 <div class="hf-col hf-col-2 hf-sidebar">
112 <?php require __DIR__ . '/admin-sidebar.php'; ?>
113 </div>
114 </div>
115
116 <?php require __DIR__ . '/admin-footer.php'; ?>
117 </div>
118