b0y-101 Mini Shell


Current Path : E:/wordpress/wp-content/themes/photographer-elementor/includes/
File Upload :
Current File : E:/wordpress/wp-content/themes/photographer-elementor/includes/customizer.php

<?php

if ( class_exists("Kirki")){

	Kirki::add_config('theme_config_id', array(
		'capability'   =>  'edit_theme_options',
		'option_type'  =>  'theme_mod',
	));

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

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

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

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_site_tittle_font_heading',
		'section'     => 'title_tagline',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Site Title Font Size', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_site_tittle_font_size',
		'type'        => 'number',
		'section'     => 'title_tagline',
		'transport' => 'auto',
		'output' => array(
			array(
				'element'  => array('.logo a'),
				'property' => 'font-size',
				'suffix' => 'px'
			),
		),
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_site_tagline_font_heading',
		'section'     => 'title_tagline',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Site Tagline Font Size', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_site_tagline_font_size',
		'type'        => 'number',
		'section'     => 'title_tagline',
		'transport' => 'auto',
		'output' => array(
			array(
				'element'  => array('.logo span'),
				'property' => 'font-size',
				'suffix' => 'px'
			),
		),
	) );

	// HEADER SECTION

	Kirki::add_section( 'photographer_elementor_section_header', array(
	    'title'          => esc_html__( 'Header Settings', 'photographer-elementor' ),
	    'description'    => esc_html__( 'Here you can add header information.', 'photographer-elementor' ),
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'photographer_elementor_sticky_header',
		'label'       => esc_html__( 'Enable/Disable Sticky Header', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_section_header',
		'default'     => 0,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'photographer-elementor' ),
			'off' => esc_html__( 'Disable', 'photographer-elementor' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_menu_size_heading',
		'section'     => 'photographer_elementor_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Menu Font Size(px)', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_menu_size',
		'label'       => __( 'Enter a value in pixels. Example:20px', 'photographer-elementor' ),
		'type'        => 'text',
		'section'     => 'photographer_elementor_section_header',
		'transport' => 'auto',
		'output' => array(
			array(
				'element'  => array( '#main-menu a', '#main-menu ul li a', '#main-menu li a'),
				'property' => 'font-size',
			),
		),
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_menu_text_transform_heading',
		'section'     => 'photographer_elementor_section_header',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Menu Text Transform', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'        => 'select',
		'settings'    => 'photographer_elementor_menu_text_transform',
		'section'     => 'photographer_elementor_section_header',
		'default'     => 'capitalize',
		'choices'     => [
			'none' => esc_html__( 'Normal', 'photographer-elementor' ),
			'uppercase' => esc_html__( 'Uppercase', 'photographer-elementor' ),
			'lowercase' => esc_html__( 'Lowercase', 'photographer-elementor' ),
			'capitalize' => esc_html__( 'Capitalize', 'photographer-elementor' ),
		],
		'output' => array(
			array(
				'element'  => array( '#main-menu a', '#main-menu ul li a', '#main-menu li a'),
				'property' => ' text-transform',
			),
		),
	 ) );

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

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'    => esc_html__( 'Button Text', 'photographer-elementor' ),
		'settings' => 'photographer_elementor_header_button_text',
		'section'  => 'photographer_elementor_section_header',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'url',
		'label'    =>  esc_html__( 'Button Link', 'photographer-elementor' ),
		'settings' => 'photographer_elementor_header_button_url',
		'section'  => 'photographer_elementor_section_header',
		'default'  => '',
	] );


	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_menu_color',
		'label'       => __( 'Menu Color', 'photographer-elementor' ),
		'type'        => 'color',
		'section'     => 'photographer_elementor_section_header',
		'transport' => 'auto',
		'default'     => '#000000',
		'choices'     => [
			'alpha' => true,
		],
		'output' => array(
			array(
				'element'  => array( '#main-menu a', '#main-menu ul li a', '#main-menu li a'),
				'property' => 'color',
			),
		),
	) );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_menu_hover_color',
		'label'       => __( 'Menu Hover Color', 'photographer-elementor' ),
		'type'        => 'color',
		'default'     => '#fff',
		'section'     => 'photographer_elementor_section_header',
		'transport' => 'auto',
		'choices'     => [
			'alpha' => true,
		],
		'output' => array(
			array(
				'element'  => array( '#main-menu a:hover', '#main-menu ul li a:hover', '#main-menu li:hover > a'),
				'property' => 'color',
			),

		),
	) );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_submenu_color',
		'label'       => __( 'Submenu Color', 'photographer-elementor' ),
		'type'        => 'color',
		'section'     => 'photographer_elementor_section_header',
		'transport' => 'auto',
		'default'     => '#000000',
		'choices'     => [
			'alpha' => true,
		],
		'output' => array(
			array(
				'element'  => array( '#main-menu ul.children li a', '#main-menu ul.sub-menu li a'),
				'property' => 'color',
			),
		),
	) );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_submenu_hover_color',
		'label'       => __( 'Submenu Hover Color', 'photographer-elementor' ),
		'type'        => 'color',
		'section'     => 'photographer_elementor_section_header',
		'transport' => 'auto',
		'default'     => '#fff',
		'choices'     => [
			'alpha' => true,
		],
		'output' => array(
			array(
				'element'  => array( '#main-menu ul.children li a:hover', '#main-menu ul.sub-menu li a:hover'),
				'property' => 'color',
			),
		),
	) );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_submenu_hover_background_color',
		'label'       => __( 'Submenu Hover Background Color', 'photographer-elementor' ),
		'type'        => 'color',
		'section'     => 'photographer_elementor_section_header',
		'transport' => 'auto',
		'default'     => '#ff0101',
		'choices'     => [
			'alpha' => true,
		],
		'output' => array(
			array(
				'element'  => array( '#main-menu ul.children li a:hover', '#main-menu ul.sub-menu li a:hover'),
				'property' => 'background',
			),
		),
	) );

	// TYPOGRAPHY SETTINGS
	Kirki::add_panel( 'photographer_elementor_typography_panel', array(
		'priority' => 10,
		'title'    => __( 'Typography', 'photographer-elementor' ),
	) );

	//Heading 1 Section

	Kirki::add_section( 'photographer_elementor_h1_typography_setting', array(
		'title'    => __( 'Heading 1', 'photographer-elementor' ),
		'panel'    => 'photographer_elementor_typography_panel',
		'priority' => 0,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_h1_typography_heading',
		'section'     => 'photographer_elementor_h1_typography_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading 1 Typography', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'  =>  'typography',
		'settings'  => 'photographer_elementor_h1_typography_font',
		'section'   =>  'photographer_elementor_h1_typography_setting',
		'default'   =>  [
			'font-family'   =>  'Jost',
			'variant'       =>  '700',
			'font-size'       => '',
			'line-height'   =>  '',
			'letter-spacing'    =>  '',
			'text-transform'    =>  '',
		],
		'transport'     =>  'auto',
		'output'        =>  [
			[
				'element'   =>  'h1',
				'suffix' => '!important'
			],
		],
	) );


	//Heading 2 Section

	Kirki::add_section( 'photographer_elementor_h2_typography_setting', array(
		'title'    => __( 'Heading 2', 'photographer-elementor' ),
		'panel'    => 'photographer_elementor_typography_panel',
		'priority' => 0,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_h2_typography_heading',
		'section'     => 'photographer_elementor_h2_typography_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading 2 Typography', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'  =>  'typography',
		'settings'  => 'photographer_elementor_h2_typography_font',
		'section'   =>  'photographer_elementor_h2_typography_setting',
		'default'   =>  [
			'font-family'   =>  'Jost',
			'font-size'       => '',
			'variant'       =>  '700',
			'line-height'   =>  '',
			'letter-spacing'    =>  '',
			'text-transform'    =>  '',
		],
		'transport'     =>  'auto',
		'output'        =>  [
			[
				'element'   =>  'h2',
				'suffix' => '!important'
			],
		],
	) );

	//Heading 3 Section

	Kirki::add_section( 'photographer_elementor_h3_typography_setting', array(
		'title'    => __( 'Heading 3', 'photographer-elementor' ),
		'panel'    => 'photographer_elementor_typography_panel',
		'priority' => 0,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_h3_typography_heading',
		'section'     => 'photographer_elementor_h3_typography_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading 3 Typography', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'  =>  'typography',
		'settings'  => 'photographer_elementor_h3_typography_font',
		'section'   =>  'photographer_elementor_h3_typography_setting',
		'default'   =>  [
			'font-family'   =>  'Jost',
			'variant'       =>  '700',
			'font-size'       => '',
			'line-height'   =>  '',
			'letter-spacing'    =>  '',
			'text-transform'    =>  '',
		],
		'transport'     =>  'auto',
		'output'        =>  [
			[
				'element'   =>  'h3',
				'suffix' => '!important'
			],
		],
	) );

	//Heading 4 Section

	Kirki::add_section( 'photographer_elementor_h4_typography_setting', array(
		'title'    => __( 'Heading 4', 'photographer-elementor' ),
		'panel'    => 'photographer_elementor_typography_panel',
		'priority' => 0,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_h4_typography_heading',
		'section'     => 'photographer_elementor_h4_typography_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading 4 Typography', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'  =>  'typography',
		'settings'  => 'photographer_elementor_h4_typography_font',
		'section'   =>  'photographer_elementor_h4_typography_setting',
		'default'   =>  [
			'font-family'   =>  'Jost',
			'variant'       =>  '700',
			'font-size'       => '',
			'line-height'   =>  '',
			'letter-spacing'    =>  '',
			'text-transform'    =>  '',
		],
		'transport'     =>  'auto',
		'output'        =>  [
			[
				'element'   =>  'h4',
				'suffix' => '!important'
			],
		],
	) );

	//Heading 5 Section

	Kirki::add_section( 'photographer_elementor_h5_typography_setting', array(
		'title'    => __( 'Heading 5', 'photographer-elementor' ),
		'panel'    => 'photographer_elementor_typography_panel',
		'priority' => 0,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_h5_typography_heading',
		'section'     => 'photographer_elementor_h5_typography_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading 5 Typography', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'  =>  'typography',
		'settings'  => 'photographer_elementor_h5_typography_font',
		'section'   =>  'photographer_elementor_h5_typography_setting',
		'default'   =>  [
			'font-family'   =>  'Jost',
			'variant'       =>  '700',
			'font-size'       => '',
			'line-height'   =>  '',
			'letter-spacing'    =>  '',
			'text-transform'    =>  '',
		],
		'transport'     =>  'auto',
		'output'        =>  [
			[
				'element'   =>  'h5',
				'suffix' => '!important'
			],
		],
	) );

	//Heading 6 Section

	Kirki::add_section( 'photographer_elementor_h6_typography_setting', array(
		'title'    => __( 'Heading 6', 'photographer-elementor' ),
		'panel'    => 'photographer_elementor_typography_panel',
		'priority' => 0,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_h6_typography_heading',
		'section'     => 'photographer_elementor_h6_typography_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading 6 Typography', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'  =>  'typography',
		'settings'  => 'photographer_elementor_h6_typography_font',
		'section'   =>  'photographer_elementor_h6_typography_setting',
		'default'   =>  [
			'font-family'   =>  'Jost',
			'variant'       =>  '700',
			'font-size'       => '',
			'line-height'   =>  '',
			'letter-spacing'    =>  '',
			'text-transform'    =>  '',
		],
		'transport'     =>  'auto',
		'output'        =>  [
			[
				'element'   =>  'h6',
				'suffix' => '!important'
			],
		],
	) );

	//body Typography

	Kirki::add_section( 'photographer_elementor_body_typography_setting', array(
		'title'    => __( 'Content Typography', 'photographer-elementor' ),
		'panel'    => 'photographer_elementor_typography_panel',
		'priority' => 0,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_body_typography_heading',
		'section'     => 'photographer_elementor_body_typography_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Content  Typography', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'  =>  'typography',
		'settings'  => 'photographer_elementor_body_typography_font',
		'section'   =>  'photographer_elementor_body_typography_setting',
		'default'   =>  [
			'font-family'   =>  'Poppins',
			'variant'       =>  '',
		],
		'transport'     =>  'auto',
		'output'        =>  [
			[
				'element'   => 'body',
				'suffix' => '!important'
			],
		],
	) );

	//ADDITIONAL SETTINGS

	Kirki::add_section( 'photographer_elementor_additional_setting', array(
		'title'          => esc_html__( 'Additional Settings', 'photographer-elementor' ),
		'description'    => esc_html__( 'Additional Settings of themes', 'photographer-elementor' ),
		'priority'       => 10,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'photographer_elementor_scroll_enable_setting',
		'label'       => esc_html__( 'Here you can enable or disable your scroller.', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_additional_setting',
		'default'     => '0',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_header_background_attachment_heading',
		'section'     => 'photographer_elementor_additional_setting',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Header Image Attachment', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'        => 'select',
		'settings'    => 'photographer_elementor_header_background_attachment',
		'section'     => 'photographer_elementor_additional_setting',
		'default'     => 'scroll',
		'choices'     => [
			'scroll' => esc_html__( 'Scroll', 'photographer-elementor' ),
			'fixed' => esc_html__( 'Fixed', 'photographer-elementor' ),
		],
		'output' => array(
			array(
				'element'  => '.header-image-box',
				'property' => 'background-attachment',
			),
		),
	 ) );

    // POST SECTION

	Kirki::add_section( 'photographer_elementor_blog_post', array(
	    'title'          => esc_html__( 'Post Settings', 'photographer-elementor' ),
	    'description'    => esc_html__( 'Here you can add post information.', 'photographer-elementor' ),
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'photographer_elementor_date_hide',
		'label'       => esc_html__( 'Enable / Disable Post Date', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'photographer_elementor_author_hide',
		'label'       => esc_html__( 'Enable / Disable Post Author', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'photographer_elementor_comment_hide',
		'label'       => esc_html__( 'Enable / Disable Post Comment', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'photographer_elementor_blog_post_featured_image',
		'label'       => esc_html__( 'Enable / Disable Post Image', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_length_setting_heading',
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Blog Post Content Limit', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'settings'    => 'photographer_elementor_length_setting',
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '15',
		'priority'    => 10,
		'choices'  => [
					'min'  => -10,
					'max'  => 40,
		 			'step' => 1,
				],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'label'       => esc_html__( 'Enable / Disable Single Post Tag', 'photographer-elementor' ),
		'settings'    => 'photographer_elementor_single_post_tag',
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'label'       => esc_html__( 'Enable / Disable Single Post Category', 'photographer-elementor' ),
		'settings'    => 'photographer_elementor_single_post_category',
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'photographer_elementor_single_post_featured_image',
		'label'       => esc_html__( 'Enable / Disable Single Post Image', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'photographer_elementor_single_post_radius',
		'section'     => 'photographer_elementor_blog_post',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Single Post Image Border Radius(px)', 'photographer-elementor' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', array(
		'settings'    => 'photographer_elementor_single_post_border_radius',
		'label'       => __( 'Enter a value in pixels. Example:15px', 'photographer-elementor' ),
		'type'        => 'text',
		'section'     => 'photographer_elementor_blog_post',
		'transport' => 'auto',
		'output' => array(
			array(
				'element'  => array('.post-img img'),
				'property' => 'border-radius',
			),
		),
	) );

	// WOOCOMMERCE SETTINGS

	Kirki::add_section( 'photographer_elementor_woocommerce_settings', array(
		'title'          => esc_html__( 'Woocommerce Settings', 'photographer-elementor' ),
		'description'    => esc_html__( 'Woocommerce Settings of themes', 'photographer-elementor' ),
		'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'photographer_elementor_shop_page_sidebar',
		'label'       => esc_html__( 'Enable/Disable Shop Page Sidebar', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_woocommerce_settings',
		'default'     => 'true',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', array(
		'type'        => 'select',
		'label'       => esc_html__( 'Shop Page Layouts', 'photographer-elementor' ),
		'settings'    => 'photographer_elementor_shop_page_layout',
		'section'     => 'photographer_elementor_woocommerce_settings',
		'default'     => 'Right Sidebar',
		'choices'     => [
			'Right Sidebar' => esc_html__( 'Right Sidebar', 'photographer-elementor' ),
			'Left Sidebar' => esc_html__( 'Left Sidebar', 'photographer-elementor' ),
		],
		'active_callback'  => [
			[
				'setting'  => 'photographer_elementor_shop_page_sidebar',
				'operator' => '===',
				'value'    => true,
			],
		]

	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'select',
		'label'       => esc_html__( 'Products Per Row', 'photographer-elementor' ),
		'settings'    => 'photographer_elementor_products_per_row',
		'section'     => 'photographer_elementor_woocommerce_settings',
		'default'     => '3',
		'priority'    => 10,
		'choices'     => [
			'2' => '2',
			'3' => '3',
			'4' => '4',
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'label'       => esc_html__( 'Products Per Page', 'photographer-elementor' ),
		'settings'    => 'photographer_elementor_products_per_page',
		'section'     => 'photographer_elementor_woocommerce_settings',
		'default'     => '9',
		'priority'    => 10,
		'choices'  => [
					'min'  => 0,
					'max'  => 50,
					'step' => 1,
				],
	] );

	// FOOTER SECTION

	Kirki::add_section( 'photographer_elementor_footer_section', array(
        'title'          => esc_html__( 'Footer Settings', 'photographer-elementor' ),
        'description'    => esc_html__( 'Here you can change copyright text', 'photographer-elementor' ),
        'priority'       => 160,
    ) );

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

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

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

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'photographer_elementor_copyright_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'photographer-elementor' ),
		'section'     => 'photographer_elementor_footer_section',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'photographer-elementor' ),
			'off' => esc_html__( 'Disable', 'photographer-elementor' ),
		],
	] );
}

Copyright © 2019 by b0y-101