add_section('conponent_3_setting_option', array( 'title' => esc_html__('Front/Page Component Style 3', 'blook'), 'priority' => 20, 'capability' => 'edit_theme_options', 'panel' => 'theme_front_page_panel', ) ); $wp_customize->add_setting('enable_component_3', array( 'default' => $default['enable_component_3'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blook_sanitize_checkbox', ) ); $wp_customize->add_control('enable_component_3', array( 'label' => esc_html__('Enable Component Style 3', 'blook'), 'section' => 'conponent_3_setting_option', 'type' => 'checkbox', 'priority' => 22, ) ); // Setting - drop down category for recnet post section. $wp_customize->add_setting( 'select_category_for_component_3_section', array( 'default' => $default['select_category_for_component_3_section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Blook_Dropdown_Taxonomies_Control( $wp_customize, 'select_category_for_component_3_section', array( 'label' => __( 'Category for Section', 'blook' ), 'section' => 'conponent_3_setting_option', 'type' => 'dropdown-taxonomies', 'taxonomy' => 'category', 'priority' => 100, ) ) ); $wp_customize->add_setting( 'number_of_post_on_component_3_section', array( 'default' => $default['number_of_post_on_component_3_section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blook_sanitize_positive_integer', ) ); $wp_customize->add_control( 'number_of_post_on_component_3_section', array( 'label' => __( 'Select Number of Post to Display', 'blook' ), 'section' => 'conponent_3_setting_option', 'type' => 'number', 'priority' => 100, 'input_attrs' => array( 'min' => 5, 'max' => 12, 'style' => 'width: 150px;' ), ) );