<?php
	/**
	 * Sidebars configuration.
	 *
	 * @package Transit
	 */

	add_action( 'after_setup_theme', 'transit_register_sidebars', 5 );
	function transit_register_sidebars() {

		transit_widget_area()->widgets_settings = apply_filters( 'tm_widget_area_default_settings', array(
			'sidebar'     => array(
				'name'           => esc_html__( 'Sidebar', 'transit' ),
				'description'    => '',
				'before_widget'  => '<aside id="%1$s" class="widget %2$s">',
				'after_widget'   => '</aside>',
				'before_title'   => '<h3 class="widget-title">',
				'after_title'    => '</h3>',
				'before_wrapper' => '<div id="%1$s" %2$s role="complementary">',
				'after_wrapper'  => '</div>',
				'is_global'      => true,
			),
			'footer-area' => array(
				'name'           => esc_html__( 'Footer Area', 'transit' ),
				'description'    => '',
				'before_widget'  => '<aside id="%1$s" class="widget %2$s">',
				'after_widget'   => '</aside>',
				'before_title'   => '<h5 class="widget-title">',
				'after_title'    => '</h5>',
				'before_wrapper' => '<section id="%1$s" %2$s>',
				'after_wrapper'  => '</section>',
				'is_global'      => true,
			),
		) );
	}
