PluginProbe
Hash Form – Drag & Drop Form Builder / trunk
Hash Form – Drag & Drop Form Builder vtrunk
1.4.4 1.4.3 1.4.2 1.4.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.6.1 1.2.7 1.2.8 1.2.9 1.3.0 All 47 releases
hash-form / admin / settings / general-settings.php

general-settings.php in Hash Form – Drag & Drop Form Builder trunk, at admin/settings/general-settings.php

26 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined('ABSPATH') || die();
3 /*
4 * A template, included from inside a class method - never loaded on its own.
5 * The variables below are locals of the method that includes it, not globals,
6 * which is what the prefix sniff assumes about a file-scope assignment.
7 */
8 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- included from within a method, so these are function locals.
9
10 $hf_load_google_fonts = isset($settings['load_google_fonts']) ? $settings['load_google_fonts'] : 'on';
11 ?>
12
13 <div class="hf-settings-row">
14 <label class="hf-setting-label"><?php esc_html_e('Google Fonts', 'hash-form'); ?></label>
15 <div class="hf-setting-fields">
16 <label>
17 <input type="checkbox" name="hashform_settings[load_google_fonts]" value="on" <?php checked($hf_load_google_fonts, 'on'); ?> />
18 <?php esc_html_e('Load fonts from Google', 'hash-form'); ?>
19 </label>
20 <p class="hf-desc">
21 <?php esc_html_e('Style templates can pick a Google font, which the form then requests from fonts.googleapis.com as the page loads. That tells Google the address of every visitor who sees the form.', 'hash-form'); ?>
22 <br /><?php esc_html_e('Switch this off to stop those requests. Forms then use whichever font the theme already provides, and any Google font chosen in a style template is ignored.', 'hash-form'); ?>
23 </p>
24 </div>
25 </div>
26