<?php
$styles = [];
foreach(range(1, 28) as $val) {
    $styles[$val] = sprintf(esc_html__('Style %s', 'inventive'), $val);
}

return  array(
    'title'      => esc_html__( 'Header Sidebar Setting', 'inventive' ),
    'id'         => 'header_sidebar_setting',
    'desc'       => '',
    'icon'       => 'el el-wrench',
    'fields'     => array(
       array(
            'id' => 'show_sidebar_info_v1',
            'type' => 'switch',
            'title' => esc_html__('Enable Header Sidebar Info', 'inventive'),
            'default' => false,
        ),
		//Sidebar Logo
		array(
            'id' => 'sidebar_logo_show',
            'type' => 'switch',
            'title' => esc_html__('Enable Light Color Logo', 'inventive'),
            'default' => true,
			'required' => array( 'show_sidebar_info_v1', '=', true ),
        ),
		array(
			'id'       => 'sidebar_logo',
			'type'     => 'media',
			'url'      => true,
			'title'    => esc_html__( 'Light Color Logo Image', 'inventive' ),
			'subtitle' => esc_html__( 'Insert site Light Color logo image', 'inventive' ),
			'required' => array( 'sidebar_logo_show', '=', true ),
		),
		array(
			'id'       => 'sidebar_logo_dimension',
			'type'     => 'dimensions',
			'title'    => esc_html__( 'Light Color Logo Dimentions', 'inventive' ),
			'subtitle' => esc_html__( 'Select Light Color Logo Dimentions', 'inventive' ),
			'units'    => array( 'em', 'px', '%' ),
			'default'  => array( 'Width' => '', 'Height' => '' ),
			'required' => array( 'sidebar_logo_show', '=', true ),
		),
		//Sidebar Title
		array(
			'id'      => 'header_sidebar_title_v1',
			'type'    => 'text',
			'title'   => __( 'Sidebar Title', 'inventive' ),
			'required' => array( 'show_sidebar_info_v1', '=', true ),
		),
		//Sidebar Description
		array(
			'id'      => 'header_sidebar_text_v1',
			'type'    => 'textarea',
			'title'   => __( 'Sidebar Description', 'inventive' ),
			'required' => array( 'show_sidebar_info_v1', '=', true ),
		),
		//Sidebar Info Title
		array(
			'id'      => 'header_sidebar_contact_title_v1',
			'type'    => 'text',
			'title'   => __( 'Contact Info Title', 'inventive' ),
			'required' => array( 'show_sidebar_info_v1', '=', true ),
		),
		//Address
		array(
            'id' => 'show_header_address2_v1',
            'type' => 'switch',
            'title' => esc_html__('Enable Sidebar Address', 'inventive'),
            'default' => false,
			'required' => array( 'show_sidebar_info_v1', '=', true ),
        ),
		array(
			'id'      => 'header_address2_v1',
			'type'    => 'textarea',
			'title'   => __( 'Address', 'inventive' ),
			'required' => array( 'show_header_address2_v1', '=', true ),
		),
		//Email Address
		array(
            'id' => 'show_email2_v1',
            'type' => 'switch',
            'title' => esc_html__('Enable Sidebar Email Address', 'inventive'),
            'default' => false,
			'required' => array( 'show_sidebar_info_v1', '=', true ),
        ),
		array(
			'id'      => 'sidebar_email_v1',
			'type'    => 'text',
			'title'   => __( 'Email Address', 'inventive' ),
			'required' => array( 'show_email2_v1', '=', true ),
		),
		//Phone Number
		array(
            'id' => 'show_phone_no2_v1',
            'type' => 'switch',
            'title' => esc_html__('Enable Sidebar Phone Number', 'inventive'),
            'default' => false,
			'required' => array( 'show_sidebar_info_v1', '=', true ),
        ),
		array(
			'id'      => 'phone_number2',
			'type'    => 'text',
			'title'   => __( 'Phone Number', 'inventive' ),
			'required' => array( 'show_phone_no2_v1', '=', true ),
		),	
		//Working Timing
		array(
            'id' => 'show_whour_v1',
            'type' => 'switch',
            'title' => esc_html__('Enable Sidebar Working Timing', 'inventive'),
            'default' => false,
			'required' => array( 'show_sidebar_info_v1', '=', true ),
        ),
		array(
			'id'      => 'sidebar_working_hours',
			'type'    => 'text',
			'title'   => __( 'Working Timing', 'inventive' ),
			'required' => array( 'show_whour_v1', '=', true ),
		),
		//Newsletter Form Info
		array(
            'id' => 'show_newsletter_section',
            'type' => 'switch',
            'title' => esc_html__('Enable Sidebar MailChimp Form Info', 'inventive'),
            'default' => false,
			'required' => array( 'show_sidebar_info_v1', '=', true ),
        ),
		array(
			'id'      => 'sidebar_newsletter_title_v1',
			'type'    => 'text',
			'title'   => __( 'MailChimp Form Title', 'inventive' ),
			'required' => array( 'show_newsletter_section', '=', true ),
		),	
		array(
			'id'      => 'sidebar_newsletter_url_v1',
			'type'    => 'text',
			'title'   => __( 'MailChimp Form Url', 'inventive' ),
			'required' => array( 'show_newsletter_section', '=', true ),
		),			
    ),
);

