<?php
$wp_customize->add_section(
    'pagination_options',
    array(
        'title' => esc_html__( 'Pagination Options', 'blogsky' ),
        'panel' => 'archive_options_panel',
    )
);


$wp_customize->add_setting(
    'blogsky_options[select_pagination_style]',
    array(
        'default'           => $blogsky_default['select_pagination_style'],
        'sanitize_callback' => 'blogsky_sanitize_select',
    )
);
$wp_customize->add_control(
    'blogsky_options[select_pagination_style]',
    array(
        'label'         => esc_html__( 'Select Pagination Style', 'blogsky' ),
        'section'     => 'pagination_options',
        'type'        => 'select',
        'choices'       => blogsky_pagination_style_choice(),

    )
);


$wp_customize->add_section(
    'excerpt_options',
    array(
        'title' => esc_html__( 'Excerpt Options', 'blogsky' ),
        'panel' => 'archive_options_panel',
    )
);

$wp_customize->add_setting(
    'blogsky_options[number_of_word_in_excerpt]',
    array(
        'default'           => $blogsky_default['number_of_word_in_excerpt'],
        'sanitize_callback' => 'absint',
    )
);
$wp_customize->add_control(
    'blogsky_options[number_of_word_in_excerpt]',
    array(
        'label'         => esc_html__( 'Number Of Excerpt Word', 'blogsky' ),
        'section'     => 'excerpt_options',
        'type'        => 'number',

    )
);


$wp_customize->add_setting(
    'blogsky_options[excerpt_posts_title_limit]',
    array(
        'default'           => $blogsky_default['excerpt_posts_title_limit'],
        'sanitize_callback' => 'blogsky_sanitize_select',
    )
);
$wp_customize->add_control(
    'blogsky_options[excerpt_posts_title_limit]',
    array(
        'label'    => __( 'Excerpt Line Limit', 'blogsky' ),
        'section'  => 'excerpt_options',
        'type'     => 'select',
        'choices'  => blogsky_line_limit_choices(),
    )
);

$wp_customize->add_setting(
    'blogsky_options[archive_excerpt_button_text]',
    array(
        'default'           => $blogsky_default['archive_excerpt_button_text'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogsky_options[archive_excerpt_button_text]',
    array(
        'label'    => __( 'Excerpt Button Text', 'blogsky' ),
        'section'  => 'excerpt_options',
        'type'     => 'text',
    )
);