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


$wp_customize->add_setting(
    'nextzenmag_options[select_pagination_style]',
    array(
        'default'           => $nextzenmag_default['select_pagination_style'],
        'sanitize_callback' => 'nextzenmag_sanitize_select',
    )
);
$wp_customize->add_control(
    'nextzenmag_options[select_pagination_style]',
    array(
        'label'         => esc_html__( 'Select Pagination Style', 'nextzenmag' ),
        'section'     => 'pagination_options',
        'type'        => 'select',
        'choices'       => nextzenmag_pagination_style_choice(),

    )
);


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

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

    )
);


$wp_customize->add_setting(
    'nextzenmag_options[excerpt_posts_title_limit]',
    array(
        'default'           => $nextzenmag_default['excerpt_posts_title_limit'],
        'sanitize_callback' => 'nextzenmag_sanitize_select',
    )
);
$wp_customize->add_control(
    'nextzenmag_options[excerpt_posts_title_limit]',
    array(
        'label'    => __( 'Excerpt Line Limit', 'nextzenmag' ),
        'section'  => 'excerpt_options',
        'type'     => 'select',
        'choices'  => nextzenmag_line_limit_choices(),
    )
);

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