<?php

if (!function_exists('urbamag_loadwidgets')) {

	function urbamag_loadwidgets() {

/*-----------------------------------------------------------------------------------*/
/* 		LOAD ALL SIDEBAR AREAS
/*-----------------------------------------------------------------------------------*/    

		register_sidebar(array(
		
			'name' => esc_html__('Homepage above posts widget area','urbamag'),
			'id'   => 'urbamag-above-posts-homepage-widget-area',
			'description'   => esc_html__('This widget area will be shown above the posts list on homepage.', 'urbamag'),
			'before_widget' => '<div id="%1$s" class="post-article above-posts-homepage-widget  %2$s">',
			'after_widget'  => '</div>',
			'before_title'  => '<h4 class="title">',
			'after_title'   => '</h4>'
		
		));

		register_sidebar(array(
		
			'name' => esc_html__('Homepage below posts widget area','urbamag'),
			'id'   => 'urbamag-below-posts-homepage-widget-area',
			'description'   => esc_html__('This widget area will be shown below the posts list on homepage.', 'urbamag'),
			'before_widget' => '<div id="%1$s" class="post-article below-posts-homepage-widget  %2$s">',
			'after_widget'  => '</div>',
			'before_title'  => '<h4 class="title">',
			'after_title'   => '</h4>'
		
		));

		register_sidebar(array(
		
			'name' => esc_html__('Side widget area','urbamag'),
			'id'   => 'urbamag-side-widget-area',
			'description'   => esc_html__('This widget area will be shown after the content.', 'urbamag'),
			'before_widget' => '<div id="%1$s" class="post-article  %2$s">',
			'after_widget'  => '</div>',
			'before_title'  => '<h4 class="title">',
			'after_title'   => '</h4>'
		
		));

		register_sidebar(array(
		
			'name' => esc_html__('Scroll widget area','urbamag'),
			'id'   => 'urbamag-scroll-widget-area',
			'description'   => esc_html__('This widget area will be shown inside the scrollable sidebar.', 'urbamag'),
			'before_widget' => '<div id="%1$s" class="post-article  %2$s">',
			'after_widget'  => '</div>',
			'before_title'  => '<div class="title-container"><h3 class="title">',
			'after_title'   => '</h3></div>'

		));

		register_sidebar(array(

			'name' => esc_html__('Header widget area','urbamag'),
			'id'   => 'urbamag-header-widget-area',
			'description'   => esc_html__('This widget area will be shown before the content.', 'urbamag'),
			'before_widget' => '<div id="%1$s" class="post-container %2$s"><article class="post-article">',
			'after_widget'  => '</article></div>',
			'before_title'  => '<h4 class="title">',
			'after_title'   => '</h4>'
		
		));

		register_sidebar(array(

			'name' => esc_html__('Bottom widget area','urbamag'),
			'id'   => 'urbamag-bottom-widget-area',
			'description'   => esc_html__('This widget area will be shown at the bottom of your content', 'urbamag'),
			'before_widget' => '<div id="%1$s" class="post-container %2$s"><article class="post-article">',
			'after_widget'  => '</article></div>',
			'before_title'  => '<h4 class="title">',
			'after_title'   => '</h4>'
		
		));
	
		register_sidebar(array(

			'name' => esc_html__('Footer widget area','urbamag'),
			'id'   => 'urbamag-footer-widget-area',
			'description'   => esc_html__('This widget area will be shown after the content.', 'urbamag'),
			'before_widget' => '<div id="%1$s" class="col-md-3 %2$s"><div class="widget-box">',
			'after_widget'  => '</div></div>',
			'before_title'  => '<h4 class="title">',
			'after_title'   => '</h4>'
		
		));

	}

	add_action( 'widgets_init', 'urbamag_loadwidgets' );

}

?>