mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
Add a CAPTCHA
This commit is contained in:
parent
743bbd1a4c
commit
0fb254fd85
11
comments.php
11
comments.php
@ -46,11 +46,18 @@
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (akina_option('verification_type') == 'Google reCAPTCHA'&& akina_option('rehidden') == '1') {?>
|
||||
<!--添加隐形验证码-->
|
||||
<div id="recaptcha" class="g-recaptcha"
|
||||
data-sitekey="<?php echo akina_option('site_key'); ?>"
|
||||
data-callback="onRecaptchaSubmit"
|
||||
data-size="invisible">
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php
|
||||
$robot_comments = '';
|
||||
if(comments_open()){
|
||||
if(akina_option('norobot')) $robot_comments = '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="no-robot"><span class="siren-no-robot-checkbox siren-checkbox-radioInput"></span>'.__('I\'m not a robot', 'sakura').'</label>';
|
||||
if(akina_option('norobot')) require get_template_directory() . '/inc/classes/Captcha.php';
|
||||
$private_ms = akina_option('open_private_message') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="is-private"><span class="siren-is-private-checkbox siren-checkbox-radioInput"></span>'.__('Comment in private', 'sakura').'</label>' : '';
|
||||
$mail_notify = akina_option('mail_notify') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="mail-notify"><span class="siren-mail-notify-checkbox siren-checkbox-radioInput"></span>'.__('Comment reply notify', 'sakura').'</label>' : '';
|
||||
$args = array(
|
||||
|
Loading…
Reference in New Issue
Block a user