<?php
/**
 * Homepage Main Widget Area
 *
 * @package NewsNation
 */

if (!function_exists('newsnation_case_home_widget_area_block')):

    function newsnation_case_home_widget_area_block($newsnation_home_section, $repeat_times)
    {
        ?>
        <?php if (is_active_sidebar('front-page-widget-area-1')) { ?>
        <div id="theme-block-<?php echo esc_attr($repeat_times); ?>" class="theme-block theme-widgetarea-full theme-widgetarea-primary">
            <div class="wrapper">
                <?php if (is_active_sidebar('front-page-widget-area-1')) { ?>
                    <?php dynamic_sidebar('front-page-widget-area-1'); ?>
                <?php } ?>
            </div>
        </div>
    <?php } ?>
        <?php
    }

endif;