Lines:
1 to 45 of 45
<?php /** * Twenty Fifteen Customizer functionality * * @package WordPress * @subpackage Twenty_Fifteen * @since Twenty Fifteen 1.0 */ /* function twentyfifteen_customize_register() – Add postMessage support for site title and description for the Customizer. */ add_action( 'customize_register', 'twentyfifteen_customize_register', 11 ); /* function twentyfifteen_customize_partial_blogname() – Render the site title for the selective refresh partial. */ /* function twentyfifteen_customize_partial_blogdescription() – Render the site tagline for the selective refresh partial. */ /* function twentyfifteen_get_color_schemes() – Register color schemes for Twenty Fifteen. */ if ( ! function_exists( 'twentyfifteen_get_color_scheme' ) ) : /* function twentyfifteen_get_color_scheme() – Get the current Twenty Fifteen color scheme. */ endif; // twentyfifteen_get_color_scheme() if ( ! function_exists( 'twentyfifteen_get_color_scheme_choices' ) ) : /* function twentyfifteen_get_color_scheme_choices() – Returns an array of color scheme choices registered for Twenty Fifteen. */ endif; // twentyfifteen_get_color_scheme_choices() if ( ! function_exists( 'twentyfifteen_sanitize_color_scheme' ) ) : /* function twentyfifteen_sanitize_color_scheme() – Sanitization callback for color schemes. */ endif; // twentyfifteen_sanitize_color_scheme() /* function twentyfifteen_color_scheme_css() – Enqueues front-end CSS for color scheme. */ add_action( 'wp_enqueue_scripts', 'twentyfifteen_color_scheme_css' ); /* function twentyfifteen_customize_control_js() – Binds JS listener to make Customizer color_scheme control. */ add_action( 'customize_controls_enqueue_scripts', 'twentyfifteen_customize_control_js' ); /* function twentyfifteen_customize_preview_js() – Binds JS handlers to make the Customizer preview reload changes asynchronously. */ add_action( 'customize_preview_init', 'twentyfifteen_customize_preview_js' ); /* function twentyfifteen_get_color_scheme_css() – Returns CSS for the color schemes. */ /* function twentyfifteen_color_scheme_css_template() – Output an Underscore template for generating CSS for the color scheme. */ add_action( 'customize_controls_print_footer_scripts', 'twentyfifteen_color_scheme_css_template' );