<?php get_header();
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'archive' ) ):?>
<?php $description = get_the_archive_description();
$columns = get_option(TEXT_DOMAIN . '_portfolio_category_columns','col-lg-3');
?>
    <main>
        <div class="custom-container my-4">

            <!-- page head -->
            <div class="single-page-head" style="background-image: url(<?php echo get_option(TEXT_DOMAIN . '_portfolio_category_head_image');?>) ">
                <div class="single-page-head-content">
                    <h1 class="single-title"><?php the_archive_title(); ?></h1>
                    <!-- breadcrumb -->
                    <?php banta_breadcrumb(); ?>
                </div>
            </div>


            <!-- post item large -->
            <div class="row">
                <?php if (have_posts()): ?><?php while (have_posts()): the_post(); ?>
                    <div class="<?php echo $columns?> col-sm-6 mb-4">
                        <?php include(TEMPLATEPATH."/inc/loop/portfolio-item.php");?>
                    </div>
                <?php endwhile; ?>
                <?php endif; ?>
            </div>


            <div class="mt-5 mb-5">
                <!-- pagination -->
                <div class="bcp-pagination">
                    <?php banta_posts_navigation();?>
                </div>

                <!-- description -->
                <?php if ($description) : ?>
                    <div class="html-content"><?php echo wp_kses_post(wpautop($description)); ?></div>
                <?php endif; ?>
            </div>

        </div>
    </main>
<?php endif; get_footer();?>