PluginProbe ʕ •ᴥ•ʔ
Advanced Google reCAPTCHA / 1.1
Advanced Google reCAPTCHA v1.1
5.39 trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35
advanced-google-recaptcha / interface / tab_design.php
advanced-google-recaptcha / interface Last commit date
tab_activity.php 2 years ago tab_captcha.php 2 years ago tab_design.php 2 years ago tab_firewall.php 2 years ago tab_geoip.php 2 years ago tab_login_form.php 2 years ago tab_temp_access.php 2 years ago
tab_design.php
50 lines
1 <?php
2
3 /**
4 * WP Captcha
5 * https://getwpcaptcha.com/
6 * (c) WebFactory Ltd, 2022 - 2023, www.webfactoryltd.com
7 */
8
9 class WPCaptcha_Tab_Design extends WPCaptcha
10 {
11 static function display()
12 {
13 echo '<div class="tab-content">';
14
15 $options = WPCaptcha_Setup::get_options();
16 $templates = WPCaptcha_Functions::get_templates();
17
18 echo '<table class="form-table"><tbody>';
19 echo '<tr valign="top">
20 <th scope="row"><label for="block_bots">Enable Customizer</label></th>
21 <td>';
22 WPCaptcha_Utility::create_toggle_switch('design_enable', array('saved_value' => $options['design_enable'], 'option_key' => esc_attr(WPCAPTCHA_OPTIONS_KEY) . '[design_enable]'));
23 echo '<br /><span>You can enable the customizer to use the settings below or leave it turned off to show the default WordPress login page style or customize it using a different plugin or theme settings</span>';
24 echo '</td></tr>';
25 echo '</tbody>';
26 echo '</table>';
27
28 echo '<h3>Templates:</h3>';
29 echo '<ul class="design-templates">';
30 foreach($templates as $template_id => $template){
31 WPCaptcha_Utility::wp_kses_wf('<li><a class="disable_confirm_action ' . ($template_id == $options['design_template']?'design-template-active':'') . '" data-confirm="Are you sure you want to enable this template? This will overwrite all Design settings." href="' . add_query_arg(array('_wpnonce' => wp_create_nonce('wpcaptcha_install_template'), 'template' => $template_id, 'action' => 'wpcaptcha_install_template', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php')) . '"><img src="' . WPCAPTCHA_PLUGIN_URL . '/images/templates/' . $template_id . '.jpg"></a></li>');
32 }
33 echo '</ul>';
34
35 echo '<tr><td></td><td>';
36 WPCaptcha_admin::footer_save_button();
37 echo '</td></tr>';
38
39 echo '<br />';
40
41 echo '<div class="notice-box-info">
42 The Design options allow you to completely customize the login page appearance.<a href="#" class="open-pro-dialog" data-pro-feature="design">Get PRO now</a> to use the Design feature.
43 </div>';
44
45 echo '<img class="open-upsell open-upsell-block" data-feature="design" style="width: 100%;" src="' . esc_url(WPCAPTCHA_PLUGIN_URL) . '/images/design.png" alt="WP Captcha" title="WP Captcha Design" />';
46 echo '</div>';
47 } // display
48
49 } // class WPCaptcha_Tab_Login_Form
50