<?php
// Blog Page Settings Section
Kirki::add_section( 'blog_page_settings', array(
    'title'          => esc_html__( 'Blog Settings', 'faith-blog' ),
    'description'    => esc_html__( 'Customize Blog Page', 'faith-blog' ),
    'panel'          => 'faith_blog_global_panel',
    'capability'     => 'edit_theme_options',
) );

// Grid Column Setting
Kirki::add_field( 'faith_blog_config', [
    'type'        => 'select',
    'settings'    => 'grid_column',
    'label'       => esc_html__( 'Grid Column', 'faith-blog' ),
    'section'     => 'blog_page_settings',
    'default'     => 'col-sm-4',
    'priority'    => 10,
    'choices'     => [
        'col-sm-3' => esc_html__( '4 Column', 'faith-blog' ),
        'col-sm-4' => esc_html__( '3 Column', 'faith-blog' ),
        'col-sm-6' => esc_html__( '2 Column', 'faith-blog' ),
    ],
] );

// Blog Page Sidebar Setting
Kirki::add_field( 'faith_blog_config', [
    'type'        => 'select',
    'settings'    => 'blog_page_sidebar',
    'label'       => esc_html__( 'Blog & Archive Page Sidebar', 'faith-blog' ),
    'section'     => 'blog_page_settings',
    'default'     => 'no',
    'priority'    => 10,
    'choices'     => [
        'left'  => esc_html__( 'Left Sidebar', 'faith-blog' ),
        'right' => esc_html__( 'Right Sidebar', 'faith-blog' ),
        'no'    => esc_html__( 'No Sidebar', 'faith-blog' ),
    ],
] );

// Blog Page Pagination Alignment Setting
Kirki::add_field( 'faith_blog_config', [
    'type'        => 'select',
    'settings'    => 'blog_page_pagination',
    'label'       => esc_html__( 'Pagination Alignment', 'faith-blog' ),
    'section'     => 'blog_page_settings',
    'default'     => 'center',
    'priority'    => 10,
    'choices'     => [
        'left'   => esc_html__( 'Left', 'faith-blog' ),
        'right'  => esc_html__( 'Right', 'faith-blog' ),
        'center' => esc_html__( 'Center', 'faith-blog' ),
    ],
] );
