comments.php,comments.php

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() );

?>

if ( is_user_logged_in() ) {

printf($user_identity.'发表我的评论');

}else{

if( get_option('require_name_email') && !empty($comment_author_email) ){

printf($comment_author.' 发表我的评论   换个身份');

}else{

printf('发表我的评论');

}

}

?>

取消评论

提交评论

<?php comment_id_fields(); do_action('comment_form', $post->ID); ?>

表情

<?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() ) {

?>

<?php echo ' ('.$count_t.')'; ?>个小伙伴在吐槽

}

?>

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值