Hasna 2 ارسال شده در اردیبهشت 01 گزارش بازنشر ارسال شده در اردیبهشت 01 سلام خسته نباشید مت میخواستم ببینم ایا میشه کدی گذاشت تو فانکشن که نویسنده فقط بتونه تو صحفه single پاسخ بده به کامنت یعنی نویسندگان دیگر ننتون بهش پاسخ بدن فقط خود نویسنده بتونه به نظر های پستی که ارسال کرده پاسخ بده خیلی فوریه واسم اینم کدش function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); if ( 'div' == $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'div-comment'; } ?> <<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>"> <?php if ( 'div' != $args['style'] ) : ?> <div id="div-comment-<?php comment_ID() ?>" class="comment-body"> <?php endif; ?> <div class="comment-author vcard"> <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?> <?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?> <?php the_time('d M Y'); ?> <?php if ($comment->comment_approved == '0') : ?> <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.') ?></em> <?php endif; ?> <a class="comment-link" href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">#</a> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <div class="comment-text <?php /* Only use the adminComment class from style.css if the user_id is 1 (admin) */ if (1 == $comment->user_id) $oddcomment = "adminComment"; echo $oddcomment; ?>"> <?php comment_text() ?> </div> <?php if ( 'div' != $args['style'] ) : ?> </div> <?php endif; ?> <?php } لینک به ارسال
پست های پیشنهاد شده
لطفا برای ارسال دیدگاه وارد شوید
شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید
ورود به حساب کاربری