<?php
/**
 * The Sidebar containing the main widget areas.
 *
 * @package Groceem Pro
 */
?>
<div id="sidebar" <?php if( is_page_template('template-parts/blog-post-left-sidebar.php')){?> style="float:left;"<?php } ?>>
    
    <?php if ( ! dynamic_sidebar( 'sidebar-main' ) ) : ?>       
       <aside id="categories" class="widget">
       <h3 class="widget-title"><?php _e( 'Category', 'groceem-pro' ); ?></h3>
            <ul>
                <?php wp_list_categories('title_li=');  ?>
            </ul>
        </aside>
        
       
        <aside id="archives" class="widget">
        <h3 class="widget-title"><?php _e( 'Archives', 'groceem-pro' ); ?></h3>
            <ul>
                <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
            </ul>
        </aside>    
    <?php endif; // end sidebar widget area ?>
	
</div><!-- sidebar -->