add_section( 'ashlar_carousel_section', array( 'title' => esc_html__( 'Carousel Section Setting', 'ashlar' ), 'capability' => 'edit_theme_options', 'priority' => 15, 'panel' => 'theme_option_panel', ) ); $wp_customize->add_setting('ed_carousel_section', array( 'default' => $ashlar_default['ed_carousel_section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_carousel_section', array( 'label' => esc_html__('Enable Carousel Section', 'ashlar'), 'section' => 'ashlar_carousel_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting('mg_carousel_section_cat', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_select', ) ); $wp_customize->add_control('mg_carousel_section_cat', array( 'label' => esc_html__('Enable Carousel Section', 'ashlar'), 'section' => 'ashlar_carousel_section', 'type' => 'select', 'choices' => $ashlar_post_category_list, ) ); $wp_customize->add_setting('ed_carousel_autoplay', array( 'default' => $ashlar_default['ed_carousel_autoplay'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_carousel_autoplay', array( 'label' => esc_html__('Enable Autoplay', 'ashlar'), 'section' => 'ashlar_carousel_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_carousel_arrow', array( 'default' => $ashlar_default['ed_carousel_arrow'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_carousel_arrow', array( 'label' => esc_html__('Enable Arrow', 'ashlar'), 'section' => 'ashlar_carousel_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_carousel_dots', array( 'default' => $ashlar_default['ed_carousel_dots'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_carousel_dots', array( 'label' => esc_html__('Enable Dots', 'ashlar'), 'section' => 'ashlar_carousel_section', 'type' => 'checkbox', ) );