| 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 |
|