1234567891011121314151617181920212223242526272829303132333435 |
- <div id="comments" class="comments-area">
- <?php if ( post_password_required() ) : ?>
- <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', '_ph' ); ?></p>
- </div>
- <?php return; endif; ?>
- <?php if ( have_comments() ) : ?>
- <h2 class="comments-title">
- <?php
- printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), '_ph' ),
- number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
- ?>
- </h2>
- <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
- <nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation">
- <h1 class="assistive-text"><?php _e( 'Comment navigation', '_ph' ); ?></h1>
- <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '_ph' ) ); ?></div>
- <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '_ph' ) ); ?></div>
- </nav>
- <?php endif;?>
- <ol class="commentlist">
- <?php wp_list_comments( array( 'callback' => '_s_comment' ) ); ?>
- </ol>
- <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
- <nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
- <h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
- <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '_ph' ) ); ?></div>
- <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '_ph' ) ); ?></div>
- </nav>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
- <p class="nocomments"><?php _e( 'Comments are closed.', '_ph' ); ?></p>
- <?php endif; ?>
- <?php comment_form(); ?>
- </div>
|