<?php
/**
 * The template for displaying Comments.
 *
 * The area of the page that contains comments and the comment form.
 *
 * @package luxuryconceptfree
 */

/*
 * If the current post is protected by a password and the visitor has not yet
 * entered the password we will return early without loading the comments.
 */
if ( post_password_required() ) {
	return;
}
?>

<div id="comments" class="wrapper_comments">
	
	<?php comment_form(); ?>

	<?php if ( have_comments() ) : ?>
		<div class="comments_head">
			<div class="comments-info">
				<span class="comments-title">
					<?php comments_number( esc_html__( 'No Responses', 'luxuryconceptfree' ), esc_html__( '1 Response', 'luxuryconceptfree' ), esc_html__( '% Responses', 'luxuryconceptfree') ); ?>
				</span> 
			</div>
			<div class="comments-space"> </div>
			<div class="comments-filter"><!--Più Vecchi/Più recenti--></div> <?php /* TO-DO: menu a discesa con ordinamento commenti piu vecchi e piu recenti (in ajax)*/ ?>
		</div>
	
		<ol class="comment-list comments">		
			<?php
			wp_list_comments( array(
				'style'       => 'ol',
				'short_ping'  => true,
				'avatar_size' => 64,
				'callback' => 'luxuryconceptfree_comments',
			) );
			?>
		</ol><!-- .comment-list -->

		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
			<nav class="navigation comment-navigation" role="navigation">
				<h1 class="screen-reader-text section-heading"><?php esc_html_e( 'Comment navigation', 'luxuryconceptfree' ); ?></h1>
				<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'luxuryconceptfree' ) ); ?></div>
				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'luxuryconceptfree' ) ); ?></div>
			</nav><!-- .comment-navigation -->
		<?php endif; // Check for comment navigation ?>

		<?php if ( ! comments_open() && get_comments_number() ) : ?>
			<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'luxuryconceptfree' ); ?></p>
		<?php endif; ?>

	<?php endif; // have_comments() ?>

	

</div><!-- #comments -->
