<?php
/**
 * The sidebar containing the left widget areas.
 *
 * @package Ef Practical
 */
?>

<aside id="left-sidebar" class="sidebar widget-area col-md-3 order-md-1" role="complementary">
    
    <?php if ( is_active_sidebar( 'sidebar-left' ) ) : ?>
        <?php dynamic_sidebar( 'sidebar-left' ); ?>
    <?php else : ?>
        <?php
            the_widget( 'WP_Widget_Pages', 1, array(
                'before_widget'	=> '<section class="widget cf widget_pages">',
                'after_widget' 	=> '</section>',
                'before_title' 	=> '<h3 class="widget-title">',
                'after_title' 	=> '</h3>'
            ) );
            the_widget( 'WP_Widget_Categories', 'title=Categories', array(
                'before_widget'	=> '<section class="widget cf widget_categories">',
                'after_widget' 	=> '</section>',
                'before_title' 	=> '<h3 class="widget-title">',
                'after_title' 	=> '</h3>'
            ) );
        ?>
    <?php endif; ?>
    
</aside><!-- #left-sidebar -->