ruạṛ
<?php if (post_password_required()) { return; } ?> <section id="comments" class="comments"> <?php if(have_comments()): ?> <hr> <h3 class="mb-4"> <?php echo sprintf(_nx('One Comment', '%1$s Comments', get_comments_number(), 'comments title', 'sage'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>'); ?> </h3> <div class="comment-list"> <?php wp_list_comments([ 'callback' => '\App\custom_comments', 'style' => 'ol', ]); ?> </div> <?php if(get_comment_pages_count() > 1 && get_option('page_comments')): ?> <nav class="blog-pagination"> <div class="pager mb-4"> <?php if(get_previous_comments_link()): ?> <div class="previous d-inline-block"><?php previous_comments_link(__('Older Comments', 'sage')) ?></div> <?php endif; ?> <?php if(get_next_comments_link()): ?> <div class="next d-inline-block"><?php next_comments_link(__('Newer Comments', 'sage')) ?> </div> <?php endif; ?> </div> </nav> <?php endif; ?> <?php endif; ?> <?php if(!comments_open() && get_comments_number() != '0' && post_type_supports(get_post_type(), 'comments')): ?> <div class="alert alert-warning"> <?php echo e(__('Comments are closed.', 'sage')); ?> </div> <?php endif; ?> <?php $comments_args = [ // change the title of the reply section 'title_reply' => 'Write a Reply or Comment', // redefine your own textarea (the comment body) 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x('Comment', 'noun') . '</label><br /><textarea id="comment" name="comment" aria-required="true"></textarea></p>', ]; ?> <?php comment_form($comments_args) ?> </section>
cải xoăn