<?php
use Prodigy\Includes\Support\Customizer\Prodigy_Customizer;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$has_sidebar = $prodigy_shop_sidebar === Prodigy_Customizer::PRODIGY_SHOW_FILTER_BUTTON;
?>
<aside class="col-lg-3 prodigy-shop-sidebar-wrap pl-0 <?php echo $has_sidebar ? 'prodigy-shop-sidebar-wrap--none' : ''; ?>"
		id="<?php echo $has_sidebar ? 'prodigy-filter-modal-slide' : 'left-sidebar'; ?>"
		role="region"
		aria-label="<?php esc_attr_e( 'Product filters', 'prodigy-commerce' ); ?>"
		aria-hidden="">
	<div class="prodigy-shop-sidebar prodigy-shop-sidebar--lg-none prodigy-filter <?php echo $has_sidebar ? 'prodigy-shop-sidebar--lg-aside' : ''; ?>" id="filter">
		<div class="prodigy-shop-sidebar__btn-close-wrap">
			<h2 class="prodigy-filter__btn-close-title"><?php esc_html_e( 'Filters', 'prodigy-commerce' ); ?></h2>
			<button class="prodigy-shop-sidebar-btn"
					id="filter-toggle-btn-close"
					aria-label="<?php esc_attr_e( 'Close Sidebar', 'prodigy-commerce' ); ?>">
				<span class="icon icon-close" aria-hidden="true" role="presentation"></span>
			</button>
		</div>
		<?php dynamic_sidebar( 'prodigy_shop_sidebar' ); ?>
	</div>
	<div id="shop-sidebar-backdrop-js" class="prodigy-shop-sidebar-backdrop" aria-hidden="true"></div>
</aside>
