add_section('conponent_4_setting_option', array( 'title' => esc_html__('Alternate Grid Layout', 'blook'), 'capability' => 'edit_theme_options', 'panel' => 'theme_front_page_panel', ) ); $wp_customize->add_setting('enable_component_4', array( 'default' => $default['enable_component_4'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blook_sanitize_checkbox', ) ); $wp_customize->add_control('enable_component_4', array( 'label' => esc_html__('Enable Section', 'blook'), 'section' => 'conponent_4_setting_option', 'type' => 'checkbox', 'priority' => 22, ) ); $wp_customize->add_setting( 'blook_component_4_title', array( 'default' => $default['blook_component_4_title'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'blook_component_4_title', array( 'label' => __( 'Section Title Text', 'blook' ), 'section' => 'conponent_4_setting_option', 'type' => 'text', 'priority' => 100, ) ); // Setting - drop down category for recnet post section. $wp_customize->add_setting( 'select_category_for_component_4_section', array( 'default' => $default['select_category_for_component_4_section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Blook_Dropdown_Taxonomies_Control( $wp_customize, 'select_category_for_component_4_section', array( 'label' => __( 'Category for Section', 'blook' ), 'section' => 'conponent_4_setting_option', 'type' => 'dropdown-taxonomies', 'taxonomy' => 'category', 'priority' => 100, ) ) ); $wp_customize->add_setting( 'number_of_post_on_component_4_section', array( 'default' => $default['number_of_post_on_component_4_section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blook_sanitize_positive_integer', ) ); $wp_customize->add_control( 'number_of_post_on_component_4_section', array( 'label' => __( 'Select Number of Post to Display', 'blook' ), 'section' => 'conponent_4_setting_option', 'type' => 'number', 'priority' => 100, 'input_attrs' => array( 'min' => 2, 'max' => 8, 'style' => 'width: 150px;' ), ) );