Lines:
1 to 66 of 66
<?php /** * Twenty Sixteen Customizer functionality * * @package WordPress * @subpackage Twenty_Sixteen * @since Twenty Sixteen 1.0 */ /* function twentysixteen_custom_header_and_background() – Sets up the WordPress core custom header and custom background features. */ add_action( 'after_setup_theme', 'twentysixteen_custom_header_and_background' ); if ( ! function_exists( 'twentysixteen_header_style' ) ) : /* function twentysixteen_header_style() – Styles the header text displayed on the site. */ endif; // twentysixteen_header_style() /* function twentysixteen_customize_register() – Adds postMessage support for site title and description for the Customizer. */ add_action( 'customize_register', 'twentysixteen_customize_register', 11 ); /* function twentysixteen_customize_partial_blogname() – Render the site title for the selective refresh partial. */ /* function twentysixteen_customize_partial_blogdescription() – Render the site tagline for the selective refresh partial. */ /* function twentysixteen_get_color_schemes() – Registers color schemes for Twenty Sixteen. */ if ( ! function_exists( 'twentysixteen_get_color_scheme' ) ) : /* function twentysixteen_get_color_scheme() – Retrieves the current Twenty Sixteen color scheme. */ endif; // twentysixteen_get_color_scheme() if ( ! function_exists( 'twentysixteen_get_color_scheme_choices' ) ) : /* function twentysixteen_get_color_scheme_choices() – Retrieves an array of color scheme choices registered for Twenty Sixteen. */ endif; // twentysixteen_get_color_scheme_choices() if ( ! function_exists( 'twentysixteen_sanitize_color_scheme' ) ) : /* function twentysixteen_sanitize_color_scheme() – Handles sanitization for Twenty Sixteen color schemes. */ endif; // twentysixteen_sanitize_color_scheme() /* function twentysixteen_color_scheme_css() – Enqueues front-end CSS for color scheme. */ add_action( 'wp_enqueue_scripts', 'twentysixteen_color_scheme_css' ); /* function twentysixteen_customize_control_js() – Binds the JS listener to make Customizer color_scheme control. */ add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_control_js' ); /* function twentysixteen_customize_preview_js() – Binds JS handlers to make the Customizer preview reload changes asynchronously. */ add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' ); /* function twentysixteen_get_color_scheme_css() – Returns CSS for the color schemes. */ /* function twentysixteen_color_scheme_css_template() – Outputs an Underscore template for generating CSS for the color scheme. */ add_action( 'customize_controls_print_footer_scripts', 'twentysixteen_color_scheme_css_template' ); /* function twentysixteen_page_background_color_css() – Enqueues front-end CSS for the page background color. */ add_action( 'wp_enqueue_scripts', 'twentysixteen_page_background_color_css', 11 ); /* function twentysixteen_link_color_css() – Enqueues front-end CSS for the link color. */ add_action( 'wp_enqueue_scripts', 'twentysixteen_link_color_css', 11 ); /* function twentysixteen_main_text_color_css() – Enqueues front-end CSS for the main text color. */ add_action( 'wp_enqueue_scripts', 'twentysixteen_main_text_color_css', 11 ); /* function twentysixteen_secondary_text_color_css() – Enqueues front-end CSS for the secondary text color. */ add_action( 'wp_enqueue_scripts', 'twentysixteen_secondary_text_color_css', 11 );