defined('ABSPATH') or die('This file can not be loaded directly.');
global $comment_ids; $comment_ids = array();
foreach ( $comments as $comment ) {
if (get_comment_type() == "comment") {
$comment_ids[get_comment_id()] = ++$comment_i;
}
}
if ( !comments_open() ) return;
$my_email = get_bloginfo ( 'admin_email' );
$str = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = $post->ID AND comment_approved = '1' AND comment_type = '' AND comment_author_email";
$count_t = $post->comment_count;
$closeTimer = (strtotime(date('Y-m-d G:i:s'))-strtotime(get_the_time('Y-m-d G:i:s')))/86400;
?>
if(defined('UM_DIR')){
printf('您必须 登录 才能发表评论!' );
}else{
printf('您必须 登录 才能发表评论!', wp_login_url( get_permalink() ) );
}
?>
<?php }elseif( get_option('close_comments_for_old_posts') && $closeTimer > get_option('close_comments_days_old') ) { ?>
文章评论已关闭!
global $current_user;
wp_get_current_user();
if ( is_user_logged_in() )
echo get_avatar( $current_user->user_email, $size = '54' , deel_avatar_default() );
elseif( !is_user_logged_in() && get_option('require_name_email') && $comment_author_email=='' )
echo get_avatar( $current_user->user_email, $size = '54' , deel_avatar_default() );
elseif( !is_user_logged_in() && get_option('require_name_email') && $comment_author_email!=='' )
echo get_avatar( $comment->comment_author_email, $size = '54' , deel_avatar_default() );
else
echo get_avatar( $comment->comment_author_email, $size = '54' , deel_avatar_default() );
?>
提交评论
表情
<?php if(!git_get_option('git_tietu')) echo ' 贴图';?>
<?php if(!git_get_option('git_jiacu')) echo ' 加粗';?>
<?php if(!git_get_option('git_shanchu')) echo ' 删除线';?>
<?php if(!git_get_option('git_juzhong')) echo ' 居中';?>
<?php if(!git_get_option('git_xieti')) echo ' 斜体';?>
<?php if(!git_get_option('git_qiandao')) echo ' 签到';?>
Hi,您需要填写昵称和邮箱!
- 昵称昵称 (必填)
- 邮箱邮箱 (必填)
- 网址网址
if ( have_comments() ) {
?>
}
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史
<?php echo ' ('.$count_t.')'; ?>个小伙伴在吐槽