<?php
/**
 * The sidebar containing the main widget area
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package NewsCastle
 */

if ( ! is_active_sidebar( 'general-sidebar' ) ) {
	return;
}
$page_layout = newscastle_get_page_layout();
if ($page_layout == 'no-sidebar') {
	return;
}
?>

<div id="secondary" class="widget-area wpi-widget-area regular-widget-area">
    <div class="site-sticky-components">
	    <?php dynamic_sidebar( 'general-sidebar' ); ?>
    </div>
</div>
