<?php
/*Blog Page Settings*/

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

Kirki::add_field( 'book_review_blog_config', [
	'type'        => 'select',
	'settings'    => 'blog_page_sidebar',
	'label'       => esc_html__( 'Blog Page Sidebar', 'book-review-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'right',
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'book-review-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'book-review-blog' ),
		'no' => esc_html__( 'No Sidebar', 'book-review-blog' ),
		'both' => esc_html__( 'Left & Right Sidebar', 'book-review-blog' ),
		'narrow' => esc_html__( 'No Sidebar Narrow', 'book-review-blog' ),
	],
] );

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

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

Kirki::add_field( 'book_review_blog_config', [
	'type'        => 'select',
	'settings'    => 'archive_page_sidebar',
	'label'       => esc_html__( 'Archive Page Sidebar', 'book-review-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'right',
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'book-review-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'book-review-blog' ),
		'no' => esc_html__( 'No Sidebar', 'book-review-blog' ),
		'both' => esc_html__( 'Left & Right Sidebar', 'book-review-blog' ),
		'narrow' => esc_html__( 'No Sidebar Narrow', 'book-review-blog' ),
	],
] );

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

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

Kirki::add_field( 'book_review_blog_config', [
	'type'        => 'select',
	'settings'    => 'page_sidebar',
	'label'       => esc_html__( 'Page Sidebar', 'book-review-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'right',
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'book-review-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'book-review-blog' ),
		'no' => esc_html__( 'No Sidebar', 'book-review-blog' ),
		'both' => esc_html__( 'Left & Right Sidebar', 'book-review-blog' ),
		'narrow' => esc_html__( 'No Sidebar Narrow', 'book-review-blog' ),
	],
] );

Kirki::add_field( 'book_review_blog_config', [
	'type'        => 'select',
	'settings'    => 'post_sidebar',
	'label'       => esc_html__( 'Post Sidebar', 'book-review-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'right',
	'multiple'    => 1,
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'book-review-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'book-review-blog' ),
		'no' => esc_html__( 'No Sidebar', 'book-review-blog' ),
		'both' => esc_html__( 'Left & Right Sidebar', 'book-review-blog' ),
		'narrow' => esc_html__( 'No Sidebar Narrow', 'book-review-blog' ),
	],
] );
Kirki::add_field( 'book_review_blog_config', array(
    'type'        => 'custom',
    'settings'    => 'sep_after_post_sidebar',
    'label'       => '',
    'section'     => 'sidebar_settings_section',
    'default'     => '<hr>',
) );
Kirki::add_field( 'book_review_blog_config', [
	'type'        => 'select',
	'settings'    => 'search_page_sidebar',
	'label'       => esc_html__( 'Search Page Sidebar', 'book-review-blog' ),
	'section'     => 'sidebar_settings_section',
	'default'     => 'right',
	'choices'     => [
		'left' => esc_html__( 'left Sidebar', 'book-review-blog' ),
		'right' => esc_html__( 'Right Sidebar', 'book-review-blog' ),
		'no' => esc_html__( 'No Sidebar', 'book-review-blog' ),
		'both' => esc_html__( 'Left & Right Sidebar', 'book-review-blog' ),
		'narrow' => esc_html__( 'No Sidebar Narrow', 'book-review-blog' ),
	],
] );

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