<?php
    /**
    * archive.php
    * The main post loop in ALASKA
    * @author Vulinhpc
    * @package ALASKA
    * @since 1.0.0
    */
    get_header();
    global $ts_alaska;
?>
    <section id="banner" class="banner">
        <div class="banner parallax-section">
            <div class="overlay"></div>
            <div class="banner-content text-center">
                <h1><?php printf( esc_html__( 'Archives: %s', 'themestudio' ), single_cat_title( '', false ) ); ?></h1>
                <div class="breadcrumbs"><?php ts_breadcrumbs(); ?></div>
            </div>
        </div>
    </section>
    <!-- Main content -->
    <div id="main-content">
        <div class="container">
                <div class="row">
                    <?php
                        if ($ts_alaska['ts-blog-sidebar-position']==3) {
                            $col_md = 12;
                            $col_sm = 12;
                            $col_lg = 12;
                        } else {
                            $col_md = 9;
                            $col_sm = 12;
                            $col_lg = 9;
                        }
                    ?>
                    <!-- Start left sidebar -->
                    <?php if ($ts_alaska['ts-blog-sidebar-position']==1): ?>
                         <aside id="sidebar-right" class="sidebar-right  col-sm-12 col-md-3 col-xs-12">
                            <?php get_sidebar()?>
                        </aside>
                    <?php endif ?>
                    <!-- End left sidebar -->

                    <!-- Start Loop Posts -->
                        <div class="col-md-<?php echo esc_attr($col_md); ?> col-lg-<?php echo esc_attr($col_lg); ?> col-sm-<?php echo esc_attr($col_sm); ?>">
                            <?php get_template_part('loop/loop-blog','list'); ?>
                            <?php echo function_exists('ts_pagination') ? ts_pagination() : posts_nav_link(); ?>
                        </div>
                    <!-- End Loop Posts -->

                    <!-- Start right sidebar -->
                    <?php if ($ts_alaska['ts-blog-sidebar-position']==2): ?>
                        <aside id="sidebar-right" class="sidebar-right  col-sm-12 col-md-3 col-xs-12">
                            <?php get_sidebar()?>
                        </aside>
                    <?php endif ?>
                    <!-- End right sidebar -->

                </div>
        </div>
    </div>
    <!-- End / Main content -->

<?php get_footer();