add_panel( 'appointment_test_setting', array( 'priority' => 850, 'capability' => 'edit_theme_options', 'title' => __('Testimonial Settings', 'appointment'), ) ); $wp_customize->add_section( 'test_section_settings', array( 'title' => __('Home Testimonial Settings','appointment'), 'description' => '', 'panel' => 'appointment_test_setting',) ); $wp_customize->add_setting( 'appointment_options[testimonial_upgrade]', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new appointment_Customize_testimonial_upgrade( $wp_customize, 'appointment_options[testimonial_upgrade]', array( 'label' => __('Appointement Upgrade','appointment'), 'section' => 'test_section_settings', 'settings' => 'appointment_options[testimonial_upgrade]', ) ) ); // add section to manage callout $wp_customize->add_setting( 'appointment_options[testimonial_title]', array( 'default' => __('What Our Clients Say','appointment'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'appointment_options[testimonial_title]',array( 'label' => __('Testimonial Title','appointment'), 'section' => 'test_section_settings', 'type' => 'text','input_attrs' => array('disabled' => 'disabled')) ); $wp_customize->add_setting( 'appointment_options[testimonial_description]', array( 'default' => __('Read what customers are saying.','appointment'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'appointment_options[testimonial_description]',array( 'label' => __('Testimonial Description','appointment'), 'section' => 'test_section_settings', 'type' => 'text', 'input_attrs' => array('disabled' => 'disabled') ) ); //Testimonial animation $wp_customize->add_setting( 'appointment_options[testi_slide_type]', array( 'default' => __('slide','appointment'), 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'appointment_options[testi_slide_type]', array( 'type' => 'select', 'label' => __('Select Testimonial Animation','appointment'), 'section' => 'test_section_settings', 'choices' => array('slide'=>__('slide', 'appointment'), 'carousel-fade'=>__('Fade', 'appointment')), )); //Testimonail Animation duration $wp_customize->add_setting( 'appointment_options[testi_transition_delay]', array( 'default' => __('2000','appointment'), 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'appointment_options[testi_transition_delay]', array( 'type' => 'text', 'description' => __('If you choose Transction Delay 2000 that means 2 second','appointment'), 'label' => __('Input Testimonial Duration','appointment'), 'section' => 'test_section_settings','input_attrs' => array('disabled' => 'disabled') )); //Testimonail link class WP_testmonial_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?> add_setting( 'testimonial', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_testmonial_Customize_Control( $wp_customize, 'testimonial', array( 'label' => __('Discover Appointment Pro','appointment'), 'section' => 'test_section_settings', )) ); } add_action( 'customize_register', 'appointment_testimonial_customizer' ); ?>