<?php

if ( class_exists("Kirki")){

	// LOGO

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

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'creative_portfolio_lite_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', 'creative-portfolio-lite' ) . '</h3>',
		'priority'    => 10,
	] );

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

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

	// FONT STYLE TYPOGRAPHY

	Kirki::add_panel( 'creative_portfolio_lite_panel_id', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Typography', 'creative-portfolio-lite' ),
	) );

	Kirki::add_section( 'creative_portfolio_lite_font_style_section', array(
		'title'      => esc_html__( 'Typography Option',  'creative-portfolio-lite' ),
		'priority'   => 2,
		'capability' => 'edit_theme_options',
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

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

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

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

		// PANEL
	Kirki::add_panel( 'creative_portfolio_lite_panel_id_5', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Animations', 'creative-portfolio-lite' ),
	) );

	// ANIMATION SECTION
	Kirki::add_section( 'creative_portfolio_lite_section_animation', array(
	    'title'          => esc_html__( 'Animations', 'creative-portfolio-lite' ),
	    'priority'       => 2,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_animation_enabled',
		'label'       => esc_html__( 'Turn To Show Animation', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_section_animation',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable', 'creative-portfolio-lite' ),
		],
	] );

	// PANEL
	Kirki::add_panel( 'creative_portfolio_lite_panel_id_3', array(
	    'priority'    => 10,
	    'title'       => esc_html__( '404 Settings / No Result', 'creative-portfolio-lite' ),
	) );

	// 404 SECTION
	Kirki::add_section( 'creative_portfolio_lite_section_404', array(
		'panel'          => 'creative_portfolio_lite_panel_id_3',
	    'title'          => esc_html__( '404 Settings', 'creative-portfolio-lite' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
		'priority'    => 10,
	]);

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

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'creative_portfolio_lite_404_page_title',
		'section'  => 'creative_portfolio_lite_section_404',
		'default'  => esc_html__('404 Not Found', 'creative-portfolio-lite'),
		'priority' => 10,
	] );

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

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'creative_portfolio_lite_404_page_content',
		'section'  => 'creative_portfolio_lite_section_404',
		'default'  => esc_html__('Sorry, no posts matched your criteria.', 'creative-portfolio-lite'),
		'priority' => 10,
	] );

	// NO Result
	Kirki::add_section( 'creative_portfolio_lite_no_result', array(
		'panel'          => 'creative_portfolio_lite_panel_id_3',
	    'title'          => esc_html__( 'No Result Page Settings', 'creative-portfolio-lite' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
		'priority'    => 10,
	]);

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

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'creative_portfolio_lite_no_results_page_title',
		'section'  => 'creative_portfolio_lite_no_result',
		'default'  => esc_html__('404 Not Found', 'creative-portfolio-lite'),
		'priority' => 10,
	] );

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

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

	// PANEL

	Kirki::add_panel( 'creative_portfolio_lite_panel_id', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Options', 'creative-portfolio-lite' ),
	) );

	//COLOR SECTION

	Kirki::add_section( 'creative_portfolio_lite_section_color', array(
	    'title'          => esc_html__( 'Global Color', 'creative-portfolio-lite' ),
	    'panel'          => 'creative_portfolio_lite_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'creative_portfolio_lite_global_colors',
		'section'     => 'creative_portfolio_lite_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.', 'creative-portfolio-lite' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'creative_portfolio_lite_first_color',
		'label'       => __( 'Choose Your First Color', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_section_color',
		'default'     => '#e93937',
	] );

	// Additional Settings

	Kirki::add_section( 'creative_portfolio_lite_additional_settings', array(
	    'title'          => esc_html__( 'Additional Settings', 'creative-portfolio-lite' ),
	    'panel'          => 'creative_portfolio_lite_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'creative_portfolio_lite_scroll_enable_setting',
		'label'       => esc_html__( 'Here you can enable or disable your scroller.', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_additional_settings',
		'default'     => '1',
		'priority'    => 10,
	] );

	new \Kirki\Field\Radio_Buttonset(
		[
			'settings'    => 'creative_portfolio_lite_scroll_top_position',
			'label'       => esc_html__( 'Alignment for Scroll To Top', 'creative-portfolio-lite' ),
			'section'     => 'creative_portfolio_lite_additional_settings',
			'default'     => 'Right',
			'priority'    => 10,
			'choices'     => [
				'Left'   => esc_html__( 'Left', 'creative-portfolio-lite' ),
				'Center' => esc_html__( 'Center', 'creative-portfolio-lite' ),
				'Right'  => esc_html__( 'Right', 'creative-portfolio-lite' ),
			],
		]
		);

	new \Kirki\Field\Select(
	[
		'settings'    => 'menu_text_transform_creative_portfolio_lite',
		'label'       => esc_html__( 'Menus Text Transform', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_additional_settings',
		'default'     => 'CAPITALISE',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'CAPITALISE' => esc_html__( 'CAPITALISE', 'creative-portfolio-lite' ),
			'UPPERCASE' => esc_html__( 'UPPERCASE', 'creative-portfolio-lite' ),
			'LOWERCASE' => esc_html__( 'LOWERCASE', 'creative-portfolio-lite' ),
		],
	]);

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_menu_zoom',
		'label'       => esc_html__( 'Menu Transition', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_additional_settings',
		'default' => 'None',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'None' => __('None','creative-portfolio-lite'),
            'Zoominn' => __('Zoom Inn','creative-portfolio-lite'),
            
		],
	] );

		Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'creative_portfolio_lite_container_width',
		'label'       => esc_html__( 'Theme Container Width', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_additional_settings',
		'default'     => 100,
		'choices'     => [
			'min'  => 50,
			'max'  => 100,
			'step' => 1,
		],
	] );


	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'creative_portfolio_lite_site_loader',
		'label'       => esc_html__( 'Here you can enable or disable your Site Loader.', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_additional_settings',
		'default'     => false,
		'priority'    => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_preloader_type',
		'label'       => esc_html__( 'Preloader Type', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_additional_settings',
		'default' => 'four-way-loader',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'four-way-loader' => __('Type 1','creative-portfolio-lite'),
            'cube-loader' => __('Type 2','creative-portfolio-lite'),
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_page_layout',
		'label'       => esc_html__( 'Page Layout Setting', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_additional_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','creative-portfolio-lite'),
            'Right Sidebar' => __('Right Sidebar','creative-portfolio-lite'),
            'One Column' => __('One Column','creative-portfolio-lite')
		],
	] );
	


	if ( class_exists("woocommerce")){

	// Woocommerce Settings

	Kirki::add_section( 'creative_portfolio_lite_woocommerce_settings', array(
			'title'          => esc_html__( 'Woocommerce Settings', 'creative-portfolio-lite' ),
			'panel'          => 'creative_portfolio_lite_panel_id',
			'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'creative_portfolio_lite_shop_sidebar',
		'label'       => esc_html__( 'Here you can enable or disable shop page sidebar.', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_woocommerce_settings',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'creative_portfolio_lite_product_sidebar',
		'label'       => esc_html__( 'Here you can enable or disable product page sidebar.', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_woocommerce_settings',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'creative_portfolio_lite_related_product_setting',
		'label'       => esc_html__( 'Here you can enable or disable your related products.', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_woocommerce_settings',
		'default'     => true,
		'priority'    => 10,
	] );

	new \Kirki\Field\Number(
	[
		'settings' => 'creative_portfolio_lite_per_columns',
		'label'    => esc_html__( 'Product Per Row', 'creative-portfolio-lite' ),
		'section'  => 'creative_portfolio_lite_woocommerce_settings',
		'default'  => 3,
		'choices'  => [
			'min'  => 1,
			'max'  => 4,
			'step' => 1,
		],
	]
	);

	new \Kirki\Field\Number(
	[
		'settings' => 'creative_portfolio_lite_product_per_page',
		'label'    => esc_html__( 'Product Per Page', 'creative-portfolio-lite' ),
		'section'  => 'creative_portfolio_lite_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', 'creative-portfolio-lite' ),
		'section'  => 'creative_portfolio_lite_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', 'creative-portfolio-lite' ),
		'section'  => 'creative_portfolio_lite_woocommerce_settings',
		'default'  => 3,
		'choices'  => [
			'min'  => 1,
			'max'  => 10,
			'step' => 1,
		],
	]
	);

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_shop_page_layout',
		'label'       => esc_html__( 'Shop Page Layout Setting', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_woocommerce_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','creative-portfolio-lite'),
            'Right Sidebar' => __('Right Sidebar','creative-portfolio-lite')
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_product_page_layout',
		'label'       => esc_html__( 'Product Page Layout Setting', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_woocommerce_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','creative-portfolio-lite'),
            'Right Sidebar' => __('Right Sidebar','creative-portfolio-lite')
		],
	] );

		new \Kirki\Field\Radio_Buttonset(
	[
		'settings'    => 'creative_portfolio_lite_woocommerce_pagination_position',
		'label'       => esc_html__( 'Woocommerce Pagination Alignment', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_woocommerce_settings',
		'default'     => 'Center',
		'priority'    => 10,
		'choices'     => [
			'Left'   => esc_html__( 'Left', 'creative-portfolio-lite' ),
			'Center' => esc_html__( 'Center', 'creative-portfolio-lite' ),
			'Right'  => esc_html__( 'Right', 'creative-portfolio-lite' ),
		],
	]
	);

}	

	// POST SECTION

	Kirki::add_section( 'creative_portfolio_lite_section_post', array(
	    'title'          => esc_html__( 'Post Settings', 'creative-portfolio-lite' ),
	    'panel'          => 'creative_portfolio_lite_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'creative_portfolio_lite_enable_post_heading',
		'section'     => 'creative_portfolio_lite_section_post',
		'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Post Settings.', 'creative-portfolio-lite' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'creative_portfolio_lite_post_excerpt_number',
		'label'       => esc_html__( 'Post Content Range', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_section_post',
		'default'     => 10,
		'choices'     => [
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'creative_portfolio_lite_pagination_setting',
		'label'       => esc_html__( 'Here you can enable or disable your Pagination.', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_section_post',
		'default'     => true,
		'priority'    => 10,
	] );

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

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

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_single_post_sidebar_layout',
		'label'       => esc_html__( 'Single Post Sidebar Layout Setting', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_section_post',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','creative-portfolio-lite'),
            'Right Sidebar' => __('Right Sidebar','creative-portfolio-lite'),
		],
	] );

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

	// Breadcrumb
	Kirki::add_section( 'creative_portfolio_lite_bradcrumb', array(
	    'title'          => esc_html__( 'Breadcrumb Settings', 'creative-portfolio-lite' ),
	    'panel'          => 'creative_portfolio_lite_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );


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

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_breadcrumb_enable',
		'label'       => esc_html__( 'Breadcrumb Enable / Disable', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_bradcrumb',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable', 'creative-portfolio-lite' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'default'     => '/',
        'settings' => 'creative_portfolio_lite_breadcrumb_separator' ,
        'label'    => esc_html__( 'Breadcrumb Separator',  'creative-portfolio-lite' ),
        'section'  => 'creative_portfolio_lite_bradcrumb',
    ] );

	// HEADER SECTION

	Kirki::add_section( 'creative_portfolio_lite_section_header', array(
	    'title'          => esc_html__( 'Header Settings', 'creative-portfolio-lite' ),
	    'panel'          => 'creative_portfolio_lite_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

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

    Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'creative_portfolio_lite_header_phone_number',
		'section'  => 'creative_portfolio_lite_section_header',
		'default'  => '',
		'priority' => 10,
		'sanitize_callback' => 'creative_portfolio_lite_sanitize_phone_number',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'creative_portfolio_lite_email_address_heading',
		'section'     => 'creative_portfolio_lite_section_header',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Email Address', 'creative-portfolio-lite' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'creative_portfolio_lite_header_email_address',
		'section'  => 'creative_portfolio_lite_section_header',
		'default'  => '',
		'priority' => 10,
		'sanitize_callback' => 'sanitize_email',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'creative_portfolio_lite_enable_hire_us',
		'section'     => 'creative_portfolio_lite_section_header',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Hire Us Button', 'creative-portfolio-lite' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'       => esc_html__( 'Button Text', 'creative-portfolio-lite' ),
		'settings' => 'creative_portfolio_lite_header_hire_us_txt',
		'section'  => 'creative_portfolio_lite_section_header',
		'default'  => '',
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'link',
		'label'       => esc_html__( 'Button Link', 'creative-portfolio-lite' ),
		'settings' => 'creative_portfolio_lite_header_hire_us_lnk',
		'section'  => 'creative_portfolio_lite_section_header',
		'default'  => '',
		'priority' => 10,
	] );

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

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

	// SLIDER SECTION

	Kirki::add_section( 'creative_portfolio_lite_blog_slide_section', array(
        'title'          => esc_html__( 'Slider Settings', 'creative-portfolio-lite' ),
        'panel'          => 'creative_portfolio_lite_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

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

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_blog_box_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable', 'creative-portfolio-lite' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_title_unable_disable',
		'label'       => esc_html__( 'Slide Title Enable / Disable', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable', 'creative-portfolio-lite' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_button_unable_disable',
		'label'       => esc_html__( 'Slide Button Enable / Disable', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable', 'creative-portfolio-lite' ),
		],
	] );

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

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'settings'    => 'creative_portfolio_lite_blog_slide_number',
		'label'       => esc_html__( 'Number of slides to show', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'     => 0,
		'choices'     => [
			'min'  => 1,
			'max'  => 5,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'select',
		'settings'    => 'creative_portfolio_lite_blog_slide_category',
		'label'       => esc_html__( 'Select the category to show slider ( Image Dimension 1600 x 600 )', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'     => '',
		'placeholder' => esc_html__( 'Select an category...', 'creative-portfolio-lite' ),
		'priority'    => 10,
		'choices'     => creative_portfolio_lite_get_categories_select(),
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'    => esc_html__( 'Extra Text', 'creative-portfolio-lite' ),
		'settings' => 'creative_portfolio_lite_slider_extra_text',
		'section'  => 'creative_portfolio_lite_blog_slide_section',
		'default'  => '',
		'priority' => 10,
	] );

		Kirki::add_field( 'theme_config_id', [
		'type'     => 'url',
		'label'    => esc_html__( 'VIEW SHOWCASE button URL', 'creative-portfolio-lite' ),
		'settings' => 'creative_portfolio_lite_second_url',
		'section'  => 'creative_portfolio_lite_blog_slide_section',
		'default'  => '',
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
	'type'        => 'custom',
	'settings'    => 'creative_portfolio_lite_footer_enable_heading_22',
	'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Content Alignment', 'creative-portfolio-lite' ) . '</h3>',
	'priority'    => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_slider_content_alignment',
		'label'       => esc_html__( 'Slider Content Alignment', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'     => 'LEFT-ALIGN',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'creative-portfolio-lite' ),
			'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'creative-portfolio-lite' ),
			'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'creative-portfolio-lite' ),

		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_slider_opacity_color',
		'label'       => esc_html__( 'Slider Opacity Option', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_blog_slide_section',
		'default'     => '0.6',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'0' => esc_html__( '0', 'creative-portfolio-lite' ),
			'0.1' => esc_html__( '0.1', 'creative-portfolio-lite' ),
			'0.2' => esc_html__( '0.2', 'creative-portfolio-lite' ),
			'0.3' => esc_html__( '0.3', 'creative-portfolio-lite' ),
			'0.4' => esc_html__( '0.4', 'creative-portfolio-lite' ),
			'0.5' => esc_html__( '0.5', 'creative-portfolio-lite' ),
			'0.6' => esc_html__( '0.6', 'creative-portfolio-lite' ),
			'0.7' => esc_html__( '0.7', 'creative-portfolio-lite' ),
			'0.8' => esc_html__( '0.8', 'creative-portfolio-lite' ),
			'0.9' => esc_html__( '0.9', 'creative-portfolio-lite' ),
			'unset' => esc_html__( 'unset', 'creative-portfolio-lite' ),
			

		],
	] );

	//PROJECTS SECTION

	Kirki::add_section( 'creative_portfolio_lite_project_section', array(
	    'title'          => esc_html__( 'Our Project Settings', 'creative-portfolio-lite' ),
	    'panel'          => 'creative_portfolio_lite_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_project_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>', 'creative-portfolio-lite' ) . '</div>',
	    'priority'    => 1,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'creative_portfolio_lite_enable_heading',
		'section'     => 'creative_portfolio_lite_project_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Our Project',  'creative-portfolio-lite' ) . '</h3>',
		'priority'    => 1,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_projects_section_enable',
		'label'       => esc_html__( 'Section Enable / Disable',  'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_project_section',
		'default'     => false,
		'priority'    => 2,
		'choices'     => [
			'on'  => esc_html__( 'Enable',  'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable',  'creative-portfolio-lite' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_projects_text_enable',
		'label'       => esc_html__( 'Project Text Enable / Disable ',  'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_project_section',
		'default'     => '1',
		'priority'    => 2,
		'choices'     => [
			'on'  => esc_html__( 'Enable',  'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable',  'creative-portfolio-lite' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_projects_heading_enable',
		'label'       => esc_html__( 'Project Heading Enable / Disable',  'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_project_section',
		'default'     => '1',
		'priority'    => 2,
		'choices'     => [
			'on'  => esc_html__( 'Enable',  'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable',  'creative-portfolio-lite' ),
		],
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'creative_portfolio_lite_projects_text_heading',
		'section'     => 'creative_portfolio_lite_project_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Project', 'creative-portfolio-lite' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'       => esc_html__( 'Text', 'creative-portfolio-lite' ),
		'settings' => 'creative_portfolio_lite_projects_heading_text',
		'section'  => 'creative_portfolio_lite_project_section',
		'default'  => '',
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'       => esc_html__( 'Heading', 'creative-portfolio-lite' ),
		'settings' => 'creative_portfolio_lite_projects_heading',
		'section'  => 'creative_portfolio_lite_project_section',
		'default'  => '',
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'settings'    => 'creative_portfolio_lite_projects_number',
		'label'       => esc_html__( 'Number of Tabs to show', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_project_section',
		'default'     => '',
		'choices'     => [
			'min'  => 0,
			'max'  => 80,
			'step' => 1,
		],
	] );

	$featured_post = get_theme_mod('creative_portfolio_lite_projects_number','');
    	for ( $j = 1; $j <= $featured_post; $j++ ) :

    	Kirki::add_field( 'theme_config_id', [
	        'type'        => 'text',
	        'settings'    => 'creative_portfolio_lite_projects_text' .$j,
	        'label'       => esc_html__( 'Tab Text ', 'creative-portfolio-lite' ).$j,
	        'section'     => 'creative_portfolio_lite_project_section',
	        'default'     => '',
	    ] );

		Kirki::add_field( 'theme_config_id', [
			'type'        => 'select',
			'settings'    => 'creative_portfolio_lite_projects_category'.$j,
			'label'       => esc_html__( 'Select the category to show project ', 'creative-portfolio-lite' ).$j,
			'section'     => 'creative_portfolio_lite_project_section',
			'default'     => '',
			'placeholder' => esc_html__( 'Select an category...', 'creative-portfolio-lite' ),
			'priority'    => 10,
			'choices'     => creative_portfolio_lite_get_categories_select(),
		] );

	endfor;

	// FOOTER SECTION

	Kirki::add_section( 'creative_portfolio_lite_footer_section', array(
        'title'          => esc_html__( 'Footer Settings', 'creative-portfolio-lite' ),
        'panel'          => 'creative_portfolio_lite_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'creative-portfolio-lite' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( CREATIVE_PORTFOLIO_LITE_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'creative-portfolio-lite' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'creative_portfolio_lite_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>', 'creative-portfolio-lite' ) . '</div>',
	] );

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

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'creative_portfolio_lite_copyright_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_footer_section',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'creative-portfolio-lite' ),
			'off' => esc_html__( 'Disable', 'creative-portfolio-lite' ),
		],
	] );

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

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

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

	new \Kirki\Field\Select(
	[
		'settings'    => 'creative_portfolio_lite_copyright_text_alignment',
		'label'       => esc_html__( 'Copyright text Alignment', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_footer_section',
		'default'     => 'LEFT-ALIGN',
		'placeholder' => esc_html__( 'Choose an option', 'creative-portfolio-lite' ),
		'choices'     => [
			'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'creative-portfolio-lite' ),
			'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'creative-portfolio-lite' ),
			'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'creative-portfolio-lite' ),

		],
	] );

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

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'creative_portfolio_lite_copyright_bg',
		'label'       => __( 'Choose Your Copyright Background Color', 'creative-portfolio-lite' ),
		'section'     => 'creative_portfolio_lite_footer_section',
		'default'     => '',
	] );

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

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

}

/*
 *  Customizer Notifications
 */

$creative_portfolio_lite_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', 'creative-portfolio-lite' ), 
                '<strong>' . esc_html__( 'Kirki Customizer', 'creative-portfolio-lite' ) . '</strong>'
            ),
        ),
    ),
    'creative_portfolio_lite_recommended_actions'       => array(),
    'creative_portfolio_lite_recommended_actions_title' => esc_html__( 'Recommended Actions', 'creative-portfolio-lite' ),
    'creative_portfolio_lite_recommended_plugins_title' => esc_html__( 'Recommended Plugin', 'creative-portfolio-lite' ),
    'creative_portfolio_lite_install_button_label'      => esc_html__( 'Install and Activate', 'creative-portfolio-lite' ),
    'creative_portfolio_lite_activate_button_label'     => esc_html__( 'Activate', 'creative-portfolio-lite' ),
    'creative_portfolio_lite_deactivate_button_label'   => esc_html__( 'Deactivate', 'creative-portfolio-lite' ),
);

Creative_Portfolio_Lite_Customizer_Notify::init( apply_filters( 'creative_portfolio_lite_customizer_notify_array', $creative_portfolio_lite_config_customizer ) );