<?php

if ( class_exists("Kirki")){

	// LOGO

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'ecommece_marketplace_logo_resizer',
		'label'       => esc_html__( 'Adjust Your Logo Size ', 'ecommece-marketplace' ),
		'section'     => 'title_tagline',
		'choices'     => [
			'min'  => 10,
			'max'  => 300,
			'step' => 10,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_logo_text',
		'section'     => 'title_tagline',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Site Title and Tagline', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_display_header_title',
		'label'       => esc_html__( 'Site Title Enable / Disable Button', 'ecommece-marketplace' ),
		'section'     => 'title_tagline',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable', 'ecommece-marketplace' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_display_header_text',
		'label'       => esc_html__( 'Tagline Enable / Disable Button', 'ecommece-marketplace' ),
		'section'     => 'title_tagline',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable', 'ecommece-marketplace' ),
		],
	] );

	// FONT STYLE TYPOGRAPHY

	Kirki::add_panel( 'ecommece_marketplace_panel_id', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Typography', 'ecommece-marketplace' ),
	) );

	Kirki::add_section( 'ecommece_marketplace_font_style_section', array(
		'title'      => esc_html__( 'Typography Option',  'ecommece-marketplace' ),
		'priority'   => 2,
		'capability' => 'edit_theme_options',
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_font_style_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. More Font Family Options </p><p>3. Color Pallete Setup </p><p>4. Section Reordering Facility</p><p>5. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_all_headings_typography',
		'section'     => 'ecommece_marketplace_font_style_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading Of All Sections',  'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'global', array(
		'type'        => 'typography',
		'settings'    => 'ecommece_marketplace_all_headings_typography',
		'label'       => esc_html__( 'Heading Typography',  'ecommece-marketplace' ),
		'description' => esc_html__( 'Select the typography options for your heading.',  'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_font_style_section',
		'priority'    => 10,
		'default'     => array(
			'font-family'    => '',
			'variant'        => '',
		),
		'output' => array(
			array(
				'element' => array( 'h1','h2','h3','h4','h5','h6', ),
			),
		),
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_body_content_typography',
		'section'     => 'ecommece_marketplace_font_style_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Body Content',  'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'global', array(
		'type'        => 'typography',
		'settings'    => 'ecommece_marketplace_body_content_typography',
		'label'       => esc_html__( 'Content Typography',  'ecommece-marketplace' ),
		'description' => esc_html__( 'Select the typography options for your content.',  'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_font_style_section',
		'priority'    => 10,
		'default'     => array(
			'font-family'    => '',
			'variant'        => '',
		),
		'output' => array(
			array(
				'element' => array( 'body', ),
			),
		),
	) );

		// PANEL
	Kirki::add_panel( 'ecommece_marketplace_panel_id_5', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Animations', 'ecommece-marketplace' ),
	) );

	// ANIMATION SECTION
	Kirki::add_section( 'ecommece_marketplace_section_animation', array(
	    'title'          => esc_html__( 'Animations', 'ecommece-marketplace' ),
	    'priority'       => 2,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_section_animation',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_animation_enabled',
		'label'       => esc_html__( 'Turn To Show Animation', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_animation',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable', 'ecommece-marketplace' ),
		],
	] );

	// PANEL
	Kirki::add_panel( 'ecommece_marketplace_panel_id_2', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Dark Mode', 'ecommece-marketplace' ),
	) );

	// DARK MODE SECTION
	Kirki::add_section( 'ecommece_marketplace_section_dark_mode', array(
	    'title'          => esc_html__( 'Dark Mode', 'ecommece-marketplace' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_section_dark_mode',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	]);

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'ecommece_marketplace_dark_colors',
	    'section'     => 'ecommece_marketplace_section_dark_mode',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Dark Appearance', 'ecommece-marketplace' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_is_dark_mode_enabled',
		'label'       => esc_html__( 'Turn To Dark Mode', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_dark_mode',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable', 'ecommece-marketplace' ),
		],
	] );


	// PANEL
	Kirki::add_panel( 'ecommece_marketplace_panel_id_3', array(
	    'priority'    => 10,
	    'title'       => esc_html__( '404 Settings / No Result', 'ecommece-marketplace' ),
	) );

	// 404 SECTION
	Kirki::add_section( 'ecommece_marketplace_section_404', array(
		'panel'          => 'ecommece_marketplace_panel_id_3',
	    'title'          => esc_html__( '404 Settings', 'ecommece-marketplace' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_section_404',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
		'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'ecommece_marketplace_404_heading',
	    'section'     => 'ecommece_marketplace_section_404',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( '404 Heading', 'ecommece-marketplace' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'ecommece_marketplace_404_page_title',
		'section'  => 'ecommece_marketplace_section_404',
		'default'  => esc_html__('404 Not Found', 'ecommece-marketplace'),
		'priority' => 10,
	] );

		Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'ecommece_marketplace_404_text',
	    'section'     => 'ecommece_marketplace_section_404',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( '404 Content', 'ecommece-marketplace' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'ecommece_marketplace_404_page_content',
		'section'  => 'ecommece_marketplace_section_404',
		'default'  => esc_html__('Sorry, no posts matched your criteria.', 'ecommece-marketplace'),
		'priority' => 10,
	] );

	// NO Result
	Kirki::add_section( 'ecommece_marketplace_no_result', array(
		'panel'          => 'ecommece_marketplace_panel_id_3',
	    'title'          => esc_html__( 'No Result Page Settings', 'ecommece-marketplace' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_no_result',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
		'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'ecommece_marketplace_not_found_heading',
	    'section'     => 'ecommece_marketplace_no_result',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'No Search Result Heading', 'ecommece-marketplace' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'ecommece_marketplace_no_results_page_title',
		'section'  => 'ecommece_marketplace_no_result',
		'default'  => esc_html__('404 Not Found', 'ecommece-marketplace'),
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'ecommece_marketplace_not_found_text',
	    'section'     => 'ecommece_marketplace_no_result',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'No Search Result Content', 'ecommece-marketplace' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'ecommece_marketplace_no_results_page_content',
		'section'  => 'ecommece_marketplace_no_result',
		'default'  => esc_html__('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'ecommece-marketplace'),
		'priority' => 10,
	] );

	// PANEL

	Kirki::add_panel( 'ecommece_marketplace_panel_id', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Options', 'ecommece-marketplace' ),
	) );

	//COLOR SECTION

	Kirki::add_section( 'ecommece_marketplace_section_color', array(
	    'title'          => esc_html__( 'Global Color', 'ecommece-marketplace' ),
	    'panel'          => 'ecommece_marketplace_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_section_color',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. More Font Family Options </p><p>3. Color Pallete Setup </p><p>4. Section Reordering Facility</p><p>5. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_global_colors',
		'section'     => 'ecommece_marketplace_section_color',
		'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Here you can change your theme color on one click.', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'ecommece_marketplace_first_color',
		'label'       => __( 'Choose Your First Color', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_color',
		'default'     => '#11248f',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'ecommece_marketplace_second_color',
		'label'       => __( 'Choose Your Second Color', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_color',
		'default'     => '#c4ec26',
	] );

	// Additional Settings

	Kirki::add_section( 'ecommece_marketplace_additional_settings', array(
	    'title'          => esc_html__( 'Additional Settings', 'ecommece-marketplace' ),
	    'panel'          => 'ecommece_marketplace_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_additional_settings',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'ecommece_marketplace_scroll_enable_setting',
		'label'       => esc_html__( 'Here you can enable or disable your scroller.', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default'     => '1',
		'priority'    => 10,
	] );

	new \Kirki\Field\Radio_Buttonset(
	[
		'settings'    => 'ecommece_marketplace_scroll_top_position',
		'label'       => esc_html__( 'Alignment for Scroll To Top', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default'     => 'Right',
		'priority'    => 10,
		'choices'     => [
			'Left'   => esc_html__( 'Left', 'ecommece-marketplace' ),
			'Center' => esc_html__( 'Center', 'ecommece-marketplace' ),
			'Right'  => esc_html__( 'Right', 'ecommece-marketplace' ),
		],
	]
	);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'dashicons',
		'settings' => 'ecommece_marketplace_scroll_top_icon',
		'label'    => esc_html__( 'Select Appropriate Scroll Top Icon', 'ecommece-marketplace' ),
		'section'  => 'ecommece_marketplace_additional_settings',
		'default'  => 'dashicons dashicons-arrow-up-alt',
		'priority' => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'menu_text_transform_ecommece_marketplace',
		'label'       => esc_html__( 'Menus Text Transform', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default'     => 'CAPITALISE',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'CAPITALISE' => esc_html__( 'CAPITALISE', 'ecommece-marketplace' ),
			'UPPERCASE' => esc_html__( 'UPPERCASE', 'ecommece-marketplace' ),
			'LOWERCASE' => esc_html__( 'LOWERCASE', 'ecommece-marketplace' ),

		],
	] );

		new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_menu_zoom',
		'label'       => esc_html__( 'Menu Transition', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default' => 'Zoom Out',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'Zoomout' => __('Zoom Out','ecommece-marketplace'),
            'Zoominn' => __('Zoom Inn','ecommece-marketplace'),
            
		],
	] );


	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'ecommece_marketplace_container_width',
		'label'       => esc_html__( 'Theme Container Width', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default'     => 100,
		'choices'     => [
			'min'  => 50,
			'max'  => 100,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'ecommece_marketplace_site_loader',
		'label'       => esc_html__( 'Here you can enable or disable your Site Loader.', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default'     => false,
		'priority'    => 10,
	] );

		new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_preloader_type',
		'label'       => esc_html__( 'Preloader Type', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default' => 'four-way-loader',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'four-way-loader' => __('Type 1','ecommece-marketplace'),
            'cube-loader' => __('Type 2','ecommece-marketplace'),
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_page_layout',
		'label'       => esc_html__( 'Page Layout Setting', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_additional_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','ecommece-marketplace'),
            'Right Sidebar' => __('Right Sidebar','ecommece-marketplace'),
            'One Column' => __('One Column','ecommece-marketplace')
		],
	] );

	if ( class_exists("woocommerce")){

		// Woocommerce Settings

		Kirki::add_section( 'ecommece_marketplace_woocommerce_settings', array(
				'title'          => esc_html__( 'Woocommerce Settings', 'ecommece-marketplace' ),
				'panel'          => 'ecommece_marketplace_panel_id',
				'priority'       => 160,
		) );

		Kirki::add_field( 'theme_config_id', [
		    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
		    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
		    'type'        => 'custom',
		    'section'     => 'ecommece_marketplace_woocommerce_settings',
		    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
		] );

		Kirki::add_field( 'theme_config_id', [
			'type'        => 'toggle',
			'settings'    => 'ecommece_marketplace_shop_sidebar',
			'label'       => esc_html__( 'Here you can enable or disable shop page sidebar.', 'ecommece-marketplace' ),
			'section'     => 'ecommece_marketplace_woocommerce_settings',
			'default'     => '1',
			'priority'    => 10,
		] );

		Kirki::add_field( 'theme_config_id', [
			'type'        => 'toggle',
			'settings'    => 'ecommece_marketplace_product_sidebar',
			'label'       => esc_html__( 'Here you can enable or disable product page sidebar.', 'ecommece-marketplace' ),
			'section'     => 'ecommece_marketplace_woocommerce_settings',
			'default'     => '1',
			'priority'    => 10,
		] );

		Kirki::add_field( 'theme_config_id', [
			'type'        => 'toggle',
			'settings'    => 'ecommece_marketplace_related_product_setting',
			'label'       => esc_html__( 'Here you can enable or disable your related products.', 'ecommece-marketplace' ),
			'section'     => 'ecommece_marketplace_woocommerce_settings',
			'default'     => true,
			'priority'    => 10,
		] );

		new \Kirki\Field\Number(
			[
				'settings' => 'ecommece_marketplace_per_columns',
				'label'    => esc_html__( 'Product Per Row', 'ecommece-marketplace' ),
				'section'  => 'ecommece_marketplace_woocommerce_settings',
				'default'  => 3,
				'choices'  => [
					'min'  => 1,
					'max'  => 4,
					'step' => 1,
				],
			]
		);

		new \Kirki\Field\Number(
			[
				'settings' => 'ecommece_marketplace_product_per_page',
				'label'    => esc_html__( 'Product Per Page', 'ecommece-marketplace' ),
				'section'  => 'ecommece_marketplace_woocommerce_settings',
				'default'  => 9,
				'choices'  => [
					'min'  => 1,
					'max'  => 15,
					'step' => 1,
				],
			]
		);

		new \Kirki\Field\Number(
			[
				'settings' => 'custom_related_products_number_per_row',
				'label'    => esc_html__( 'Related Product Per Column', 'ecommece-marketplace' ),
				'section'  => 'ecommece_marketplace_woocommerce_settings',
				'default'  => 3,
				'choices'  => [
					'min'  => 1,
					'max'  => 4,
					'step' => 1,
				],
			]
		);

		new \Kirki\Field\Number(
			[
				'settings' => 'custom_related_products_number',
				'label'    => esc_html__( 'Related Product Per Page', 'ecommece-marketplace' ),
				'section'  => 'ecommece_marketplace_woocommerce_settings',
				'default'  => 3,
				'choices'  => [
					'min'  => 1,
					'max'  => 10,
					'step' => 1,
				],
			]
		);

		new \Kirki\Field\Select( [
		'settings'    => 'ecommece_marketplace_shop_page_layout',
		'label'       => esc_html__( 'Shop Page Layout Setting', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_woocommerce_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','ecommece-marketplace'),
            'Right Sidebar' => __('Right Sidebar','ecommece-marketplace')
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_product_page_layout',
		'label'       => esc_html__( 'Product Page Layout Setting', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_woocommerce_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','ecommece-marketplace'),
            'Right Sidebar' => __('Right Sidebar','ecommece-marketplace')
		],
	] );

		new \Kirki\Field\Radio_Buttonset(
	[
		'settings'    => 'ecommece_marketplace_woocommerce_pagination_position',
		'label'       => esc_html__( 'Woocommerce Pagination Alignment', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_woocommerce_settings',
		'default'     => 'Center',
		'priority'    => 10,
		'choices'     => [
			'Left'   => esc_html__( 'Left', 'ecommece-marketplace' ),
			'Center' => esc_html__( 'Center', 'ecommece-marketplace' ),
			'Right'  => esc_html__( 'Right', 'ecommece-marketplace' ),
		],
	]
	);

	}

	// POST SECTION

	Kirki::add_section( 'ecommece_marketplace_section_post', array(
	    'title'          => esc_html__( 'Post Settings', 'ecommece-marketplace' ),
	    'panel'          => 'ecommece_marketplace_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_section_post',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

	new \Kirki\Field\Sortable(
	[
		'settings' => 'ecommece_marketplace_archive_element_sortable',
		'label'    => __( 'Archive Post Page Element Reordering', 'ecommece-marketplace' ),
		'description'    => esc_html__( 'This setting is not favorable with post format.', 'ecommece-marketplace' ),
		'section'  => 'ecommece_marketplace_section_post',
		'default'  => [ 'option1', 'option2', 'option3', 'option4', 'option5' ],
		'choices'  => [
			'option1' => esc_html__( 'Post Image', 'ecommece-marketplace' ),
			'option2' => esc_html__( 'Post Meta', 'ecommece-marketplace' ),
			'option3' => esc_html__( 'Post Title', 'ecommece-marketplace' ),
			'option4' => esc_html__( 'Post Content', 'ecommece-marketplace' ),
			'option5' => esc_html__( 'Post Button', 'ecommece-marketplace' ),
		],
	]
	);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'ecommece_marketplace_post_excerpt_number',
		'label'       => esc_html__( 'Post Content Range', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_post',
		'default'     => 10,
		'choices'     => [
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'ecommece_marketplace_pagination_setting',
		'label'       => esc_html__( 'Here you can enable or disable your Pagination.', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_post',
		'default'     => true,
		'priority'    => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_archive_sidebar_layout',
		'label'       => esc_html__( 'Archive Post Sidebar Layout Setting', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_post',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','ecommece-marketplace'),
            'Right Sidebar' => __('Right Sidebar','ecommece-marketplace'),
            'Three Column' => __('Three Column','ecommece-marketplace'),
            'Four Column' => __('Four Column','ecommece-marketplace'),
            'Grid Layout Without Sidebar' => __('Grid Layout Without Sidebar','ecommece-marketplace'),
            'Grid Layout With Right Sidebar' => __('Grid Layout With Right Sidebar','ecommece-marketplace'),
            'Grid Layout With Left Sidebar' => __('Grid Layout With Left Sidebar','ecommece-marketplace')
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_single_post_sidebar_layout',
		'label'       => esc_html__( 'Single Post Sidebar Layout Setting', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_post',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','ecommece-marketplace'),
            'Right Sidebar' => __('Right Sidebar','ecommece-marketplace'),
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_search_sidebar_layout',
		'label'       => esc_html__( 'Search Page Sidebar Layout Setting', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_section_post',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','ecommece-marketplace'),
            'Right Sidebar' => __('Right Sidebar','ecommece-marketplace'),
            'Three Column' => __('Three Column','ecommece-marketplace'),
            'Four Column' => __('Four Column','ecommece-marketplace'),
            'Grid Layout Without Sidebar' => __('Grid Layout Without Sidebar','ecommece-marketplace'),
            'Grid Layout With Right Sidebar' => __('Grid Layout With Right Sidebar','ecommece-marketplace'),
            'Grid Layout With Left Sidebar' => __('Grid Layout With Left Sidebar','ecommece-marketplace')
		],
	] );

		// Breadcrumb
	Kirki::add_section( 'ecommece_marketplace_bradcrumb', array(
	    'title'          => esc_html__( 'Breadcrumb Settings', 'ecommece-marketplace' ),
	    'panel'          => 'ecommece_marketplace_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_bradcrumb',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

	 Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_breadcrumb_heading',
		'section'     => 'ecommece_marketplace_bradcrumb',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Single Page Breadcrumb', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_breadcrumb_enable',
		'label'       => esc_html__( 'Breadcrumb Enable / Disable', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_bradcrumb',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable', 'ecommece-marketplace' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'default'     => '/',
        'settings' => 'ecommece_marketplace_breadcrumb_separator' ,
        'label'    => esc_html__( 'Breadcrumb Separator',  'ecommece-marketplace' ),
        'section'  => 'ecommece_marketplace_bradcrumb',
    ] );

	// HEADER SECTION

	Kirki::add_section( 'ecommece_marketplace_section_header', array(
	    'title'          => esc_html__( 'Header Settings', 'ecommece-marketplace' ),
	    'panel'          => 'ecommece_marketplace_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_section_header',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_phone_heading',
		'section'     => 'ecommece_marketplace_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Phone Number', 'ecommece-marketplace' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'settings' => 'ecommece_marketplace_topbar_phone_number' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_button1_heading',
		'section'     => 'ecommece_marketplace_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Button 1', 'ecommece-marketplace' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'Button Text', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_button1_text' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'url',
        'label'    =>  esc_html__( 'Button Link', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_button1_link' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_button2_heading',
		'section'     => 'ecommece_marketplace_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Button 2', 'ecommece-marketplace' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'Button Text', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_button2_text' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'url',
        'label'    =>  esc_html__( 'Button Link', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_button2_link' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_wishlist_heading',
		'section'     => 'ecommece_marketplace_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Wishlist', 'ecommece-marketplace' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'Wishlist Text', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_wishlist_text' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

    Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'Wishlist Link', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_wishlist_link' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_account_heading',
		'section'     => 'ecommece_marketplace_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'My Account', 'ecommece-marketplace' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'My Account Text', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_myaccount_text' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

    Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'My Account Link', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_myaccount_link' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_account_heading',
		'section'     => 'ecommece_marketplace_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'My Account', 'ecommece-marketplace' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'My Account Text', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_myaccount_text' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );

    Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'label'    =>  esc_html__( 'My Account Link', 'ecommece-marketplace' ),
        'settings' => 'ecommece_marketplace_header_myaccount_link' ,
        'section'  => 'ecommece_marketplace_section_header',
    ] );
    
	// SLIDER SECTION

	Kirki::add_section( 'ecommece_marketplace_blog_slide_section', array(
        'title'          => esc_html__( ' Slider Settings', 'ecommece-marketplace' ),
        'panel'          => 'ecommece_marketplace_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_blog_slide_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_heading',
		'section'     => 'ecommece_marketplace_blog_slide_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Slider', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_blog_box_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_blog_slide_section',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable', 'ecommece-marketplace' ),
		],
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_slider_heading',
		'section'     => 'ecommece_marketplace_blog_slide_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Main Slider', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'settings'    => 'ecommece_marketplace_blog_slide_number',
		'label'       => esc_html__( 'Number of slides to show', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_blog_slide_section',
		'default'     => 3,
		'choices'     => [
			'min'  => 0,
			'max'  => 3,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'select',
		'settings'    => 'ecommece_marketplace_blog_slide_category',
		'label'       => esc_html__( 'Select the category to show slider ( Image Dimension 750 x 450 )', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_blog_slide_section',
		'default'     => '',
		'placeholder' => esc_html__( 'Select an category...', 'ecommece-marketplace' ),
		'priority'    => 10,
		'choices'     => ecommece_marketplace_get_categories_select(),
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_second_slider_heading',
		'section'     => 'ecommece_marketplace_blog_slide_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Second Slider', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'settings'    => 'ecommece_marketplace_second_slide_number',
		'label'       => esc_html__( 'Number of slides to show', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_blog_slide_section',
		'default'     => 3,
		'choices'     => [
			'min'  => 0,
			'max'  => 80,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'select',
		'settings'    => 'ecommece_marketplace_second_slide_category',
		'label'       => esc_html__( 'Select the category to show slider ( Image Dimension 350 x 450 )', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_blog_slide_section',
		'default'     => '',
		'placeholder' => esc_html__( 'Select an category...', 'ecommece-marketplace' ),
		'priority'    => 10,
		'choices'     => ecommece_marketplace_get_categories_select(),
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_slider_content_alignment',
		'label'       => esc_html__( 'Slider Content Alignment', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_blog_slide_section',
		'default'     => 'CENTER-ALIGN',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'ecommece-marketplace' ),
			'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'ecommece-marketplace' ),
			'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'ecommece-marketplace' ),

		],
	] );

	// FEATURED PRODUCT SECTION

	Kirki::add_section( 'ecommece_marketplace_featured_product_section', array(
	    'title'          => esc_html__( 'Featured Product Settings', 'ecommece-marketplace' ),
	    'panel'          => 'ecommece_marketplace_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_featured_product_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	    'priority'    => 1,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_heading',
		'section'     => 'ecommece_marketplace_featured_product_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Featured Product',  'ecommece-marketplace' ) . '</h3>',
		'priority'    => 1,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_featured_product_section_enable',
		'label'       => esc_html__( 'Section Enable / Disable',  'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_featured_product_section',
		'default'     => false,
		'priority'    => 2,
		'choices'     => [
			'on'  => esc_html__( 'Enable',  'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable',  'ecommece-marketplace' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'settings' => 'ecommece_marketplace_featured_product_heading' ,
        'label'    => esc_html__( 'Heading',  'ecommece-marketplace' ),
        'section'  => 'ecommece_marketplace_featured_product_section',
    ] );


	// FOOTER SECTION

	Kirki::add_section( 'ecommece_marketplace_footer_section', array(
        'title'          => esc_html__( 'Footer Settings', 'ecommece-marketplace' ),
        'panel'          => 'ecommece_marketplace_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'ecommece-marketplace' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( ECOMMERCE_MARKETPLACE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'ecommece-marketplace' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'ecommece_marketplace_footer_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'ecommece-marketplace' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_footer_enable_heading',
		'section'     => 'ecommece_marketplace_footer_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Footer Link', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'ecommece_marketplace_copyright_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_footer_section',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'ecommece-marketplace' ),
			'off' => esc_html__( 'Disable', 'ecommece-marketplace' ),
		],
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_footer_text_heading',
		'section'     => 'ecommece_marketplace_footer_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Copyright Text', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'ecommece_marketplace_footer_text',
		'section'  => 'ecommece_marketplace_footer_section',
		'default'  => '',
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
	'type'        => 'custom',
	'settings'    => 'ecommece_marketplace_footer_text_heading_2',
	'section'     => 'ecommece_marketplace_footer_section',
		'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Copyright Alignment', 'ecommece-marketplace' ) . '</h3>',
	'priority'    => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'ecommece_marketplace_copyright_text_alignment',
		'label'       => esc_html__( 'Copyright text Alignment', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_footer_section',
		'default'     => 'LEFT-ALIGN',
		'placeholder' => esc_html__( 'Choose an option', 'ecommece-marketplace' ),
		'choices'     => [
			'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'ecommece-marketplace' ),
			'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'ecommece-marketplace' ),
			'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'ecommece-marketplace' ),

		],
	] );

	Kirki::add_field( 'theme_config_id', [
	'type'        => 'custom',
	'settings'    => 'ecommece_marketplace_footer_text_heading_1',
	'section'     => 'ecommece_marketplace_footer_section',
		'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Copyright Background Color', 'ecommece-marketplace' ) . '</h3>',
	'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'ecommece_marketplace_copyright_bg',
		'label'       => __( 'Choose Your Copyright Background Color', 'ecommece-marketplace' ),
		'section'     => 'ecommece_marketplace_footer_section',
		'default'     => '#000000',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'ecommece_marketplace_enable_footer_socail_link',
		'section'     => 'ecommece_marketplace_footer_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Social Media Link', 'ecommece-marketplace' ) . '</h3>',
		'priority'    => 11,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'repeater',
		'section'     => 'ecommece_marketplace_footer_section',
		'priority'    => 11,
		'row_label' => [
			'type'  => 'field',
			'value' => esc_html__( 'Footer Social Icon', 'ecommece-marketplace' ),
			'field' => 'link_text',
		],
		'button_label' => esc_html__('Add New Social Icon', 'ecommece-marketplace' ),
		'settings'     => 'ecommece_marketplace_footer_social_links_settings',
		'default'      => '',
		'fields' 	   => [
			'link_text' => [
				'type'        => 'text',
				'label'       => esc_html__( 'Icon', 'ecommece-marketplace' ),
				'description' => esc_html__( 'Add the fontawesome class ex: "fab fa-facebook-f".', 'ecommece-marketplace' ),
				'default'     => '',
			],
			'link_url' => [
				'type'        => 'url',
				'label'       => esc_html__( 'Social Link', 'ecommece-marketplace' ),
				'description' => esc_html__( 'Add the social icon url here.', 'ecommece-marketplace' ),
				'default'     => '',
			],
		],
		'choices' => [
			'limit' => 5
		],
	] );
}


add_action( 'customize_register', 'ecommece_marketplace_customizer_settings' );
function ecommece_marketplace_customizer_settings( $wp_customize ) {
	$ecommece_marketplace_args = array(
       'type'                     => 'product',
        'child_of'                 => 0,
        'parent'                   => '',
        'orderby'                  => 'term_group',
        'order'                    => 'ASC',
        'hide_empty'               => false,
        'hierarchical'             => 1,
        'number'                   => '',
        'taxonomy'                 => 'product_cat',
        'pad_counts'               => false
    );
	$categories = get_categories($ecommece_marketplace_args);
	$cat_posts = array();
	$m = 0;
	$cat_posts[]='Select';
	foreach($categories as $category){
		if($m==0){
			$default = $category->slug;
			$m++;
		}
		$cat_posts[$category->slug] = $category->name;
	}

	$wp_customize->add_setting('ecommece_marketplace_featured_product_category',array(
		'default'	=> 'select',
		'sanitize_callback' => 'ecommece_marketplace_sanitize_select',
	));
	$wp_customize->add_control('ecommece_marketplace_featured_product_category',array(
		'type'    => 'select',
		'choices' => $cat_posts,
		'label' => __('Select category to display products ','ecommece-marketplace'),
		'section' => 'ecommece_marketplace_featured_product_section',
	));
}

/*
 *  Customizer Notifications
 */

$ecommece_marketplace_config_customizer = array(
    'recommended_plugins' => array( 
        'kirki' => array(
            'recommended' => true,
            'description' => sprintf( 
                /* translators: %s: plugin name */
                esc_html__( 'If you want to show all the sections of the FrontPage, please install and activate %s plugin', 'ecommece-marketplace' ), 
                '<strong>' . esc_html__( 'Kirki Customizer', 'ecommece-marketplace' ) . '</strong>'
            ),
        ),
    ),
    'ecommece_marketplace_recommended_actions'       => array(),
    'ecommece_marketplace_recommended_actions_title' => esc_html__( 'Recommended Actions', 'ecommece-marketplace' ),
    'ecommece_marketplace_recommended_plugins_title' => esc_html__( 'Recommended Plugin', 'ecommece-marketplace' ),
    'ecommece_marketplace_install_button_label'      => esc_html__( 'Install and Activate', 'ecommece-marketplace' ),
    'ecommece_marketplace_activate_button_label'     => esc_html__( 'Activate', 'ecommece-marketplace' ),
    'ecommece_marketplace_deactivate_button_label'   => esc_html__( 'Deactivate', 'ecommece-marketplace' ),
);

Ecommece_Marketplace_Customizer_Notify::init( apply_filters( 'ecommece_marketplace_customizer_notify_array', $ecommece_marketplace_config_customizer ) );