Advertisement
Guest User

Untitled

a guest
May 27th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <?php if ( post_password_required() ) { ?>
  2. <section id="comments">
  3. <p><?php _e('This post is password protected. Enter the password to view any comments.', 'finesse'); ?></p>
  4. </section>
  5. <?php return;/* Stop the rest of comments.php from being processed, but don't kill the script entirely.*/ ?>
  6. <?php } ?>
  7.  
  8. <?php if ( have_comments() ) { ?>
  9. <!-- begin comments -->
  10. <section id="comments">
  11. <!-- begin comments header -->
  12. <h3><?php printf( _n('1 Comment', '%1$s Comments', get_comments_number(), 'finesse'), number_format_i18n( get_comments_number() )); ?></h3>
  13. <!-- end comments header -->
  14.  
  15. <!-- begin comment list -->
  16. <ol class="comment-list">
  17. <?php $GLOBALS['comment_index']=1; wp_list_comments( array('callback' => 'print_finesse_comments', 'style' => 'ol') ); ?>
  18. </ol>
  19.  
  20. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // are there comments to navigate through ?>
  21. <nav id="comment-nav-below" class="navigation page-nav" role="navigation">
  22. <ul>
  23. <li class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'finesse' ) ); ?></li>
  24. <li class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'finesse' ) ); ?></li>
  25. </ul>
  26. </nav>
  27. <?php } // check for comment navigation ?>
  28. <!-- end comment list -->
  29. </section>
  30. <!-- end comments -->
  31. <?php } ?>
  32.  
  33. <!-- begin leave comment -->
  34. <?php if (comments_open(get_the_ID())) { comment_form(array(), get_the_ID()); } ?>
  35. <!-- end leave comment -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement