<?php
/*Blog Page Settings*/

Kirki::add_section( 'sidebar_settings_section', array(
    'title'          => esc_html__( 'Sidebar Settings', 'digital-marketing-blog' ),
    'description'          => esc_html__( 'Control Sidebar Of Your Website', 'digital-marketing-blog' ),
    'panel'          => 'digital_marketing_blog_global_panel',
) );

Kirki::add_field( 'digital_marketing_blog_config', [
	'type'        => 'select',
	'settings'    => 'blog_page_sidebar',
	'label'       => esc_html__( 'Blog Page Sidebar', 'digital-marketing-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'no',
	'priority'    => 10,
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'digital-marketing-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'digital-marketing-blog' ),
		'no' => esc_html__( 'No Sidebar', 'digital-marketing-blog' ),
	],
] );

Kirki::add_field( 'digital_marketing_blog_config', [
	'type'        => 'select',
	'settings'    => 'archive_page_sidebar',
	'label'       => esc_html__( 'Archive Page Sidebar', 'digital-marketing-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'no',
	'priority'    => 10,
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'digital-marketing-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'digital-marketing-blog' ),
		'no' => esc_html__( 'No Sidebar', 'digital-marketing-blog' ),
	],
] );

Kirki::add_field( 'digital_marketing_blog_config', [
	'type'        => 'select',
	'settings'    => 'page_sidebar',
	'label'       => esc_html__( 'Page Sidebar', 'digital-marketing-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'no',
	'priority'    => 10,
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'digital-marketing-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'digital-marketing-blog' ),
		'no' => esc_html__( 'No Sidebar', 'digital-marketing-blog' ),
	],
] );

Kirki::add_field( 'digital_marketing_blog_config', [
	'type'        => 'select',
	'settings'    => 'post_sidebar',
	'label'       => esc_html__( 'Post Sidebar', 'digital-marketing-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'no',
	'priority'    => 10,
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'digital-marketing-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'digital-marketing-blog' ),
		'no' => esc_html__( 'No Sidebar', 'digital-marketing-blog' ),
	],
] );
