<?php
/**
 * Template Name: Homepage Grid
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package hasium
 */
get_header();
?>
    <?php if ( is_active_sidebar( 'featured-post-grid') ) : ?>
    <section class="slider-area">
        <div class="container">
            <div class="row">
                <?php dynamic_sidebar( 'featured-post-grid' ); ?>
            </div> <!-- row -->
        </div> <!-- container -->
    </section>
    <?php endif; ?>

    <section class="latest-posts pb-60">
        <div class="container">
            <div class="row">
                <div class="col-lg-8">
                    <?php
                    if ( is_active_sidebar( 'popular-latest-post-grid') ) {
                        dynamic_sidebar('popular-latest-post-grid');
                    }
                    ?>
                </div>
                <?php get_sidebar(); ?>
            </div> <!-- row -->
        </div> <!-- container -->
    </section>

<?php
get_footer();
?>