<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package starter-blog
 */

get_header(); ?>
	<div class="content-inner">
		<?php
		do_action( 'starterblog/content/before' );
		if ( ! starterblog_is_e_theme_location( 'single' ) ) {
			while ( have_posts() ) :
				$post_type = get_post_type();
				if ( has_action( "starterblog_single_{$post_type}_content" ) ) {
					do_action( "starterblog_single_{$post_type}_content" );
				} else {
					starterblog_single_post();
				}
			endwhile; // End of the loop.
		}
		do_action( 'starterblog/content/after' );
		?>
	</div><!-- #.content-inner -->
<?php
get_footer();
