<?php
if ( post_password_required() ) {
	return;
}?>

<div id="comments" class="comments-area"><?php
	if ( have_comments() ) : ?>

	    <h3><?php comments_number(esc_html__('No Comments','logtik'), esc_html__('Comments ( 1 )','logtik'), esc_html__('Comments ( % )','logtik') );?></h3>

		<?php the_comments_navigation(); ?>

        <ul class="commentlist">
     		<?php wp_list_comments( array( 'avatar_size' => 50 ) ); ?>
        </ul>

        <?php the_comments_navigation();

    endif;

	if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
        <p class="nocomments"><?php esc_html_e( 'Comments are closed.','logtik'); ?></p><?php
	endif;
	
	$args = array ();
	if( cs_get_option('privacy-commentform') != "true" ) {
		$args = array (
			'title_reply' => esc_html__( 'Leave a Comment', 'logtik' )
		);
	}

	comment_form($args); ?></div><!-- .comments-area -->