<?php
	$sidebar = mts_custom_sidebar();
    if ( $sidebar != 'mts_nosidebar' ) {
?>
<aside id="sidebar" class="sidebar c-4-12 <?php if( is_home() ) { echo "sidebar-right"; } ?>" role="complementary" itemscope itemtype="http://schema.org/WPSideBar">
	<?php if (!dynamic_sidebar($sidebar)) : ?>
		<div id="sidebar-search" class="widget">
			<h3 class="widget-title"><?php _e('Cauta', 'mythemeshop'); ?></h3>
			<?php get_search_form(); ?>
		</div>
		<div id="sidebar-archives" class="widget">
			<h3 class="widget-title"><?php _e('Istoric Articole', 'mythemeshop') ?></h3>
			<ul>
				<?php wp_get_archives( 'type=monthly' ); ?>
			</ul>
		</div>
		
	<?php endif; ?>
</aside><!--#sidebar-->
<?php } ?>