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

$sidebar = stygian_get_sidebar_id();

if ( '' === $sidebar || ! is_active_sidebar( $sidebar ) ) {
    return;
}

?>

<div id="secondary" class="widget-area sidebar">
    <div class="sidebar-inner">
	<?php dynamic_sidebar( $sidebar ); ?>
</div> 
 <!-- .sidebar -->
</div><!-- #secondary -->
