<?php
$blog_single_layout       = apply_filters( 'school_time_filter_single_is_boxed', school_time_get_option( 'blog-single-layout', 'default' ) );
$blog_single_is_boxed     = $blog_single_layout == 'boxed' || $blog_single_layout == 'boxed-fullwidth';

$blog_single_is_fullwidth = $blog_single_layout == 'fullwidth' 
								|| $blog_single_layout == 'boxed-fullwidth'
								|| ! is_active_sidebar( 'wheels-sidebar-primary' );

$content_class = $blog_single_is_fullwidth ? 'content_fullwidht' : 'content';
$boxed         = $blog_single_is_boxed ? 'boxed' : null;

get_header( $boxed );
?>
<?php get_template_part('templates/title'); ?>
<div class="<?php echo esc_attr( school_time_class('main-wrapper') ) ?>">
	<div class="<?php echo esc_attr( school_time_class('container') ) ?>">
		<?php if ( school_time_get_option( 'single-post-sidebar-left', false ) ): ?>
			<div class="<?php echo esc_attr( school_time_class( 'sidebar' ) ) ?>">
				<?php get_sidebar(); ?>
			</div>
			<div class="<?php echo esc_attr( school_time_class( $content_class ) ) ?>">
				<?php get_template_part( 'templates/content-single-course' ); ?>
			</div>
		<?php else: ?>
			<div class="<?php echo esc_attr( school_time_class( $content_class ) ) ?>">
				<?php get_template_part( 'templates/content-single-course' ); ?>
			</div>
			<div class="<?php echo esc_attr( school_time_class( 'sidebar' ) ) ?>">
				<?php get_sidebar(); ?>
			</div>
		<?php endif; ?>
	</div>
</div>
<?php get_footer( $boxed ); ?>
