<?php
/*Blog Page Settings*/

Kirki::add_section( 'post_loop_settings_section', array(
    'title'          => esc_html__( 'Post Loop Settings', 'digital-marketing-blog' ),
    'panel'          => 'digital_marketing_blog_global_panel',
) );

Kirki::add_field( 'digital_marketing_blog_config', [
	'type'        => 'select',
	'settings'    => 'post_column',
	'label'       => esc_html__( 'Post Column', 'digital-marketing-blog' ),
	'section'     => 'post_loop_settings_section',
	'default'    => '3',
	'priority'    => 10,
	'choices' => [
			'4' => __( '4 Colmun', 'digital-marketing-blog' ),
			'3' => __( '3 Column', 'digital-marketing-blog' ),
			'2' => __( '2 Column', 'digital-marketing-blog' ),
			'1' => __( 'Grid', 'digital-marketing-blog' ),
		],
] );

Kirki::add_field( 'rs_personal_blog_config', array(
    'type'        => 'custom',
    'settings'    => 'sep_after_post_column',
    'label'       => '',
    'section'     => 'post_loop_settings_section',
    'default'     => '<hr>',
) );

Kirki::add_field( 'digital_marketing_blog_config', [
    'type'        => 'toggle',
    'settings'    => 'show_post_category',
    'label'       => esc_html__( 'Show Post Category', 'digital-marketing-blog' ),
    'section'     => 'post_loop_settings_section',
    'default'     => true,
] );

Kirki::add_field( 'digital_marketing_blog_config', [
    'type'        => 'toggle',
    'settings'    => 'show_post_title',
    'label'       => esc_html__( 'Show Post Title', 'digital-marketing-blog' ),
    'section'     => 'post_loop_settings_section',
    'default'     => true,
] );

Kirki::add_field( 'digital_marketing_blog_config', [
    'type'        => 'toggle',
    'settings'    => 'show_post_author',
    'label'       => esc_html__( 'Show Post Author', 'digital-marketing-blog' ),
    'section'     => 'post_loop_settings_section',
    'default'     => true,
] );

Kirki::add_field( 'digital_marketing_blog_config', [
    'type'        => 'toggle',
    'settings'    => 'show_post_thumbnail',
    'label'       => esc_html__( 'Thumbnail  On//Off', 'digital-marketing-blog' ),
    'section'     => 'post_loop_settings_section',
    'default'     => false,
] );
Kirki::add_field( 'digital_marketing_blog_config', [
    'type'        => 'toggle',
    'settings'    => 'show_post_excerpt',
    'label'       => esc_html__( 'Show Post Excerpt', 'digital-marketing-blog' ),
    'section'     => 'post_loop_settings_section',
    'default'     => true,
] );