<?php 

new \Kirki\Field\Checkbox_Switch(
	[
    'type'        => 'switch',
    'settings'    => 'edify_hide_banner',
    'label'       => esc_html__( 'Show Page Banner','edify'),
    'section'     => 'page_header_section_id',
    'default'     => true,
    'priority'    => 10,
    'choices'     => [
        'on'  => esc_html__( 'Yes','edify'),
        'off' => esc_html__( 'No','edify'),
    ],
] );

new \Kirki\Field\Color(
         [
        'type'        => 'color',
        'settings'    => 'page_header_color',
        'label'       => __( 'Page Banner Color','edify'),
        'description'       => __( 'This is a Breadcrumb bg color control','edify'),
        'section'     => 'page_header_section_id',
        'default'     => '',
        'active_callback' => [
            [
                'setting'  => 'edify_hide_banner',
                'operator' => '==',
                'value'    => 'on',
            ]
        ],
        'choices'     => [
			'alpha' => true,
		    ],
        ],
        
    );   

new \Kirki\Field\Checkbox_Switch(
	[
    'type'        => 'switch',
    'settings'    => 'edify_hide_page_title',
    'label'       => esc_html__( 'Hide Page Title','edify'),
    'description' => esc_html__( 'Hides the page title shown above the content. Does not affect the header banner.','edify'),
    'section'     => 'page_header_section_id',
    'default'     => false,
    'priority'    => 10,
    'choices'     => [
        'on'  => esc_html__( 'Yes','edify'),
        'off' => esc_html__( 'No','edify'),
    ],
] );

new \Kirki\Field\Dimensions([
    'type'        => 'dimensions',
    'settings'    => 'page_wrapper_padding',
    'label'       => esc_html__( 'Page Wrapper Padding','edify'),
    'description' => esc_html__( 'Type padding with units, e.g. 40px. Applies to the content area of all Pages.','edify'),
    'section'     => 'page_header_section_id',
    'default'     => [
        'padding-top'    => '40px',
        'padding-bottom' => '80px',
    ],
] );
    


/**
 * Save data as integer (image ID)
 */
new \Kirki\Field\Image(
	[
		'settings'    => 'breadcrumb_bg_img',
		'label'       => esc_html__( 'Breadcrumb Background Image', 'edify' ),
		'description' => esc_html__( 'Breadcrumb Background Image', 'edify' ),
		'section'     => 'page_header_section_id',
		'default'     => '',
	
		'active_callback' => [
            [
                'setting'  => 'edify_hide_banner',
                'operator' => '==',
                'value'    => 'on',
            ]
        ],
        	'choices'     => [
			'save_as' => 'id',
		],
	]
);



Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'text',
    'settings'    => 'blog_title_breadcrumb',
    'label'       => esc_html__( 'Blog Breacrumb Text','edify'),
    'section'     => 'page_header_section_id',
    'default'     => esc_html__( 'Blog','edify'),
    'priority'    => 10,
] );


Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'text',
    'settings'    => 'blog_title',
    'label'       => esc_html__( 'Blog Page Title','edify'),
    'section'     => 'page_header_section_id',
    'default'     => esc_html__( 'Blog Page','edify'),
    'priority'    => 10,
] );


Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'text',
    'settings'    => 'contact_title_breadcrumb',
    'label'       => esc_html__( 'Contact Breacrumb Text','edify'),
    'section'     => 'page_header_section_id',
    'default'     => esc_html__( 'Contact','edify'),
    'priority'    => 10,
] );


Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'text',
    'settings'    => 'contact_title',
    'label'       => esc_html__( 'Contact Page Title','edify'),
    'section'     => 'page_header_section_id',
    'default'     => esc_html__( 'Contact Page','edify'),
    'priority'    => 10,
] );




   