<?php
if ( post_password_required() ) { ?>
	<p><?php echo _e( 'This post is password protected. Enter the password to view comments.', THEMEDOMAIN ); ?></p>
<?php
	return;
}

if( have_comments() ) : ?> 
					
	<h5><?php comments_number('No comment', 'Comment', '% Comments'); ?></h5><br/>

	<div class="comment_wrapper">
	    <?php wp_list_comments( array('callback' => 'pp_comment', 'avatar_size' => '40') ); ?>
	</div>
	    
	<!-- End of thread -->  
	<br class="clear"/><br/>
	
<?php endif; ?>  


<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
	
	<div class="pagination"><p><?php previous_comments_link(); ?> <?php next_comments_link(); ?></p></div><br class="clear"/><div class="line"></div><br/><br/>
<?php endif; // check for comment navigation ?>


<?php if ('open' == $post->comment_status) : ?> 

	<div id="respond">
		<?php comment_form(); ?>
	</div>
			
<?php endif; ?> 