get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound require get_template_directory() . '/includes/customizer/sanitizer.php'; require get_template_directory() . '/includes/customizer/callbacks.php'; require get_template_directory() . '/includes/customizer/options/general.php'; require get_template_directory() . '/includes/customizer/options/header.php'; require get_template_directory() . '/includes/customizer/options/colors.php'; require get_template_directory() . '/includes/customizer/options/typography.php'; require get_template_directory() . '/includes/customizer/options/home.php'; require get_template_directory() . '/includes/customizer/options/performance.php'; require get_template_directory() . '/includes/customizer/options/footer.php'; require get_template_directory() . '/includes/customizer/options/layout.php'; require_once get_template_directory() . '/includes/customizer/options/navigation.php'; $wp_customize->get_section( 'title_tagline' )->priority = 1; $wp_customize->get_section( 'title_tagline' )->panel = 'acoustics_header_panel'; if ( isset( $wp_customize->selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( 'blogname', array( 'selector' => '.site-title a', 'render_callback' => array( $this, 'acoustics_customize_partial_blogname' ), ) ); $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 'selector' => '.site-description', 'render_callback' => array( $this, 'acoustics_customize_partial_blogdescription' ), ) ); } } /** * Render the site title for the selective refresh partial. * * @return void */ function acoustics_customize_partial_blogname() { bloginfo( 'name' ); } /** * Render the site tagline for the selective refresh partial. * * @return void */ function acoustics_customize_partial_blogdescription() { bloginfo( 'description' ); } /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function acoustics_customize_preview_script() { wp_enqueue_script( 'acoustics-customizer-preview', get_template_directory_uri() . '/assets/admin/js/customizer.preview.js', array( 'customize-preview' ), '20151215', true ); } public function acoustics_scripts() { wp_enqueue_style( 'acoustics-customizer-styles', get_template_directory_uri() . '/assets/admin/css/customizer.css', array(), ACOUSTICS_VERSION,'all' ); wp_enqueue_script( 'acoustics-customizer-scripts', get_template_directory_uri() . '/assets/admin/js/customizer.js', array( 'jquery', 'jquery-ui-core' ), ACOUSTICS_VERSION, true ); } } } Acoustics_Customizer::get_instance();