add_section( 'appmela_video_section', array( 'capability' => 'edit_theme_options', 'priority' => 50, 'title' => __( 'Video Showcase Section', 'appmela' ), 'description' => __( 'This is Video Showcase Selection', 'appmela' ), 'panel' => 'appmela_front_option' ) ); //Enable Video Showcase Section $wp_customize->add_setting( 'appmela_video_enable', array( 'default' => '', 'sanitize_callback' => 'appmela_sanitize_checkbox', ) ); $wp_customize->add_control( 'appmela_video_enable', array( 'label' => esc_html__( 'Show Video Showcase Section', 'appmela' ), 'section' => 'appmela_video_section', 'type' => 'checkbox', 'priority' => 10, ) ); //Video Showcase Title $wp_customize->add_setting( 'appmela_video_title', array( 'capability' => 'edit_theme_options', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'appmela_video_title', array( 'label' => __( 'Video Showcase Title: ', 'appmela' ), 'section' => 'appmela_video_section', 'type' => 'text', 'priority' => 20, 'settings' => 'appmela_video_title', ) ); //Video Showcase Content $wp_customize->add_setting( 'appmela_video_content', array( 'capability' => 'edit_theme_options', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'appmela_video_content', array( 'label' => __( 'Video Showcase Content: ', 'appmela' ), 'section' => 'appmela_video_section', 'type' => 'textarea', 'priority' => 30, 'settings' => 'appmela_video_content', ) ); //Video Showcase Image $wp_customize->add_setting( 'appmela_video_image', array( 'capability' => 'edit_theme_options', 'default' => '', 'sanitize_callback' => 'appmela_sanitize_image' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'appmela_video_image', array( 'label' => __( 'Upload a Image ', 'appmela' ), 'description' => esc_html__('Size of Image 540 * 360', 'appmela'), 'section' => 'appmela_video_section', 'priority' => 40, ) ) ); //Video Showcase url $wp_customize->add_setting( 'appmela_video_url', array( 'capability' => 'edit_theme_options', 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( 'appmela_video_url', array( 'label' => __( 'Video Showcase URl ', 'appmela' ), 'section' => 'appmela_video_section', 'type' => 'url', 'priority' => 50, 'settings' => 'appmela_video_url', ) ); ?>