<?php 
    }
    ?>

		<?php 
    if (!comments_open() && get_comments_number()) {
        ?>
		<p class="no-comments"><?php 
        _e('Comments are closed.', 'flat');
        ?>
</p>
		<?php 
    }
    ?>

	<?php 
}
?>

	<?php 
comment_form(array('format' => 'html5'));
?>

	<?php 
flat_hook_comments_bottom();
?>

</div>

<?php 
flat_hook_comments_after();
Example #2
0
				wp_list_comments( array(
					'style'       => 'ol',
					'format'      => 'html5',
					'short_ping'  => true,
					'avatar_size' => 80,
				) );
			?>
		</ol>

		<?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 _e( 'Comment navigation', 'flat' ); ?></h1>
			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'flat' ) ); ?></div>
			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'flat' ) ); ?></div>
		</nav>
		<?php endif; ?>

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

	<?php endif; ?>

	<?php comment_form( array( 'format' => 'html5' ) ); ?>

	<?php flat_hook_comments_bottom(); ?>

</div>

<?php flat_hook_comments_after(); ?>