<?php
Kirki::add_section( 'promo_categories', array(
    'title'          => esc_html__( 'Category Slider', 'minimalblog' ),
    'panel'          => 'minimalblog',
    'capability'     => 'edit_theme_options',
    'priority'       => 4,
) );

Kirki::add_field( 'minimalblog_config', [
    'type'        => 'toggle',
    'settings'    => 'promo_category_slider',
    'label'       => esc_html__( 'Category Slider On/Off', 'minimalblog' ),
    'section'     => 'promo_categories',
    'default'     => '0',
] );

Kirki::add_field( 'minimalblog_config', [
	'type'        => 'select',
	'settings'    => 'choose_promo_categories',
	'label'       => esc_html__( 'Featured Categories', 'minimalblog' ),
	'section'     => 'promo_categories',
	'multiple'    => 10,
	'choices'     => minimalblog_get_categories(),
] );

Kirki::add_field( 'minimalblog_config', [
	'type'        => 'number',
	'settings'    => 'category_slider_item',
	'label'       => esc_html__( 'Slide to Show', 'minimalblog' ),
	'section'     => 'promo_categories',
	'default'    => 3,
] );

Kirki::add_field( 'minimalblog_config', [
    'type'        => 'toggle',
    'settings'    => 'category_slider_auto_play',
    'label'       => esc_html__( 'Auto Play', 'minimalblog' ),
    'section'     => 'featured_section',
    'default'     => '0',
] );
