File: /home/mmickelson/testsite.loveandlaughterpreschool.com/wp-content/themes/duster/comments.php
<?php
/**
* @package Duster
*/
if ( post_password_required() )
return;
?>
<div id="comments">
<?php if ( have_comments() ) : ?>
<h2 id="comments-title">
<?php
printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'duster' ),
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 id="comment-nav-above">
<h1 class="section-heading"><?php _e( 'Comment navigation', 'duster' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'duster' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'duster' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>
<ol class="commentlist">
<?php wp_list_comments( array( 'callback' => 'duster_comment' ) ); ?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below">
<h1 class="section-heading"><?php _e( 'Comment navigation', 'duster' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'duster' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'duster' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>
<?php endif; ?>
<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'duster' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- #comments -->