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

function leatherhouse_widgets_init() {
	register_sidebar(
		array(
			'name'          => __( 'Sidebar Widget Area', 'leather-house' ),
			'id'            => 'leatherhouse-sidebar-primary',
			'description'   => __( 'The Primary Widget Area', 'leather-house' ),
			'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', 'leather-house' ),
			'id'            => 'leatherhouse-footer-1',
			'description'   => __( 'The Footer Widget Area 1', 'leather-house' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h4 class="widget-title">',
			'after_title'   => '</h4>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Footer 2', 'leather-house' ),
			'id'            => 'leatherhouse-footer-2',
			'description'   => __( 'The Footer Widget Area 2', 'leather-house' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h4 class="widget-title">',
			'after_title'   => '</h4>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Footer 3', 'leather-house' ),
			'id'            => 'leatherhouse-footer-3',
			'description'   => __( 'The Footer Widget Area 3', 'leather-house' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h4 class="widget-title">',
			'after_title'   => '</h4>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Footer 4', 'leather-house' ),
			'id'            => 'leatherhouse-footer-4',
			'description'   => __( 'The Footer Widget Area 4', 'leather-house' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h4 class="widget-title">',
			'after_title'   => '</h4>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'WooCommerce Widget Area', 'leather-house' ),
			'id'            => 'leatherhouse-woocommerce-sidebar',
			'description'   => __( 'This Widget area for WooCommerce Widget', 'leather-house' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h5 class="widget-title">',
			'after_title'   => '</h5>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Info Widget Area', 'leather-house' ),
			'id'            => 'leatherhouse-info-sidebar',
			'description'   => __( 'This Widget area for Info', 'leather-house' ),
			'before_widget' => '',
			'after_widget'  => '',
			'before_title'  => '',
			'after_title'   => '',
		)
	);
}
add_action( 'widgets_init', 'leatherhouse_widgets_init' );

