type ) { default: case 'heading': echo '' . esc_html( $this->label ) . ''; break; } } } class yuzu_Customizer_Accordion extends WP_Customize_Control { public $settings = 'blogname'; public $description = ''; public function render_content() { switch ( $this->type ) { default: case 'accordion': echo '

'. esc_html( $this->label ) .'

'; break; } } } endif; /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function yuzu_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->remove_section('colors'); $wp_customize->remove_section('header_image'); $wp_customize->remove_section('background_image'); $wp_customize->remove_control('blogdescription'); $wp_customize->remove_control('display_header_text'); $wp_customize->add_panel( 'theme_settings', array( 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __( 'Yuzu Theme Settings', 'yuzu' ), 'description' => __( 'All the settings for yuzu Theme', 'yuzu' ), ) ); require get_template_directory() . '/inc/customizer-sections/general-section.php'; require get_template_directory() . '/inc/customizer-sections/layout-section.php'; require get_template_directory() . '/inc/customizer-sections/style-section.php'; require get_template_directory() . '/inc/customizer-sections/colors-section.php'; } add_action( 'customize_register', 'yuzu_customize_register' );