<?php
/**
 * The Shop sidebar
 *
 * @package shrk
 */
?>
<?php if ( shrk_show_sidebar() ) : ?>
	</div><!-- close .main-content-inner -->
	
	<div class="shop-sidebar sidebar col-12 col-lg-3">

		<div class="sidebar-padder">

			<?php do_action( 'before_sidebar' ); ?>
			<?php if ( is_active_sidebar( 'sidebar-products' ) ) : ?>
			
				<?php dynamic_sidebar( 'sidebar-products' ); ?>
			
			<?php else: ?>
			
				<aside id="search" class="widget widget_search">
					<?php get_search_form(); ?>
				</aside>
	
				<aside id="archives" class="widget widget_archive">
					<h3 class="widget-title"><?php esc_html_e( 'Archives', 'ux-shop' ); ?></h3>
					<ul>
						<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
					</ul>
				</aside>
	
				<aside id="meta" class="widget widget_meta"> 
					<h3 class="widget-title"><?php esc_html_e( 'Meta', 'ux-shop' ); ?></h3>
					<ul>
						<?php wp_register(); ?>
						<li><?php wp_loginout(); ?></li>
						<?php wp_meta(); ?>
					</ul>
				</aside>
	
			<?php endif; ?>
			
		</div><!-- close .sidebar-padder -->
<?php endif; ?>