<?php
Kirki::add_section( 'sidebar_settings_section', array(
    'title'          => esc_html__( 'Sidebar Settings', 'author-blog' ),
    'description'          => esc_html__( 'Control Sidebar Of Your Website', 'author-blog' ),
    'panel'          => 'author_blog_global_panel',
) );

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

Kirki::add_field( 'author_blog_config_config', [
	'type'        => 'select',
	'settings'    => 'blog_page_post_column',
	'label'       => esc_html__( 'Post Column', 'author-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'    => '3',
	'choices' => [
			'4' => __( '4 Colmun', 'author-blog' ),
			'3' => __( '3 Column', 'author-blog' ),
			'2' => __( '2 Column', 'author-blog' ),
		],
] );

Kirki::add_field( 'author_blog_config_config', array(
    'type'        => 'custom',
    'settings'    => 'sep_after_blog_post_column',
    'label'       => '',
    'section'     => 'sidebar_settings_section',
    'default'     => '<hr>',
) );

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

Kirki::add_field( 'author_blog_config_config', [
	'type'        => 'select',
	'settings'    => 'archive_page_post_column',
	'label'       => esc_html__( 'Post Column', 'author-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'    => '3',
	'choices' => [
			'4' => __( '4 Colmun', 'author-blog' ),
			'3' => __( '3 Column', 'author-blog' ),
			'2' => __( '2 Column', 'author-blog' ),
		],
] );

Kirki::add_field( 'author_blog_config_config', array(
    'type'        => 'custom',
    'settings'    => 'sep_after_archive_post_column',
    'label'       => '',
    'section'     => 'sidebar_settings_section',
    'default'     => '<hr>',
) );

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

Kirki::add_field( 'author_blog_config_config', array(
    'type'        => 'custom',
    'settings'    => 'sep_after_page_sidebar',
    'label'       => '',
    'section'     => 'sidebar_settings_section',
    'default'     => '<hr>',
) );


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

Kirki::add_field( 'author_blog_config_config', array(
    'type'        => 'custom',
    'settings'    => 'sep_after_post_sidebar',
    'label'       => '',
    'section'     => 'sidebar_settings_section',
    'default'     => '<hr>',
) );

Kirki::add_field( 'author_blog_config_config', [
	'type'        => 'select',
	'settings'    => 'search_page_sidebar',
	'label'       => esc_html__( 'Search Page Sidebar', 'author-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'no',
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'author-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'author-blog' ),
		'no' => esc_html__( 'No Sidebar', 'author-blog' ),
	],
] );

Kirki::add_field( 'author_blog_config_config', [
	'type'        => 'select',
	'settings'    => 'search_page_post_column',
	'label'       => esc_html__( 'Post Column', 'author-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'    => '3',
	'choices' => [
			'4' => __( '4 Colmun', 'author-blog' ),
			'3' => __( '3 Column', 'author-blog' ),
			'2' => __( '2 Column', 'author-blog' ),
		],
] );