<?php

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


function chic_lifestyle_widgets_init() {
		
	register_sidebar( array(
		'name'          => esc_html__( 'Chic Lifestyle Sidebar', 'chic-lifestyle' ),
		'id'            => 'sidebar-1',
		'description'   => '',
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h5 class="widget-title mb-8 d-inline-block ls-2">',
		'after_title'   => '</h5>',
	) );

	register_sidebar( array(
		'name'          => esc_html__( 'Newsletter', 'chic-lifestyle' ),
		'id'            => 'newsletter-sidebar',
		'description'   => '',
		'before_widget' => '<div id="%1$s" class="widget %2$s widget-newsletter spacer clearfix"><div class="container">',
		'after_widget'  => '</div></div>',
		'before_title'  => '<h4 class="widget-title mb-8 d-inline-block ls-2">',
		'after_title'   => '</h4>',
	) );

	for ($i = 1; $i < 5; $i++) {
		register_sidebar(
			array(
				'name'          => esc_html__('Footer Widget', 'chic-lifestyle') . " " . $i,
				'id'            => 'footer-' . $i . '',
				'description'   => esc_html__('Add widgets here.', 'chic-lifestyle'),
				'before_widget' => '<section id="%1$s" class="widget m-0 p-0 w-p100 %2$s">',
				'after_widget'  => '</section>',
				'before_title'  => '<h4 class="widget-title text-uppercase mb-16 pb-16 border-bottom border-secondary position-relative">',
				'after_title'   => '</h4>',
			)
		);
	}
	
}
add_action( 'widgets_init', 'chic_lifestyle_widgets_init' );


?>