<?php
/**
 * The sidebar containing the main widget area
 *
 * @link  https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package    Modern
 * @copyright  WebMan Design, Oliver Juhas
 *
 * @since    1.0.0
 * @version  2.0.0
 */





// Requirements check

	if ( ! is_active_sidebar( 'sidebar' ) ) {
		return;
	}


do_action( 'tha_sidebars_before' );

?>

<aside id="secondary" class="widget-area sidebar" aria-label="<?php echo esc_attr_x( 'Sidebar', 'Sidebar aria label', 'modern' ); ?>">

	<?php

	do_action( 'tha_sidebar_top' );

	dynamic_sidebar( 'sidebar' );

	do_action( 'tha_sidebar_bottom' );

	?>

</aside><!-- /#secondary -->

<?php

do_action( 'tha_sidebars_after' );
