<?php
/**
 * Template part for displaying posts on the single post page.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Blogbuster
 */

$custom_post_class = ! has_post_thumbnail() ? 'no-thumbnail' : '';

?>

<article id="post-<?php the_ID(); ?>" <?php post_class( $custom_post_class ); ?>>
	
<div class="single-post-wrap">

	<div class="post-thumbnail-wrap">
        <?php blogbuster_post_thumbnail( 'full' ); ?>
    </div>

	<div class="single-post-title-meta-wrap">
		<div class="post-cats-wrap">
			<?php blogbuster_the_post_categories_list( get_the_ID(), 3 ); ?>
		</div><!-- .post-cats-wrap -->

		<header class="entry-header">
			<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
		</header><!-- .entry-header -->
		
		<div class="entry-meta">
			<?php
				blogbuster_posted_on();
				blogbuster_posted_by();
				blogbuster_single_entry_footer(); 
			?>
		</div>
	</div><!-- single-post-title-meta-wrap -->

</div> <!-- single-post-wrap  -->

<div class="mt-post-content-wrap">
	<div class="entry-content">
		<?php
		the_content(
			sprintf(
				wp_kses(
					/* translators: %s: Name of current post. Only visible to screen readers */
					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'blogbuster' ),
					array(
						'span' => array(
							'class' => array(),
						),
					)
				),
				wp_kses_post( get_the_title() )
			)
		);

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

</div><!-- .mt-post-content-wrap -->

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