comments.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php if ( comments_open() ): ?>
  2. <div class="commentbubble"><a href="#" class="toggle-comments"><?php comments_number('0', '1', '%'); ?> Comments</a></div>
  3. <?php endif;?>
  4. <div id="comments" class="comments-area">
  5. <?php if ( have_comments() ) : ?>
  6. <ul class="commentlist">
  7. <?php wp_list_comments( array(
  8. 'callback' => 'dw_comment',
  9. 'style' => 'ul',
  10. 'avatar_size' => 16,
  11. 'short_ping' => true
  12. ) );
  13. ?>
  14. </ul>
  15. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
  16. <nav id="comment-nav-below" class="navigation" role="navigation">
  17. <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'dw' ); ?></h1>
  18. <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'dw' ) ); ?></div>
  19. <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'dw' ) ); ?></div>
  20. </nav>
  21. <?php endif;?>
  22. <?php
  23. if ( ! comments_open() && get_comments_number() ) : ?>
  24. <p class="nocomments"><?php _e( 'Comments are closed.' , 'dw' ); ?></p>
  25. <?php endif; ?>
  26. <?php endif;?>
  27. <?php comment_form(
  28. array(
  29. 'comment_notes_after' => '',
  30. 'comment_notes_before' => '',
  31. 'title_reply' => __( '' ),
  32. 'title_reply_to' => __( 'Leave a Reply to %s' ),
  33. 'cancel_reply_link' => __( 'Cancel' ),
  34. 'label_submit' => __( 'Comment' ),
  35. 'url' => __( 'URL' ),
  36. )
  37. ); ?>
  38. </div>