<?php	
/**
 * The sidebar containing the main widget area.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package glides_
 */

/**
 * Register widget area.
 *
 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
 */

function glides_widgets_init() {	
	register_sidebar( array(
		'name' => __( 'Sidebar Widget Area', 'glides' ),
		'id' => 'glides-sidebar-primary',
		'description' => __( 'The Primary Widget Area', 'glides' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => '</aside>',
		'before_title' => '<h5 class="widget-title"><span></span>',
		'after_title' => '</h5>',
	) );	
	 
	register_sidebar( array(
		'name' => __( 'Footer 1', 'glides' ),
		'id' => 'glides-footer-layout-first',
		'description' => __( 'The Footer Layout Left', 'glides' ),
		'before_widget' => ' <div id="%1$s" class="%2$s col-lg-3 col-md-6"><div class="footer-item">',
		'after_widget' => '</div></div>',
		'before_title' => '<h5 class="widget-title">',
		'after_title' => '</h5>',
	) );
	
	register_sidebar( array(
		'name' => __( 'WooCommerce Widget Area', 'glides' ),
		'id' => 'glides-woocommerce-sidebar',
		'description' => __( 'This Widget area for WooCommerce Widget', 'glides' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => '</aside>',
		'before_title' => '<h5 class="widget-title">',
		'after_title' => '</h5>',
	) );
}
add_action( 'widgets_init', 'glides_widgets_init' );
?>