comments.php 962 B

12345678910111213141516171819
  1. <div id="comments" class="comments-area">
  2. <?php if ( have_comments() ) : ?>
  3. <ol class="commentlist">
  4. <?php wp_list_comments( array( 'callback' => 'dw_comment', 'style' => 'ol' ) ); ?>
  5. </ol>
  6. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
  7. <nav id="comment-nav-below" class="navigation" role="navigation">
  8. <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
  9. <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
  10. <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentytwelve' ) ); ?></div>
  11. </nav>
  12. <?php endif;?>
  13. <?php
  14. if ( ! comments_open() && get_comments_number() ) : ?>
  15. <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p>
  16. <?php endif; ?>
  17. <?php endif;?>
  18. <?php comment_form(); ?>
  19. </div>