PluginProbe
Loginizer / trunk
Loginizer vtrunk
2.1.1 2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 All 75 releases
← All changes | main/settings/recaptcha.php +17 -4 2.0.4 → trunk View file →
@@ -17,9 +17,9 @@
17 17 wp_die('Sorry, but you do not have permissions to change settings.');
18 18 }
19 19
20 20 if(!loginizer_is_premium() && count($_POST) > 0){
21 - $lz_error['not_in_free'] = __('This feature is not available in the Free version. <a href="'.LOGINIZER_PRICING_URL.'" target="_blank" style="text-decoration:none; color:green;"><b>Upgrade to Pro</b></a>', 'loginizer');
21 + $lz_error['not_in_free'] = __('This feature is not available in the Free version.', 'loginizer').' <a href="'.LOGINIZER_PRICING_URL.'" target="_blank" style="text-decoration:none; color:green;"><b>'.esc_html__('Upgrade to Pro', 'loginizer').'</b></a>';
22 22 return loginizer_page_recaptcha_T();
23 23 }
24 24
25 25 /* Make sure post was from this page */
@@ -155,8 +155,10 @@
155 155 $option['captcha_comment'] = (int) lz_optpost('captcha_comment');
156 156 $option['captcha_wc_checkout'] = (int) lz_optpost('captcha_wc_checkout');
157 157 $option['captcha_wc_block_checkout'] = isset($_POST['captcha_wc_block_checkout']);
158 158 $option['captcha_wc_checkout_pos'] = lz_optpost('captcha_wc_checkout_pos');
159 + $option['captcha_wpforms'] = (int) lz_optpost('captcha_wpforms');
160 + $option['captcha_contactform7'] = (int) lz_optpost('captcha_contactform7');
159 161
160 162 // Are we to use Math Captcha ?
161 163 if(!empty($_POST['captcha_status']) && $_POST['captcha_status'] == 2){
162 164
@@ -389,9 +391,9 @@
389 391
390 392 <tr class="lz_google_cap">
391 393 <td scope="row" valign="top"><label><b><?php echo __('reCAPTCHA type', 'loginizer'); ?></b></label><br>
392 394 <?php echo __('Choose the type of reCAPTCHA', 'loginizer'); ?><br />
393 - <?php echo __('<a href="https://developers.google.com/recaptcha/docs/versions" target="_blank">See Site Types for more details</a>', 'loginizer'); ?>
395 + <?php echo '<a href="https://developers.google.com/recaptcha/docs/versions" target="_blank">'.__('See Site Types for more details', 'loginizer').'</a>'; ?>
394 396 </td>
395 397 <td>
396 398 <input type="radio" value="v3" onchange="google_recaptcha_type()" <?php echo lz_POSTradio('captcha_type', 'v3', (!empty($loginizer['captcha_type']) ? $loginizer['captcha_type'] : '')); ?> name="captcha_type" id="captcha_type_v3" /> <label for="captcha_type_v3"><?php echo __('reCAPTCHA v3', 'loginizer'); ?></label><br /><br />
397 399 <input type="radio" value="" onchange="google_recaptcha_type()" <?php echo lz_POSTradio('captcha_type', '', (!empty($loginizer['captcha_type']) ? $loginizer['captcha_type'] : '')); ?> name="captcha_type" id="captcha_type_v2" /> <label for="captcha_type_v2"><?php echo __('reCAPTCHA v2 - Checkbox', 'loginizer'); ?></label><br /><br />
@@ -403,9 +405,9 @@
403 405 <?php echo __('Make sure you enter the correct keys as per the reCAPTCHA type selected above', 'loginizer'); ?>
404 406 </td>
405 407 <td>
406 408 <input type="text" size="50" value="<?php echo lz_optpost('captcha_key', (!empty($loginizer['captcha_key']) ? $loginizer['captcha_key'] : '')); ?>" name="captcha_key" id="captcha_key" /><br />
407 - <?php echo __('Get the Site Key and Secret Key from <a href="https://www.google.com/recaptcha/admin/" target="_blank">Google</a>', 'loginizer'); ?>
409 + <?php echo __('Get the Site Key and Secret Key from', 'loginizer'). ' <a href="https://www.google.com/recaptcha/admin/" target="_blank">Google</a>'; ?>
408 410 </td>
409 411 </tr>
410 412 <tr class="lz_google_cap">
411 413 <td scope="row" valign="top"><label for="captcha_secret"><b><?php echo __('Secret Key', 'loginizer'); ?></b></label></td>
@@ -480,9 +482,9 @@
480 482 <td scope="row" valign="top"><label for="turn_captcha_key"><b><?php echo __('Site Key', 'loginizer'); ?></b></label><br>
481 483 </td>
482 484 <td>
483 485 <input type="text" size="50" value="<?php echo lz_optpost('turn_captcha_key', (!empty($loginizer['turn_captcha_key']) ? $loginizer['turn_captcha_key'] : '')); ?>" name="turn_captcha_key" id="turn_captcha_key" /><br />
484 - <?php echo __('Get the Site Key and Secret Key from <a href="https://dash.cloudflare.com/sign-up?to=/:account/turnstile" target="_blank">Cloudflare Turnstile</a>', 'loginizer'); ?>
486 + <?php echo __('Get the Site Key and Secret Key from', 'loginizer').' <a href="https://dash.cloudflare.com/sign-up?to=/:account/turnstile" target="_blank">Cloudflare Turnstile</a>'; ?>
485 487 </td>
486 488 </tr>
487 489 <tr class="lz_turnstile_cap">
488 490 <td scope="row" valign="top"><label for="turn_captcha_secret"><b><?php echo __('Secret Key', 'loginizer'); ?></b></label></td>
@@ -627,8 +629,19 @@
627 629 <option value="" '.(isset($loginizer['captcha_wc_checkout_pos']) ? selected($loginizer['captcha_wc_checkout_pos'], '', false) : '').'>'.__('Before Payment', 'loginizer').'</option>
628 630 <option value="before_submit" '.(isset($loginizer['captcha_wc_checkout_pos']) ? selected($loginizer['captcha_wc_checkout_pos'], 'before_submit', false) : '').'>'.__('Before Order Button', 'loginizer').'</option>
629 631 </select>
630 632 </td>
633 + </tr>
634 + <tr>
635 + <td><label for="captcha_wpforms">'.__('WPForms', 'loginizer').'</label></td>
636 + <td><input type="checkbox" value="1" name="captcha_wpforms" id="captcha_wpforms" '.lz_POSTchecked('captcha_wpforms', (empty($loginizer['captcha_wpforms']) ? false : true)).' /></td>
637 + </tr>
638 + <tr>
639 + <td><label for="captcha_contactform7">'.__('ContactForm7', 'loginizer').'</label></td>
640 + <td><input type="checkbox" value="1" name="captcha_contactform7" id="captcha_contactform7" '.lz_POSTchecked('captcha_contactform7', (empty($loginizer['captcha_contactform7']) ? false : true)).' /></td>
641 + </tr>
642 + <tr>
643 + <td>'.__('To use the Loginizer reCAPTCHA on Contact Form 7 please enable the above checkbox add the shortcode: [loginizer_pro_recaptcha]', 'loginizer').'</td>
631 644 </tr>';
632 645 }
633 646
634 647 ?>