<?php
// Featured Section
Kirki::add_section( 'featured_section', array(
    'title'       => esc_html__( 'Featured Section', 'faith-blog' ),
    'panel'       => 'faith_blog_global_panel',
    'priority'    => 1,
    'capability'  => 'edit_theme_options',
) );

// Featured Section On/Off Control
Kirki::add_field( 'faith_blog_config', [
    'type'        => 'switch',
    'settings'    => 'featured_section_on_off',
    'label'       => esc_html__( 'Featured Section On/Off', 'faith-blog' ),
    'section'     => 'featured_section',
    'default'     => false,
    'choices'     => [
        'on'  => esc_html__( 'On', 'faith-blog' ),
        'off' => esc_html__( 'Off', 'faith-blog' ),
    ],
] );

// Featured Categories Control
Kirki::add_field( 'faith_blog_config', [
    'type'        => 'select',
    'settings'    => 'featured_categories',
    'label'       => esc_html__( 'Select Posts Categories', 'faith-blog' ),
    'section'     => 'featured_section',
    'multiple'    => 3,
    'choices'     => faith_blog_get_categories(),
] );
