<?php 


function mohi_sidebar() {

	$register_sidebar_widgets = array(

		'name'           => __( 'Main Sidebar', 'mohi'),
		'id'             => "main-sidebar",
		'description' => __( 'Widgets in this area will be shown on all blogs and single post pages.', 'mohi' ),
		'before_widget'  => '<div class="card p-1 mb-4 bg-light shadow-sm">',
		'after_widget'   => "</div>",
		'before_title'   => '<div class="card-header sidebar-header text-white"><h5 class="mb-0">',
		'after_title'    => '</h5></div>',
	);
    register_sidebar( $register_sidebar_widgets);
}

add_action( 'widgets_init', 'mohi_sidebar' );



function mohi_footer_widgets() {

    register_sidebar(array(
        'name'          => __('Footer 1', 'mohi'),
        'id'            => 'footer-1',
        'description'   => __('Add widgets here to appear in the first footer column.', 'mohi'),
        'before_widget' => '<div class="footer-widget mb-4">',
        'after_widget'  => '</div>',
        'before_title'  => '<h5 class="footer_sec_title text-uppercase fw-700 mb-4">',
        'after_title'   => '</h5>',
    ));

    register_sidebar(array(
        'name'          => __('Footer 2', 'mohi'),
        'id'            => 'footer-2',
        'description'   => __('Add widgets here to appear in the second footer column.', 'mohi'),
        'before_widget' => '<div class="footer-widget mb-4">',
        'after_widget'  => '</div>',
        'before_title'  => '<h5 class="footer_sec_title text-uppercase fw-700 mb-4">',
        'after_title'   => '</h5>',
    ));

	register_sidebar(array(
        'name'          => __('Footer 3', 'mohi'),
        'id'            => 'footer-3',
        'description'   => __('Add widgets here to appear in the third footer column.', 'mohi'),
        'before_widget' => '<div class="footer-widget mb-4">',
        'after_widget'  => '</div>',
        'before_title'  => '<h5 class="footer_sec_title text-uppercase fw-700 mb-4">',
        'after_title'   => '</h5>',
    ));

    register_sidebar(array(
        'name'          => __('Footer 4', 'mohi'),
        'id'            => 'footer-4',
        'description'   => __('Add widgets here to appear in the fourth footer column.', 'mohi'),
        'before_widget' => '<div class="footer-widget mb-4">',
        'after_widget'  => '</div>',
        'before_title'  => '<h5 class="footer_sec_title text-uppercase fw-700 mb-4">',
        'after_title'   => '</h5>',
    ));

}
add_action('widgets_init', 'mohi_footer_widgets');