comments.php 877 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * The template for displaying comments
  4. *
  5. * This is the template that displays the area of the page that contains both the current comments and the comment form.
  6. *
  7. * @version taskereasy 1.0.0
  8. */
  9. if ( post_password_required() ) {
  10. return;
  11. }
  12. ?>
  13. <?php if ( number_format_i18n(get_comments_number())!=0 ){ ?>
  14. <div class="comment-list-wrap">
  15. <h5><?php printf(_n('1 Comment','%s Comments',get_comments_number(),'taskereasy'),number_format_i18n( get_comments_number() )); ?></h5>
  16. <ol class="comment-list">
  17. <?php
  18. wp_list_comments( array(
  19. 'avatar_size' => 70,
  20. 'style' => 'ol',
  21. 'callback' => 'taskereasy_comment_form',
  22. 'short_ping' => true,
  23. ) );
  24. ?>
  25. </ol>
  26. <div class="comment-pagination">
  27. <?php
  28. previous_comments_link();
  29. next_comments_link();
  30. ?>
  31. </div>
  32. </div>
  33. <?php } ?>
  34. <?php comment_form(); ?>