<?php
/**
 * Standard article template.
 *
 * @package HaPantheon
 */

get_header();
while ( have_posts() ) :
	the_post();
	?>
	<article id="post-<?php the_ID(); ?>" <?php post_class( 'article-standard' ); ?>>
		<header class="art-hero wrap">
			<span class="eyebrow"><?php echo esc_html( hapantheon_category_label() ); ?></span>
			<h1><?php the_title(); ?></h1>
			<?php hapantheon_post_meta_row(); ?>
		</header>

		<div class="wrap article-feature-wrap">
			<figure class="mframe art-frame rv">
				<img decoding="async" src="<?php echo esc_url( hapantheon_featured_image_url( get_the_ID(), 'hapantheon-hero' ) ); ?>" alt="<?php echo esc_attr( get_the_title() ); ?>">
				<?php if ( get_post_meta( get_the_ID(), '_hapantheon_archive_number', true ) ) : ?>
					<span class="tag"><?php esc_html_e( 'מגילה מס׳', 'hapantheon' ); ?> <span class="num"><?php echo esc_html( get_post_meta( get_the_ID(), '_hapantheon_archive_number', true ) ); ?></span></span>
				<?php endif; ?>
			</figure>
		</div>

		<div class="wrap art-body article-content">
			<?php the_content(); ?>
			<?php hapantheon_share_row(); ?>
			<?php hapantheon_author_box(); ?>
			<?php hapantheon_adjacent_navigation(); ?>
		</div>
	</article>
	<?php
	hapantheon_related_posts();
	hapantheon_post_newsletter();
	if ( comments_open() || get_comments_number() ) {
		comments_template();
	}
endwhile;
get_footer();
