get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_section( 'static_front_page' )->priority = '25'; $wp_customize->get_section( 'title_tagline' )->panel = 'theme_header_option_panel'; $wp_customize->get_section( 'header_image' )->panel = 'theme_header_option_panel'; $wp_customize->get_section( 'colors' )->panel = 'global_option_panel'; $wp_customize->get_section( 'background_image' )->panel = 'global_option_panel'; require get_template_directory() . '/inc/customizer/common-option.php'; require get_template_directory() . '/inc/customizer/header-section.php'; $wp_customize->add_panel('theme_theme_option_panel', array( 'title' => esc_html__('Theme Options', 'blook'), 'priority' => 30, 'capability' => 'edit_theme_options', ) ); require get_template_directory() . '/inc/customizer/homepage-component-1.php'; require get_template_directory() . '/inc/customizer/homepage-component-2.php'; require get_template_directory() . '/inc/customizer/homepage-component-3.php'; require get_template_directory() . '/inc/customizer/homepage-component-4.php'; require get_template_directory() . '/inc/customizer/homepage-component-5.php'; require get_template_directory() . '/inc/customizer/breaking-news.php'; require get_template_directory() . '/inc/customizer/preloader.php'; require get_template_directory() . '/inc/customizer/pagination.php'; require get_template_directory() . '/inc/customizer/sidebar.php'; require get_template_directory() . '/inc/customizer/single.php'; require get_template_directory() . '/inc/customizer/archive.php'; require get_template_directory() . '/inc/customizer/social.php'; require get_template_directory() . '/inc/customizer/footer.php'; require get_template_directory() . '/inc/customizer/global-option.php'; } add_action( 'customize_register', 'blook_customize_register' ); /** * Render the site title for the selective refresh partial. * * @return void */ function blook_customize_partial_blogname() { bloginfo( 'name' ); } /** * Render the site tagline for the selective refresh partial. * * @return void */ function blook_customize_partial_blogdescription() { bloginfo( 'description' ); } /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function blook_customize_preview_js() { wp_enqueue_script( 'blook-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), _S_VERSION, true ); } add_action( 'customize_preview_init', 'blook_customize_preview_js' ); /** * Binds CSS handlers to make Theme Customizer a bit beautiful. */ function blook_customizer_css() { wp_enqueue_style( 'blook-customize-controll-style', get_template_directory_uri() . '/assets/css/customizer-controll.css' ); } add_action( 'customize_controls_enqueue_scripts', 'blook_customizer_css',0 );