<?php
/**
 * The template for displaying post meta (post date, post author and post comments)
 *
 * @package ClubFitness
 */

?>
<?php if ( 'post' === get_post_type() ) : ?>
<div class="post-meta w-100 position-relative mb-4 d-table">
	<div class="post-date float-start me-3">
		<i class="far fa-clock me-1"></i> <?php echo esc_attr( the_time( get_option( 'date_format' ) ) ); ?>
	</div>
	<div class="post-author float-start me-3">
		<?php // translators: %s containing the name of the author. ?>
		<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php sprintf( esc_attr__( 'View all posts by %s', 'clubfitness' ), get_the_author() ); ?>"><i class="far fa-user me-1"></i> <?php echo get_the_author(); ?></a>
	</div>
	<?php if ( post_password_required() !== true ) : ?>
	<div class="post-comments float-start">
		<i class="far fa-comment me-1"></i> <?php comments_number( __( '0 Comments', 'clubfitness' ), __( '1 Comment', 'clubfitness' ), __( '% Comments', 'clubfitness' ) ); ?>
	</div>
	<?php endif; ?>
</div>
<?php endif; ?>
