<?php
	/**
	 * The sidebar containing the main widget area.
	 *
	 * @link    https://developer.wordpress.org/themes/basics/template-files/#template-partials
	 *
	 * @package Transit
	 */
	$sidebar_position = get_theme_mod( 'sidebar_position' );

	if ( 'fullwidth' === $sidebar_position ) {
		return;
	}

	if ( !is_active_sidebar( 'sidebar' ) ) {
		return;
	} ?>

<?php do_action( 'transit_render_widget_area', 'sidebar' ); ?>
