<?php
/**
 * Template part for displaying posts.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Blorigan
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="entry-wrapper">
		<?php
		/**
		 * Hook - blorigan_archive_image.
		 *
		 * @hooked blorigan_add_image_in_archive_display - 10
		 */
		do_action( 'blorigan_archive_image' );
		?>

		<div class="entry-content-wrapper">
			<header class="entry-header">
				<?php if ( 'post' === get_post_type() ) : ?>
					<?php blorigan_post_categories(); ?>
				<?php endif; ?>
				<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
				<?php if ( 'post' === get_post_type() ) : ?>
					<div class="entry-meta">
						<?php blorigan_posted_on(); ?>
					</div>
				<?php endif; ?>
			</header><!-- .entry-header -->

			<div class="entry-content">
				<?php the_excerpt(); ?>
				<?php blorigan_read_more(); ?>
			</div><!-- .entry-content -->

			<footer class="entry-footer">
				<?php blorigan_entry_footer(); ?>
			</footer><!-- .entry-footer -->
		</div><!-- .entry-content-wrapper -->
	</div><!-- .entry-wrapper -->
</article><!-- #post-## -->
