<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

// setPostViews(get_the_ID());

// enable social share
$enable_lifter_single_social  = get_theme_mod('edumodo_single_lifter_course_social_trigger','on');
// enable related course
$enable_lifter_single_related_courses   = get_theme_mod('edumodo_single_lifter_course_related_course_trigger','on');
// enable post tags
$enable_lifter_single_post_tags  = get_theme_mod('edumodo_single_lifter_course_post_tags_trigger','on');
// sidebar value from customizer
$edumodo_lifter_course_layout  = get_theme_mod('edumodo_lifter_course_layout','right-sidebar');
// fullwidth layout style
$edumodo_lifter_single_course_full_width_layout  = get_theme_mod('edumodo_lifter_single_course_full_width_layout','1');

?>

<div class="container">
    <div class="row">
		<?php if('left-sidebar' == $edumodo_lifter_course_layout): ?>
			<div class="col-md-4 lifer-sidebar-wrapper">
				<?php dynamic_sidebar('llms_course_widgets_side'); ?>
			</div>
		<?php endif; ?>
		<div class="col-md-<?php echo 'no-sidebar'  == $edumodo_lifter_course_layout ? '12' : '8'; ?> content-wrapper">
			<?php if( 'no-sidebar' == $edumodo_lifter_course_layout ): ?>
				<?php get_template_part( 'template-parts/lifter/single/style', "{$edumodo_lifter_single_course_full_width_layout}" ); ?>
			<?php else: ?>
				<?php get_template_part( 'template-parts/lifter/single/style', '1' ); ?>
			<?php endif; ?>
		</div>
		<?php if('right-sidebar' == $edumodo_lifter_course_layout): ?>
			<div class="col-md-4 lifer-sidebar-wrapper">
				<?php dynamic_sidebar('llms_course_widgets_side'); ?>
			</div>
		<?php endif; ?>
	</div><!-- .row -->
</div><!-- .container -->


