get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_setting( 'background_color' )->transport = 'postMessage'; $wp_customize->get_setting('custom_logo')->transport = 'refresh'; /** * Register controls */ $wp_customize->register_control_type( 'Artech_Control_Sortable' ); $wp_customize->register_control_type( 'Artech_Customizer_Range_Control' ); /** * Helper files */ require ARTECH_PARENT_INC_DIR . '/customizer/customizer-controls.php'; require ARTECH_PARENT_INC_DIR . '/customizer/sanitization.php'; } /** * Customizer Controls * * @since 1.0.0 * @return void */ function artech_controls_scripts() { $js_prefix = '.js'; $css_prefix = '.css'; // Customizer Core. wp_enqueue_script( 'artech-customizer-controls-toggle-js', ARTECH_PARENT_INC_URI . '/customizer/assets/js/customizer-toggle-control' . $js_prefix, array(), ARTECH_THEME_VERSION, true ); // Customizer Controls. wp_enqueue_script( 'artech-customizer-controls-js', ARTECH_PARENT_INC_URI . '/customizer/assets/js/customizer-control' . $js_prefix, array( 'artech-customizer-controls-toggle-js' ), ARTECH_THEME_VERSION, true ); } /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function artech_customize_preview_js() { wp_enqueue_script( 'artech-customizer', ARTECH_PARENT_INC_URI . '/customizer/assets/js/customizer-preview.js', array( 'customize-preview' ), '20151215', true ); } function artech_customizer_script() { wp_enqueue_script( 'artech-customizer-section', ARTECH_PARENT_INC_URI .'/customizer/assets/js/customizer-section.js', array("jquery"),'', true ); } // Include customizer customizer settings. function artech_customizer_settings() { require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-header.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-slider.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-funfact.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-service.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-cta.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-blog.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-footer.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-page-templates.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-general.php'; require ARTECH_PARENT_INC_DIR . '/customizer/customizer-options/artech-sidebar.php'; require ARTECH_PARENT_INC_DIR . '/customizer/artech-premium.php'; } } }// End if(). /** * Kicking this off by calling 'get_instance()' method */ Artech_Customizer::get_instance();