<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package Portfolio_One
 */
$default  = portfolio_one_customizer_defaults();
$portfolio_one_inner_single_sidebar = get_theme_mod( 'portfolio_one_inner_single_sidebar', $default['portfolio_one_inner_single_sidebar'] );

get_header();

wp_print_styles( array( 'portfolio-one-single-blog' ) );
?>
<div class="cww-single-container <?php echo esc_attr($portfolio_one_inner_single_sidebar);?> container">
	<div id="primary" class="content-area container-wide">
			<main id="main" class="site-main">
			<div class="container inner-container">

				<?php
				while ( have_posts() ) :
					the_post();

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

					the_post_navigation(
						array(
							'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'portfolio-one' ) . '</span> <span class="nav-title">%title</span>',
							'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'portfolio-one' ) . '</span> <span class="nav-title">%title</span>',
						)
					);

					// 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;

				endwhile; // End of the loop.
				?>
			</div>
			</main><!-- #main -->
		
	</div>

	<?php get_sidebar(); ?>
</div>
<?php
get_footer();
