<?php 

if ( have_comments() && post_password_required() == false ) : 

	echo comments_number( 
		'<h3 class="comments">' . esc_html__( 'No comments','daily-diary') . '</h3>', 
		'<h3 class="comments">1 ' . esc_html__( 'comment','daily-diary') . '</h3>', 
		'<h3 class="comments">% ' . esc_html__( 'comments','daily-diary') . '</h3>' 
	); 
	
?>

	<div id="comments">
	
    	<ul class="commentlist">
	
    		<?php wp_list_comments('type=comment&callback=daily_diary_comments'); ?>
	
    	</ul>
	
    </div>

<?php 

	endif;
	
	if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>

		<div class="wp-pagenavi">
        
			<div class="alignleft"><?php previous_comments_link(esc_html__('&laquo;','daily-diary')) ?></div>
			<div class="alignright"><?php next_comments_link(esc_html__('&raquo;','daily-diary')) ?></div>
		
        </div> 

<?php 

	endif;

?>

<div class="clear"></div>

<div class="contact-form">

	<?php comment_form(); ?>
    <div class="clear"></div>

</div>