add_section( 'section_home_about', array( 'title' => __( 'Featured Section', 'akisa' ), 'priority' => 20, 'capability' => 'edit_theme_options', 'panel' => 'home_page_panel', ) ); $wp_customize->add_setting( 'theme_options[disable_about_section]', array( 'default' => $default['disable_about_section'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'akisa_sanitize_switch_control', ) ); $wp_customize->add_control( new Akisa_Switch_Control( $wp_customize, 'theme_options[disable_about_section]', array( 'label' => __('Enable/Disable Featured Section', 'akisa'), 'section' => 'section_home_about', 'settings' => 'theme_options[disable_about_section]', 'on_off_label' => akisa_switch_options(), ) ) ); // Add arrow enable setting and control. $wp_customize->add_setting( 'theme_options[about_layout_option]', array( 'default' => $default['about_layout_option'], 'sanitize_callback' => 'akisa_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[about_layout_option]', array( 'label' => esc_html__( 'Choose Featured Layout', 'akisa' ), 'section' => 'section_home_about', 'type' => 'radio', 'active_callback' => 'akisa_about_active', 'choices' => array( 'about-gallery-view' => esc_html__( 'Layout One', 'akisa' ), 'about-post-view' => esc_html__( 'Layout Two', 'akisa' ), ) ) ); //Featured Section title $wp_customize->add_setting('theme_options[about_title]', array( 'default' => $default['about_title'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[about_title]', array( 'label' => __('Section Title', 'akisa'), 'section' => 'section_home_about', 'settings' => 'theme_options[about_title]', 'active_callback' => 'akisa_about_active', 'type' => 'text' ) ); // Add autoplay enable setting and control. $wp_customize->add_setting( 'theme_options[about_content_enable]', array( 'default' => $default['about_content_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[about_content_enable]', array( 'label' => esc_html__( 'Enable Featured Content', 'akisa' ), 'section' => 'section_home_about', 'type' => 'checkbox', 'active_callback' => 'akisa_about_active', ) ); // Add posted on enable setting and control. $wp_customize->add_setting( 'theme_options[about_posted_on_enable]', array( 'default' => $default['about_posted_on_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[about_posted_on_enable]', array( 'label' => esc_html__( 'Enable Date', 'akisa' ), 'section' => 'section_home_about', 'type' => 'checkbox', ) ); // Add posted on enable setting and control. $wp_customize->add_setting( 'theme_options[about_comment_enable]', array( 'default' => $default['about_comment_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[about_comment_enable]', array( 'label' => esc_html__( 'Enable Comment', 'akisa' ), 'section' => 'section_home_about', 'type' => 'checkbox', ) ); // Number of items $wp_customize->add_setting('theme_options[number_of_about_items]', array( 'default' => $default['number_of_about_items'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'akisa_sanitize_number_range' ) ); $wp_customize->add_control('theme_options[number_of_about_items]', array( 'label' => __('Number of Items', 'akisa'), 'description' => __('Save & Refresh the customizer to see its effect. Maximum is 24(Pro).', 'akisa'), 'section' => 'section_home_about', 'settings' => 'theme_options[number_of_about_items]', 'type' => 'number', 'active_callback' => 'akisa_about_active', 'input_attrs' => array( 'min' => 1, 'max' => 3, 'step' => 1, ), ) ); // Setting Team Category. $wp_customize->add_setting( 'theme_options[about_category]', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Akisa_Dropdown_Taxonomies_Control( $wp_customize, 'theme_options[about_category]', array( 'label' => __( 'Select Category', 'akisa' ), 'section' => 'section_home_about', 'settings' => 'theme_options[about_category]', 'active_callback' => 'akisa_about_active', ) ) );