Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <?php if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) return; ?>
  2. <section id="comments">
  3. <?php
  4. if ( have_comments() ) :
  5. global $comments_by_type;
  6. $comments_by_type = &separate_comments( $comments );
  7. if ( ! empty( $comments_by_type['comment'] ) ) :
  8. ?>
  9. <section id="comments-list" class="comments">
  10.  
  11. <?php if ( get_comment_pages_count() > 1 ) : ?>
  12. <nav id="comments-nav-above" class="comments-navigation" role="navigation">
  13. <div class="paginated-comments-links"><?php paginate_comments_links(); ?></div>
  14. </nav>
  15. <?php endif; ?>
  16. <ul>
  17. <?php wp_list_comments( 'type=comment' ); ?>
  18. </ul>
  19.  
  20. </section>
  21. <?php
  22. endif;
  23. if ( ! empty( $comments_by_type['pings'] ) ) :
  24. $ping_count = count( $comments_by_type['pings'] );
  25. ?>
  26. <section id="trackbacks-list" class="comments">
  27. <h3 class="comments-title"><?php echo '<span class="ping-count">' . $ping_count . '</span> ' . ( $ping_count > 1 ? __( 'Trackbacks' ) : __( 'Trackback' ) ); ?></h3>
  28.  
  29. </section>
  30. <?php
  31. endif;
  32. endif;
  33. if ( comments_open() ) comment_form();
  34. ?>
  35. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement