add_section( 'blite_blog_section', array( 'title' => esc_html__( 'Archive Page Setting','blite' ), 'description' => esc_html__( 'Archive/Search Page Setting Options', 'blite' ), 'panel' => 'blite_theme_options_panel', ) ); // sidebar layout setting and control. $wp_customize->add_setting( 'blite_theme_options[sidebar_layout]', array( 'sanitize_callback' => 'blite_sanitize_select', 'default' => blite_theme_option('sidebar_layout'), ) ); $wp_customize->add_control( new Blite_Radio_Image_Control ( $wp_customize, 'blite_theme_options[sidebar_layout]', array( 'label' => esc_html__( 'Sidebar Layout', 'blite' ), 'description' => esc_html__( 'Note: Option for Archive and Search Page.', 'blite' ), 'section' => 'blite_blog_section', 'choices' => blite_sidebar_position(), ) ) ); // alignment control and setting $wp_customize->add_setting( 'blite_theme_options[archive_layout]', array( 'default' => blite_theme_option('archive_layout'), 'sanitize_callback' => 'blite_sanitize_select', ) ); $wp_customize->add_control( 'blite_theme_options[archive_layout]', array( 'label' => esc_html__( 'Layout', 'blite' ), 'section' => 'blite_blog_section', 'type' => 'radio', 'choices' => array( 'left-align' => esc_html__( 'Left Align', 'blite' ), 'image-focus' => esc_html__( 'Image Focus', 'blite' ), 'image-focus-dark' => esc_html__( 'Image Focus Dark', 'blite' ), ), ) ); // column control and setting $wp_customize->add_setting( 'blite_theme_options[column_type]', array( 'default' => blite_theme_option('column_type'), 'sanitize_callback' => 'blite_sanitize_select', ) ); $wp_customize->add_control( 'blite_theme_options[column_type]', array( 'label' => esc_html__( 'Column Layout', 'blite' ), 'description' => esc_html__( 'Note: Option for Archive and Search Page.', 'blite' ), 'section' => 'blite_blog_section', 'type' => 'radio', 'choices' => array( 'column-2' => esc_html__( 'Two Column', 'blite' ), 'column-3' => esc_html__( 'Three Column', 'blite' ), 'column-4' => esc_html__( 'Four Column', 'blite' ), ), ) ); // pagination control and setting $wp_customize->add_setting( 'blite_theme_options[pagination_type]', array( 'default' => blite_theme_option('pagination_type'), 'sanitize_callback' => 'blite_sanitize_select', ) ); $wp_customize->add_control( 'blite_theme_options[pagination_type]', array( 'label' => esc_html__( 'Pagination Type', 'blite' ), 'section' => 'blite_blog_section', 'type' => 'radio', 'choices' => array( 'default' => esc_html__( 'Default', 'blite' ), 'numeric' => esc_html__( 'Numeric', 'blite' ), ), ) ); // excerpt count control and setting $wp_customize->add_setting( 'blite_theme_options[excerpt_count]', array( 'default' => blite_theme_option('excerpt_count'), 'sanitize_callback' => 'blite_sanitize_number_range', 'validate_callback' => 'blite_validate_excerpt_count', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'blite_theme_options[excerpt_count]', array( 'label' => esc_html__( 'Excerpt Length', 'blite' ), 'description' => esc_html__( 'Note: Min 1 & Max 50.', 'blite' ), 'section' => 'blite_blog_section', 'type' => 'number', 'input_attrs' => array( 'min' => 1, 'max' => 50, ), ) ); // Archive date meta setting and control. $wp_customize->add_setting( 'blite_theme_options[show_date]', array( 'default' => blite_theme_option( 'show_date' ), 'sanitize_callback' => 'blite_sanitize_switch', ) ); $wp_customize->add_control( new Blite_Switch_Control( $wp_customize, 'blite_theme_options[show_date]', array( 'label' => esc_html__( 'Show Date', 'blite' ), 'section' => 'blite_blog_section', 'on_off_label' => blite_show_options(), ) ) ); // Archive category meta setting and control. $wp_customize->add_setting( 'blite_theme_options[show_category]', array( 'default' => blite_theme_option( 'show_category' ), 'sanitize_callback' => 'blite_sanitize_switch', ) ); $wp_customize->add_control( new Blite_Switch_Control( $wp_customize, 'blite_theme_options[show_category]', array( 'label' => esc_html__( 'Show Category', 'blite' ), 'section' => 'blite_blog_section', 'on_off_label' => blite_show_options(), ) ) ); // Archive author meta setting and control. $wp_customize->add_setting( 'blite_theme_options[show_author]', array( 'default' => blite_theme_option( 'show_author' ), 'sanitize_callback' => 'blite_sanitize_switch', ) ); $wp_customize->add_control( new Blite_Switch_Control( $wp_customize, 'blite_theme_options[show_author]', array( 'label' => esc_html__( 'Show Author', 'blite' ), 'section' => 'blite_blog_section', 'on_off_label' => blite_show_options(), ) ) ); // Archive read time meta setting and control. $wp_customize->add_setting( 'blite_theme_options[show_read_time]', array( 'default' => blite_theme_option( 'show_read_time' ), 'sanitize_callback' => 'blite_sanitize_switch', ) ); $wp_customize->add_control( new Blite_Switch_Control( $wp_customize, 'blite_theme_options[show_read_time]', array( 'label' => esc_html__( 'Show Read Time', 'blite' ), 'section' => 'blite_blog_section', 'on_off_label' => blite_show_options(), ) ) );