<?php
/**
 * podcast-streaming Theme Customizer.
 *
 * @package podcast-streaming
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function podcast_streaming_customize_register( $wp_customize ) {
	$wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
	$wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
	$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
	$wp_customize->get_setting( 'background_color' )->transport = 'postMessage';
	$wp_customize->get_setting('custom_logo')->transport = 'refresh';	
}
add_action( 'customize_register', 'podcast_streaming_customize_register' );

if ( ! defined( 'PODCAST_STREAMING_BUY_NOW_1' ) ) {
define('PODCAST_STREAMING_BUY_NOW_1',__('https://www.mishkatwp.com/themes/audio-podcast-wordpress-theme/','podcast-streaming'));
}

if ( ! defined( 'PODCAST_STREAMING_BUNDLE_1' ) ) {
define('PODCAST_STREAMING_BUNDLE_1',__('https://www.mishkatwp.com/themes/WordPress-theme-bundle/','podcast-streaming'));
}

if ( class_exists("Kirki")){

   //Post & Pages Setting Panel
	new \Kirki\Panel(
		'podcast_streaming_post_pages_section',
		[
			'priority'    => 11,
			'title'       => esc_html__( 'Post & Pages Settings', 'podcast-streaming' ),
		]
	);

	/* Banner Options */

	new \Kirki\Section(
		'podcast_streaming_banner_options',
		[
			'title'       => esc_html__( 'Banner Image Settings', 'podcast-streaming' ),
			'priority'    => 30,
			'panel'		  => 'podcast_streaming_post_pages_section',
		]
	);

	new \Kirki\Field\Image(
		[
			'settings'    => 'podcast_streaming_custom_fallback_img',
			'label'       => esc_html__( 'Featured Header Image Banner Background', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_banner_options',
			'default'     => '',
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'section'     => 'podcast_streaming_banner_options',
    ] );

    

	/* Single Post Options */

	new \Kirki\Section(
		'podcast_streaming_single_post_options',
		[
			'title'       => esc_html__( 'Single Post Options', 'podcast-streaming' ),
			'priority'    => 30,
			'panel'		  => 'podcast_streaming_post_pages_section',
		]
	);

	/* Single Post Content Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_single_post_content_on_off',
			'label'       => esc_html__( 'Single Post Content On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_single_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Single Post Meta Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_single_meta_on_off',
			'label'       => esc_html__( 'Single Post Meta On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_single_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Single Post Feature Image Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_single_post_image_on_off',
			'label'       => esc_html__( 'Single Post Feature Image On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_single_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Single Post Pagination Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_single_post_pagination_on_off',
			'label'       => esc_html__( 'Single Post Pagination On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_single_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_single_post_options',
    ] );


	/* Page Options */
		new \Kirki\Section(
		'podcast_streaming_single_page_options',
		[
			'title'       => esc_html__( 'Page Sidebar Options', 'podcast-streaming' ),
			'priority'    => 30,
			'panel'		  => 'podcast_streaming_post_pages_section',
		]
	);

	new \Kirki\Field\Radio(
	[
		'settings'    => 'podcast_streaming_single_page_sidebar_option',
		'label'       => esc_html__( 'Page Sidebar Settings', 'podcast-streaming' ),
		'section'     => 'podcast_streaming_single_page_options',
		'default'     => 'right',
		'priority'    => 10,
		'choices'     => [
			'right'   => esc_html__( 'Page With Right Sidebar', 'podcast-streaming' ),
			'left' => esc_html__( 'Page With Left Sidebar', 'podcast-streaming' ),
			'none'  => esc_html__( 'Page With No Sidebar', 'podcast-streaming' ),

		],
	]
);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_single_page_options',
    ] );
	/* Page Options End*/

	/* Post Options */

	new \Kirki\Section(
		'podcast_streaming_post_options',
		[
			'title'       => esc_html__( 'Post Options', 'podcast-streaming' ),
			'priority'    => 30,
			'panel'		  => 'podcast_streaming_post_pages_section',
		]
	);
    
    /* Post Image Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_post_image_on_off',
			'label'       => esc_html__( 'Post Image On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Post Heading Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_post_heading_on_off',
			'label'       => esc_html__( 'Post Heading On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Post Content Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_post_content_on_off',
			'label'       => esc_html__( 'Post Content On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Post Date Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_post_date_on_off',
			'label'       => esc_html__( 'Post Date On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Post Comments Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_post_comment_on_off',
			'label'       => esc_html__( 'Post Comments On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Post Author Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_post_author_on_off',
			'label'       => esc_html__( 'Post Author On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Post Categories Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_post_categories_on_off',
			'label'       => esc_html__( 'Post Categories On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Post limit Option End */
	new \Kirki\Field\Slider(
		[
			'settings'    => 'podcast_streaming_post_content_limit',
			'label'       => esc_html__( 'Post Content Limit', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_options',
			'default'     => 15,
			'choices'     => [
				'min'  => 0,
				'max'  => 50,
				'step' => 1,
			],
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_post_options',
    ] );

	/* Post Options End */

	/* Post Options */

	new \Kirki\Section(
		'podcast_streaming_post_layouts_section',
		[
			'title'       => esc_html__( 'Post Layout Options', 'podcast-streaming' ),
			'priority'    => 30,
		]
	);

	new \Kirki\Field\Radio_Image(
		[
			'settings'    => 'podcast_streaming_post_layout',
			'label'       => esc_html__( 'Blog Layout', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_post_layouts_section',
			'default'     => 'two_column_right',
			'priority'    => 10,
			'choices'     => [
				'one_column'   => get_template_directory_uri().'/images/1column.png',
				'two_column_right' => get_template_directory_uri().'/images/right-sidebar.png',
				'two_column_left'  => get_template_directory_uri().'/images/left-sidebar.png',
				'three_column'  => get_template_directory_uri().'/images/3column.png',
				'four_column'  => get_template_directory_uri().'/images/4column.png',
				'grid_post'  => get_template_directory_uri().'/images/grid.png',
			],
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_post_layouts_section',
    ] );

	/* Post Options End */

	/* Related Post Options */

	new \Kirki\Section(
		'podcast_streaming_related_post_section',
		[
			'title'       => esc_html__( 'Related Post Options', 'podcast-streaming' ),
			'priority'    => 30,
			'panel'		  => 'podcast_streaming_post_pages_section',
		]
	);

    /* Post Image Option End */
	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_enable_related_post_thumbnail',
			'label'       => esc_html__( 'Related Post Image On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_related_post_section',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'section'     => 'podcast_streaming_related_post_section',
    ] );

	/* Related Post Options End */


	/* 404 Page */

	new \Kirki\Section(
		'podcast_streaming_404_page_section',
		[
			'title'       => esc_html__( '404 Page', 'podcast-streaming' ),
			'description' => esc_html__( 'Here you can add 404 Page information.', 'podcast-streaming' ),
			'priority'    => 30,
		]
	);

	new \Kirki\Field\Text(
		[
			'settings' => 'podcast_streaming_404_page_heading',
			'label'    => esc_html__( 'Add Heading', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_404_page_section',
			'default'  => esc_html__( '404', 'podcast-streaming' ),
			'priority' => 10,
		]
	);

	new \Kirki\Field\Text(
		[
			'settings' => 'podcast_streaming_404_page_content',
			'label'    => esc_html__( 'Add Content', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_404_page_section',
			'default'  => esc_html__( 'Ops! Something happened...', 'podcast-streaming' ),
			'priority' => 10,
		]
	);

	new \Kirki\Field\Text(
		[
			'settings' => 'podcast_streaming_404_page_button',
			'label'    => esc_html__( 'Add Button', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_404_page_section',
			'default'  => esc_html__( 'Home', 'podcast-streaming' ),
			'priority' => 10,
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_404_page_section',
    ] );

	/* 404 Page End */

	/* General Options */

	new \Kirki\Section(
		'podcast_streaming_general_options_section',
		[
			'title'       => esc_html__( 'General Options', 'podcast-streaming' ),
			'priority'    => 30,
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_sticky_header_setting',
			'label'       => esc_html__( 'Show Hide Sticky Header', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_general_options_section',
			'default'     => 'off',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_preloader_setting',
			'label'       => esc_html__( 'Preloader On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_general_options_section',
			'default'     => 'off',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	new \Kirki\Field\Select(
	[
		'settings'    => 'podcast_streaming_preloader_type',
		'label'       => esc_html__( 'Preloader Type', 'podcast-streaming' ),
		'section'     => 'podcast_streaming_general_options_section',
		'default'     => 'load',
		'placeholder' => esc_html__( 'Choose an option', 'podcast-streaming' ),
		'choices'     => [
			'load' => esc_html__( 'Load', 'podcast-streaming' ),
			'time' => esc_html__( 'Time', 'podcast-streaming' ),
		],
	] );

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_scroll_to_top_setting',
			'label'       => esc_html__( 'Scroll To Top On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_general_options_section',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* General Options End */

	/* Logo */

	/* Logo Size limit Option End */
	new \Kirki\Field\Slider(
		[
			'settings'    => 'podcast_streaming_logo_resizer_setting',
			'label'       => esc_html__( 'Logo Size Limit', 'podcast-streaming' ),
			'section'     => 'title_tagline',
			'default'     => 70,
			'choices'     => [
				'min'  => 10,
				'max'  => 300,
				'step' => 10,
			],
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_site_title_setting',
			'label'       => esc_html__( 'Site Title On / Off', 'podcast-streaming' ),
			'section'     => 'title_tagline',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_tagline_setting',
			'label'       => esc_html__( 'Tagline On / Off', 'podcast-streaming' ),
			'section'     => 'title_tagline',
			'default'     => 'off',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	/* Logo End */

	/* Typography Section */

	new \Kirki\Section(
		'podcast_streaming_theme_typography_section',
		[
			'title'       => esc_html__( 'Theme Typography', 'podcast-streaming' ),
			'description' => esc_html__( 'Here you can customize Heading or other body text font settings', 'podcast-streaming' ),
			'priority'    => 30,
		]
	);

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

	Kirki::add_field( 'global', array(
		'type'        => 'typography',
		'settings'    => 'podcast_streaming_all_headings_typography',
		'label'       => esc_html__( 'Heading Typography',  'podcast-streaming' ),
		'description' => esc_html__( 'Select the typography options for your heading.',  'podcast-streaming' ),
		'section'     => 'podcast_streaming_theme_typography_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'    => 'podcast_streaming_body_content_typography',
		'section'     => 'podcast_streaming_theme_typography_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Body Content',  'podcast-streaming' ) . '</h3>',
		'priority'    => 10,
	] );

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

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_theme_typography_section',
    ] );

    /* End Typography */

        /* Woocommerce Section */

	new \Kirki\Section(
		'podcast_streaming_theme_product_sidebar',
		[
			'title'       => esc_html__( 'Woocommerce Sidebars', 'podcast-streaming' ),
			'description' => esc_html__( 'Here you can change woocommerce sidebar', 'podcast-streaming' ),
			'panel' =>'woocommerce',
			'priority'    => 30,
		]
	);

	new \Kirki\Field\Select(
		[
			'settings'    => 'podcast_streaming_product_sidebar_position',
			'label'       => esc_html__( 'Sidebar Option', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_theme_product_sidebar',
			'default'     => 'right',
			'choices'     => [
				'left' => esc_html__( 'Left Sidebar', 'podcast-streaming' ),
				'right' => esc_html__( 'Right Sidebar', 'podcast-streaming' ),
				'none' => esc_html__( 'No Sidebar', 'podcast-streaming' ),
			],
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_theme_product_sidebar',
    ] );

    /* Woocommerce Section End */

    /* Global Color Section */

	new \Kirki\Section(
		'podcast_streaming_theme_color_section',
		[
			'title'       => esc_html__( 'Theme Colors Option', 'podcast-streaming' ),
			'description' => esc_html__( 'Here you can change your theme color', 'podcast-streaming' ),
			'priority'    => 30,
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'podcast_streaming_theme_color_1',
		'label'       => __( 'Select Your First Color', 'podcast-streaming' ),
		'section'     => 'podcast_streaming_theme_color_section',
		'default'     => '#CC00AA',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'podcast_streaming_theme_color_2',
		'label'       => __( 'Select Your Second Color', 'podcast-streaming' ),
		'section'     => 'podcast_streaming_theme_color_section',
		'default'     => '#C589BB',
	] );

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_theme_color_section',
    ] );

       /* Global Color End */

    /* Breadcrumb Section */

	new \Kirki\Section(
		'podcast_streaming_breadcrumb_section',
		[
			'title'       => esc_html__( 'Theme Breadcrumb Option', 'podcast-streaming' ),
			'description' => esc_html__( 'The breadcrumbs for your theme can be included here.', 'podcast-streaming' ),
			'priority'    => 30,
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_breadcrumb_setting',
			'label'       => esc_html__( 'Enable Breadcrumbs Option', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_breadcrumb_section',
			'default'     => true,
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_breadcrumb_section',
    ] );

    /* Breadcrumb section End */

 
	// PANEL
	Kirki::add_panel( 'podcast_streaming_panel_id_5', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Animations', 'podcast-streaming' ),
	) );

	// ANIMATION SECTION
	Kirki::add_section( 'podcast_streaming_section_animation', array(
	    'title'          => esc_html__( 'Animations', 'podcast-streaming' ),
	    'priority'       => 2,
	) );

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

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_section_animation',
    ] );

	//Home page Setting Panel
	new \Kirki\Panel(
		'podcast_streaming_home_page_section',
		[
			'priority'    => 10,
			'title'       => esc_html__( 'Home Page Sections', 'podcast-streaming' ),
		]
	);

	/* Social Icon */

	new \Kirki\Section(
		'podcast_streaming_top_header_section',
		[
			'title'       => esc_html__( 'Slider Social Icon', 'podcast-streaming' ),
			'description' => esc_html__( 'Here you can add social links.', 'podcast-streaming' ),
			'panel'		  => 'podcast_streaming_home_page_section',
			'priority'    => 40,
		]
	);

	new \Kirki\Field\URL(
		[
			'settings' => 'podcast_streaming_top_twitter_link',
			'label'    => esc_html__( 'Add Twitter Link', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_top_header_section',
			'default'  => '',
			'priority' => 10,
		]
	);

	new \Kirki\Field\URL(
		[
			'settings' => 'podcast_streaming_top_linkdin_link',
			'label'    => esc_html__( 'Add Linkdin Link', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_top_header_section',
			'default'  => '',
			'priority' => 10,
		]
	);

	new \Kirki\Field\URL(
		[
			'settings' => 'podcast_streaming_top_youtube_link',
			'label'    => esc_html__( 'Add Youtube Link', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_top_header_section',
			'default'  => '',
			'priority' => 10,
		]
	);

	new \Kirki\Field\URL(
		[
			'settings' => 'podcast_streaming_top_facebook_link',
			'label'    => esc_html__( 'Add Facebook Link', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_top_header_section',
			'default'  => '',
			'priority' => 10,
		]
	);

	new \Kirki\Field\URL(
		[
			'settings' => 'podcast_streaming_top_instagram_link',
			'label'    => esc_html__( 'Add Instagram Link', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_top_header_section',
			'default'  => '',
			'priority' => 10,
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_top_header_section',
    ] );

	/* Header */

	new \Kirki\Section(
		'podcast_streaming_header_button_section',
		[
			'title'       => esc_html__( 'Header', 'podcast-streaming' ),
			'description' => esc_html__( 'Here you can add header button text and link.', 'podcast-streaming' ),
			'panel'		  => 'podcast_streaming_home_page_section',
			'priority'    => 30,
		]
	);

	new \Kirki\Field\Text(
		[
			'settings' => 'podcast_streaming_header_button_text',
			'label'    => esc_html__( 'Add Button Text', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_header_button_section',
			'default'  => '',
			'priority' => 10,
		]
	);

	new \Kirki\Field\URL(
		[
			'settings' => 'podcast_streaming_header_button_link',
			'label'    => esc_html__( 'Add Button Url', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_header_button_section',
			'default'  => '',
			'priority' => 10,
		]
	);

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_header_button_section',
    ] );

	/* Home Slider */

	new \Kirki\Section(
		'podcast_streaming_home_slider_section',
		[
			'title'       => esc_html__( 'Home Slider', 'podcast-streaming' ),
			'description' => esc_html__( 'Here you can add slider image, title and text.', 'podcast-streaming' ),
			'panel'		  => 'podcast_streaming_home_page_section',
			'priority'    => 50,
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_slide_on_off',
			'label'       => esc_html__( 'Slider On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_home_slider_section',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	new \Kirki\Field\Image(
			[
				'settings'    => 'podcast_streaming_slider_background_image',
				'label'       => esc_html__( 'Slider Background', 'podcast-streaming' ),
				'section'     => 'podcast_streaming_home_slider_section',
				'default'     => '',
			]
		);

	new \Kirki\Field\Number(
		[
			'settings' => 'podcast_streaming_slide_count',
			'label'    => esc_html__( 'Slider Number Control', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_home_slider_section',
			'default'  => '',
			'choices'  => [
				'min'  => 1,
				'max'  => 3	,
				'step' => 1,
			],
		]
	);

	$podcast_streaming_slide_count = get_theme_mod('podcast_streaming_slide_count');

	for ($i=1; $i <= $podcast_streaming_slide_count; $i++) { 
		
		new \Kirki\Field\Image(
			[
				'settings'    => 'podcast_streaming_slider_image_1'.$i,
				'label'       => esc_html__( 'Slider Image ', 'podcast-streaming' ).$i,
				'section'     => 'podcast_streaming_home_slider_section',
				'default'     => '',
			]
		);

		new \Kirki\Field\Text(
			[
				'settings' => 'podcast_streaming_slider_short_heading'.$i,
				'label'    => esc_html__( 'Short Heading ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_slider_section',
			]
		);

		new \Kirki\Field\Text(
			[
				'settings' => 'podcast_streaming_slider_main_heading' .$i,
				'label'    => esc_html__( 'Slider Main Heading ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_slider_section',
			]
		);

		new \Kirki\Field\Text(
			[
				'settings' => 'podcast_streaming_slider_button_text'.$i,
				'label'    => esc_html__( 'Slider Button Text ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_slider_section',
			]
		);

		new \Kirki\Field\URL(
			[
				'settings' => 'podcast_streaming_slider_button_link'.$i,
				'label'    => esc_html__( 'Slider Button Url ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_slider_section',
				'default'  => '',
			]
		);
	}

	Kirki::add_field( 'theme_config_id', [
		'label'    => esc_html__( 'Buy Our Premium Theme For More Feature', 'podcast-streaming' ),
		'default'  => 
	        '<a class="premium_info_btn" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUY_NOW_1 ) . '">' . __( 'Buy Pro', 'podcast-streaming' ) . '</a>' .
	        '<a class="premium_info_btn bundle" target="_blank" href="' . esc_url( PODCAST_STREAMING_BUNDLE_1 ) . '">' . __( 'Buy All Themes In Single Package', 'podcast-streaming' ) . '</a>',
        'type'        => 'custom',
        'priority'    => 100,
        'section'     => 'podcast_streaming_home_slider_section',
    ] );

	/* Home our Cause */

	new \Kirki\Section(
	    'podcast_streaming_home_industry_heroes_section',
	    [
	        'title'       => esc_html__( 'Podcast Show', 'podcast-streaming' ),
	        'description' => esc_html__( 'Here you can add Podcast Show related text to display Podcast Show.', 'podcast-streaming' ),
	        'panel'       => 'podcast_streaming_home_page_section',
	        'priority'    => 60,
	    ]
	);

	new \Kirki\Field\Checkbox_Switch(
	    [
	        'settings'    => 'podcast_streaming_why_join_us_on_off',
	        'label'       => esc_html__( 'Podcast Show On / Off', 'podcast-streaming' ),
	        'section'     => 'podcast_streaming_home_industry_heroes_section',
	        'default'     => 'on',
	        'choices'     => [
	            'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
	            'off' => esc_html__( 'Disable', 'podcast-streaming' ),
	        ],
	    ]
	);

	new \Kirki\Field\Text(
	    [
	        'settings' => 'podcast_streaming_why_join_us_short_heading',
	        'label'    => esc_html__( 'Short Heading', 'podcast-streaming' ),
	        'section'  => 'podcast_streaming_home_industry_heroes_section',
	    ]
	);

	new \Kirki\Field\Text(
        [
            'settings' => 'podcast_streaming_industry_why_join_us_heading',
            'label'    => esc_html__( 'Main Heading', 'podcast-streaming' ) ,
            'section'  => 'podcast_streaming_home_industry_heroes_section',
        ]
    );

	new \Kirki\Field\Number(
		[
			'settings' => 'podcast_streaming_courses_count',
			'label'    => esc_html__( 'Shows Number Control', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_home_industry_heroes_section',
			'default'  => '',
			'choices'  => [
				'min'  => 1,
				'max'  => 6	,
				'step' => 1,
			],
		]
	);

	$podcast_streaming_courses_count = get_theme_mod('podcast_streaming_courses_count');

	for ($i=1; $i <= $podcast_streaming_courses_count; $i++) { 
		
		new \Kirki\Field\Image(
			[
				'settings'    => 'podcast_streaming_show_image'.$i,
				'label'       => esc_html__( 'Shows Image 0', 'podcast-streaming' ).$i,
				'section'     => 'podcast_streaming_home_industry_heroes_section',
				'default'     => '',
			]
		);

		new \Kirki\Field\Text(
			[
				'settings' => 'podcast_streaming_couses_heading'.$i,
				'label'    => esc_html__( 'Podcast Name ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_industry_heroes_section',
			]
		);

		new \Kirki\Field\Text(
			[
				'settings' => 'podcast_streaming_show_time' .$i,
				'label'    => esc_html__( 'Shows Time ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_industry_heroes_section',
			]
		);

		new \Kirki\Field\Text(
			[
				'settings' => 'podcast_streaming_show_date'.$i,
				'label'    => esc_html__( 'Shows Date ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_industry_heroes_section',
			]
		);

		new \Kirki\Field\Text(
			[
				'settings' => 'podcast_streaming_show_podcaster_name'.$i,
				'label'    => esc_html__( 'Podcaster Name ', 'podcast-streaming' ).$i,
				'section'  => 'podcast_streaming_home_industry_heroes_section',
			]
		);
	}


	/* Footer */

	new \Kirki\Section(
		'podcast_streaming_footer_section',
		[
			'title'       => esc_html__( 'Footer', 'podcast-streaming' ),
			'panel'		  => 'podcast_streaming_home_page_section',
			'priority'    => 70,
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_footer_widgets_on_off',
			'label'       => esc_html__( 'Footer Widgets On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_footer_section',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	new \Kirki\Field\Checkbox_Switch(
		[
			'settings'    => 'podcast_streaming_copyright_on_off',
			'label'       => esc_html__( 'Footer Copyright On / Off', 'podcast-streaming' ),
			'section'     => 'podcast_streaming_footer_section',
			'default'     => 'on',
			'choices'     => [
				'on'  => esc_html__( 'Enable', 'podcast-streaming' ),
				'off' => esc_html__( 'Disable', 'podcast-streaming' ),
			],
		]
	);

	new \Kirki\Field\Text(
		[
			'settings' => 'podcast_streaming_copyright_content_text',
			'label'    => esc_html__( 'Copyright Text', 'podcast-streaming' ),
			'section'  => 'podcast_streaming_footer_section',
		]
	);

}

function podcast_streaming_customizer_settings( $wp_customize ) {

	$podcast_streaming_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($podcast_streaming_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('podcast_streaming_featured_product_category',array(
		'default'	=> 'select',
		'sanitize_callback' => 'podcast_streaming_sanitize_select',
	));

	$wp_customize->add_control('podcast_streaming_featured_product_category',array(
		'type'    => 'select',
		'choices' => $cat_posts,
		'label' => __('Select category to display products ','podcast-streaming'),
		'section' => 'podcast_streaming_home_product_section',
	));

}

add_action( 'customize_register', 'podcast_streaming_customizer_settings' );