<?php
$right_sidebar_for_blog = apply_filters('kopa_light_get_sidebar', 'right_sidebar_for_blog', 'position_1');

if ( is_active_sidebar($right_sidebar_for_blog) ){
    $col_class = 'col-lg-8 col-md-8 col-sm-12 col-xs-12';
}else{
    $col_class = 'col-lg-12 col-md-12 col-sm-12 col-xs-12';
}
?>

<div class="container">
    <?php karo_light_breadcrumb(); ?>
    <!-- breadcrumb -->

    <div class="row">

        <div class="<?php echo esc_attr( $col_class ); ?>">
            <?php karo_light_slider(); ?>
            <div id="main-content">
                <?php get_template_part( 'templates/loop/loop', 'blog-1' ); ?>
            </div>
            <!-- main content -->
        </div>

        <?php if ( is_active_sidebar($right_sidebar_for_blog) ) : ?>
        <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
                <div id="sidebar" class="widget-area-26">
                    <?php dynamic_sidebar($right_sidebar_for_blog);?>
                </div>
            <!-- widget-area-26 -->
        </div>
        <?php endif; ?>
    </div>
</div>
<!-- container -->