comments.php 1.4 KB

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