File: /home/mmickelson/martyknows.com/wp-content/themes/clean-home/comments.php
<?php
/**
* @package WordPress
* @subpackage Clean Home
*/
?>
<?php // Do not delete these lines
if ( !empty( $_SERVER['SCRIPT_FILENAME'] ) && 'comments.php' == basename( $_SERVER[ 'SCRIPT_FILENAME' ] ) )
die ( 'Please do not load this page directly. Thanks!' );
if ( post_password_required() ) { // if there's a password
?>
<p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.', 'cleanhome' ); ?></p>
<?php
return;
}
?>
<div id="comments">
<?php if ( have_comments() ) : ?>
<h3><?php comments_number( __( 'Leave a reply' ), __( 'One Comment' ), __( '% Comments' ) ); ?> on “<?php the_title(); ?>”</h3>
<div class="navigation">
<?php paginate_comments_links(); ?>
</div>
<ol class="commentlist">
<?php wp_list_comments( 'avatar_size=26' ); ?>
</ol>
<div class="navigation">
<?php paginate_comments_links(); ?>
</div>
<?php
/* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we don't want the note on pages or post types that do not support comments.
*/
elseif ( ! comments_open() && ! is_page() && '0' != get_comments_number() ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'cleanhome' ); ?></p>
<?php endif; ?>
<?php if ( 'open' == $post->comment_status ) : ?>
<hr/>
<?php comment_form(); ?>
<?php endif; ?>
</div>