1 Star 1 Fork 1

瑶瑶/kratos

forked from Yuhao/kratos 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
comments.php 3.10 KB
一键复制 编辑 原始数据 按行查看 历史
用youlei55 提交于 2019-09-21 12:02 . 2.0
<?php if(post_password_required()) return; ?>
<div id="comments" class="comments-area">
<ol class="comment-list">
<?php if(have_comments()){ ?>
<?php wp_list_comments(array('style'=>'ol','short_ping'=>true,'avatar_size'=>50,)); ?>
</ol>
<?php if(get_comment_pages_count()>1&&get_option('page_comments')){ ?>
<div id="comments-nav">
<?php paginate_comments_links('prev_text=上一页&next_text=下一页');?>
</div>
<?php }
}else echo '</ol>';
//echo("<script>console.log('".json_encode($commenter)."');</script>");
$fields=array(
'uid'=>'<div class="wow bounceInLeft"><div class="comment-form-bilibili form-group has-feedback"><div class="input-group"><div class="input-group-addon"><i class="fa fa-id-card-o" aria-hidden="true"></i></div><input class="form-control" placeholder="B站uid" id="uid" name="uid" type="text" value="'.esc_attr($_COOKIE["Buid"]).'" size="30" /><span class="form-control-feedback required">*</span></div></div></div>',
'author'=>'<div class="wow bounceInRight"><div class="comment-form-author form-group has-feedback"><div class="input-group"><div class="input-group-addon"><i class="fa fa-user"></i></div><input class="form-control" placeholder="昵称" id="author" name="author" type="text" value="'.esc_attr($commenter['comment_author']).'" size="30" /><span class="form-control-feedback required">*</span></div></div></div>',
'email'=>'<div class="wow bounceInLeft"><div class="comment-form-email form-group has-feedback wow jackInTheBox"><div class="input-group"><div class="input-group-addon"><i class="fa fa-envelope-o"></i></div><input class="form-control" placeholder="邮箱" id="email" name="email" type="text" value="'.esc_attr($commenter['comment_author_email']).'" size="30" /><span class="form-control-feedback required">*</span></div></div></div>',
'url'=>'<div class="wow bounceInRight"><div class="comment-form-url form-group has-feedback wow jackInTheBox"><div class="input-group"><div class="input-group-addon"><i class="fa fa-link"></i></div><input class="form-control" placeholder="网站" id="url" name="url" type="text" value="'.esc_attr($commenter['comment_author_url']).'" size="30" /></div></div></div>',
'cookies'=>'',
);
$args=array(
'title_reply_before'=>'<h4 id="reply-title" class="comment-reply-title">',
'title_reply_after'=>'</h4>',
'fields'=>$fields,
'class_submit'=>'btn btn-primary',
'comment_notes_before' => '<p class="comment-notes">昵称和uid可以选填一个,填邮箱必填(留言回复后将会发邮件给你)<br>tips:输入uid可以快速获得你的昵称和头像</p>',
'comment_field'=>'<div class="comment form-group has-feedback"><div class="input-group"><textarea class="form-control" id="comment" placeholder="期待大佬的精彩发言~φ(>ω<*) " name="comment" rows="5" aria-required="true" required onkeydown="if(event.ctrlKey){if(event.keyCode==13){document.getElementById(\'submit\').click();return false}};"></textarea></div><div class="OwO"></div></div>',
);
comment_form($args); ?>
</div>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/moeyao/kratos.git
[email protected]:moeyao/kratos.git
moeyao
kratos
kratos
master

搜索帮助