add_section( 'archive_options' , array( 'title' => __( 'Archive Options', 'blog-tale' ), 'panel' => 'theme_option_panel', ) ); /* Archive Style */ $wp_customize->add_setting( 'theme_options[archive_style]', array( 'default' => $default_options['archive_style'], 'sanitize_callback' => 'blog_tale_sanitize_radio', ) ); $wp_customize->add_control( new Blog_Tale_Radio_Image_Control( $wp_customize, 'theme_options[archive_style]', array( 'label' => __( 'Archive Style', 'blog-tale' ), 'section' => 'archive_options', 'choices' => blog_tale_get_archive_layouts() ) ) ); /* Archive Excerpt Length */ $wp_customize->add_setting( 'theme_options[archive_excerpt_length]', array( 'default' => $default_options['archive_excerpt_length'], 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'theme_options[archive_excerpt_length]', array( 'label' => __( 'Archive Excerpt Length', 'blog-tale' ), 'section' => 'archive_options', 'type' => 'number', ) ); /*Archive Pagination Type*/ $wp_customize->add_setting( 'theme_options[archive_pagination_type]', array( 'default' => $default_options['archive_pagination_type'], 'sanitize_callback' => 'blog_tale_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[archive_pagination_type]', array( 'label' => __( 'Archive Pagination Type', 'blog-tale' ), 'section' => 'archive_options', 'type' => 'select', 'choices' => array( 'default' => esc_html__( 'Default (Older / Newer Post)', 'blog-tale' ), 'numeric' => esc_html__( 'Numeric', 'blog-tale' ), ), ) ); /*Pagination Align*/ $wp_customize->add_setting( 'theme_options[archive_pagination_align]', array( 'default' => $default_options['archive_pagination_align'], 'sanitize_callback' => 'blog_tale_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[archive_pagination_align]', array( 'label' => __( 'Pagination Align', 'blog-tale' ), 'section' => 'archive_options', 'type' => 'select', 'choices' => array( 'left' => esc_html__( 'Left', 'blog-tale' ), 'center' => esc_html__( 'Center', 'blog-tale' ), 'right' => esc_html__( 'Right', 'blog-tale' ), ), 'active_callback' => 'blog_tale_is_archive_pagination_available' ) );