<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package Blogbuster
 */
$custom_post_class = ! has_post_thumbnail() ? 'no-thumbnail' : '';

$blogbuster_archive_page_style = blogbuster_get_customizer_option_value( 'blogbuster_archive_page_style' );

if ( 'archive-style--classic' === $blogbuster_archive_page_style ) {
	$thumb_size = 'full';
} else {
	$thumb_size = 'medium';
}


get_header();

/**
 * hook - blogbuster_before_page_post_content
 *
 * @since 1.0.0
 */
do_action( 'blogbuster_before_page_post_content' );

?>
<div class="single-post page-content-wrapper">

		<?php get_sidebar( 'left' ); ?>

		<main id="primary" class="site-main">
			
		<?php
			/**
			 * hook - blogbuster_before_single_post_loop_content
			 *
			 * @since 1.0.0
			 */
			do_action( 'blogbuster_before_single_post_loop_content' );

			while ( have_posts() ) :
				the_post();

				get_template_part( 'template-parts/content', 'single' );

			endwhile; // End of the loop.

			get_template_part( 'template-parts/partials/post/post', 'navigation' );

			// If comments are open or we have at least one comment, load up the comment template.
			if ( comments_open() || get_comments_number() ) :
				comments_template();
			endif;

			/**
			 * hook - blogbuster_after_single_post_loop_content
			 *
			 * @hooked - blogbuster_post_author_box -10
			 * @hooked - blogbuster_related_posts_section - 20
			 * 
			 * @since 1.0.0
			 */
			do_action( 'blogbuster_after_single_post_loop_content' );
		?>
		
		</main><!-- #main -->
		
		<?php get_sidebar();?>


</div><!-- .page-content-wrapper -->

<?php
	/**
	 * hook - blogbuster_after_page_post_content
	 *
	 * @since 1.0.0
	 */
	do_action( 'blogbuster_after_page_post_content' );

	get_footer();