File "comments.php"

Full Path: /home/arielcor/public_html/wp-content/themes/pisces/comments.php
File size: 1.38 KB
MIME-type: text/x-php
Charset: utf-8

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

?>

<div id="comments" class="comments-area clearfix">
	<div class="comments-container">
		<?php if ( have_comments() ) : ?>
			<div class="comments-title">
				<?php
					$number = get_comments_number();
				?>
				<h3><?php
					if($number > 1){
						echo esc_html_x('Comments', 'front-view','pisces');
					}else{
						echo esc_html_x('Comment', 'front-view', 'pisces');
					}
				?> (<?php echo get_comments_number();?>)</h3>
			</div>
			<ul class="commentlist">
				<?php
				wp_list_comments( array(
					'callback' => 'pisces_comment_form_callback',
					'style'      => 'ul',
					'avatar_size'=> 70,
				) );
				?>
			</ul><!-- .comment-list -->
			<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
				echo '<div class="pagination">';
				paginate_comments_links( array(
						'prev_text' => '&larr;',
						'next_text' => '&rarr;',
						'type'      => 'list'
				));
				echo '</div>';
			endif; ?>
		<?php else:?>
			<p class="woocommerce-noreviews"><?php echo esc_html_x( 'There are no comments', 'front-view', 'pisces' ); ?></p>
		<?php endif;?>
	</div>
	<?php
	if ( comments_open() ){
		comment_form(array(
			'class_submit'	=> 'btn'
		));
	}else{
		echo '<div class="clearfix"></div><p class="no-comments">'. esc_html_x( 'Comments are closed.', 'front-view', 'pisces' ) .'</p>';
	}?>

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