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

function news25_widgets_init() {
	register_sidebar( array(
		'name' => __( 'Header Widget Area Left', 'news-25' ),
		'id' => 'news25-header-above-left',
		'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' => __( 'Sidebar Widget Area', 'news-25' ),
		'id' => 'news25-sidebar-primary',
		'description' => __( 'The Primary Widget Area', 'news-25' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => '</aside>',
		'before_title' => '<h5 class="widget-title">',
		'after_title' => '</h5>',
	) );
	
	for ($i=1; $i<=4; $i++) {
			register_sidebar( array(
				'name' => __( 'Footer Widget Area  ', 'news-25' )  . $i,
				'id' => 'news25-footer-widget-area-' . $i,
				'description' => __( 'The Footer Widget Area', 'news-25' )  . $i,
				'before_widget' => '<div class="footer_content"> <aside id="%1$s" class="widget %2$s">',
				'after_widget' => '</aside> </div>',
				'before_title' => '<h5 class="widget-title">',
				'after_title' => '</h5>',
			) );
		}
	
	register_sidebar( array(
		'name' => __( 'WooCommerce Widget Area', 'news-25' ),
		'id' => 'news25-woocommerce-sidebar',
		'description' => __( 'This Widget area for WooCommerce Widget', 'news-25' ),
		'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', 'news25_widgets_init' );