<?php
/**
 * Template part for displaying the post meta inside The Loop.
 *
 * @package Primer
 * @since   1.0.0
 */

?>

<div class="entry-meta">

	<?php if ( is_new_day() ) : ?>

		<span class="posted-date"><?php the_date(); ?></span>

	<?php endif; ?>

	<span class="posted-author"><?php the_author_posts_link(); ?></span>

	<?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>

		<span class="comments-number">

			<?php comments_popup_link( esc_html__( 'Leave a comment', 'primer' ), esc_html__( '1 Comment', 'primer' ), /* translators: number of comments */ esc_html__( '%d Comments', 'primer' ), 'comments-link' ); ?>

		</span>

	<?php endif; ?>

</div><!-- .entry-meta -->
