| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /*
- The comments page for Bones
- */
- // don't load it if you can't comment
- if ( post_password_required() ) {
- return;
- }
- ?>
- <?php // You can start editing here. ?>
- <?php if ( have_comments() ) : ?>
- <h3 id="comments-title" class="h2"><?php comments_number( __( '<span>No</span> Comments', 'bonestheme' ), __( '<span>One</span> Comment', 'bonestheme' ), __( '<span>%</span> Comments', 'bonestheme' ) );?></h3>
- <section class="commentlist">
- <?php
- wp_list_comments( array(
- 'style' => 'div',
- 'short_ping' => true,
- 'avatar_size' => 40,
- 'callback' => 'bones_comments',
- 'type' => 'all',
- 'reply_text' => __('Reply', 'bonestheme'),
- 'page' => '',
- 'per_page' => '',
- 'reverse_top_level' => null,
- 'reverse_children' => ''
- ) );
- ?>
- </section>
- <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
- <nav class="navigation comment-navigation" role="navigation">
- <div class="comment-nav-prev"><?php previous_comments_link( __( '← Previous Comments', 'bonestheme' ) ); ?></div>
- <div class="comment-nav-next"><?php next_comments_link( __( 'More Comments →', 'bonestheme' ) ); ?></div>
- </nav>
- <?php endif; ?>
- <?php if ( ! comments_open() ) : ?>
- <p class="no-comments"><?php _e( 'Comments are closed.' , 'bonestheme' ); ?></p>
- <?php endif; ?>
- <?php endif; ?>
- <?php comment_form(); ?>
|