<?php

/**
 * Template part for displaying single posts
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Viralike
 * @subpackage template-parts
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

	<header class="entry-header">
		<div class="container container--single">
			<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
			<!-- .entry-title -->
			<div class="entry-author-meta">
				<?php echo '<time>' . esc_html(get_the_date()) . '</time>'; ?>
				<span><?php esc_html_e('Author: ', 'viralike'); ?></span>
				<?php the_author_posts_link(); ?>
			</div><!-- .entry-author-meta -->
		</div>
	</header><!-- .entry-header -->

	<div class="container container--single">
		<div class="entry-body">

			<?php if (has_post_thumbnail()) : ?>
				<div class="entry-media" aria-hidden="true" tabindex="-1">
					<?php the_post_thumbnail('full', ['class' => 'really-single-thumb']); ?>
				</div>
			<?php endif; ?>
			<!-- .entry-media -->

			<div class="entry-content">
				<?php
				the_content();

				wp_link_pages([
					'before' => '<div class="page-links">' . esc_html__('Pages:', 'viralike'),
					'after'  => '</div>',
				]);
				?>
			</div><!-- .entry-content -->

			<div class="entry-meta">

				<div class="entry-category-content">
					<span><?php esc_html_e('Categories:', 'viralike'); ?></span>
					<?php the_category(' '); ?>
				</div><!-- .entry-category-content -->

				<?php if (has_tag()) : ?>
					<div class="entry-tags-content">
						<?php the_tags('Tags: ', ' '); ?>
					</div>
				<?php endif; ?>
				<!-- .entry-tags-content -->

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

		</div><!-- .entry-body -->
	</div><!-- .container--single -->

</article><!-- #post-<?php the_ID(); ?> -->
