[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-content/themes/twentysixteen/inc/ -> customizer.php (summary)

Twenty Sixteen Customizer functionality

File Size: 1259 lines (32 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 18 functions

  twentysixteen_custom_header_and_background()
  twentysixteen_header_style()
  twentysixteen_customize_register()
  twentysixteen_customize_partial_blogname()
  twentysixteen_customize_partial_blogdescription()
  twentysixteen_get_color_schemes()
  twentysixteen_get_color_scheme()
  twentysixteen_get_color_scheme_choices()
  twentysixteen_sanitize_color_scheme()
  twentysixteen_color_scheme_css()
  twentysixteen_customize_control_js()
  twentysixteen_customize_preview_js()
  twentysixteen_get_color_scheme_css()
  twentysixteen_color_scheme_css_template()
  twentysixteen_page_background_color_css()
  twentysixteen_link_color_css()
  twentysixteen_main_text_color_css()
  twentysixteen_secondary_text_color_css()

Functions
Functions that are not part of a class:

twentysixteen_custom_header_and_background()   X-Ref
Sets up the WordPress core custom header and custom background features.


twentysixteen_header_style()   X-Ref
Styles the header text displayed on the site.

Create your own twentysixteen_header_style() function to override in a child theme.


twentysixteen_customize_register( $wp_customize )   X-Ref
Adds postMessage support for site title and description for the Customizer.

param: WP_Customize_Manager $wp_customize The Customizer object.

twentysixteen_customize_partial_blogname()   X-Ref
Render the site title for the selective refresh partial.

return: void

twentysixteen_customize_partial_blogdescription()   X-Ref
Render the site tagline for the selective refresh partial.

return: void

twentysixteen_get_color_schemes()   X-Ref
Registers color schemes for Twenty Sixteen.

Can be filtered with {@see 'twentysixteen_color_schemes'}.

The order of colors in a colors array:
1. Main Background Color.
2. Page Background Color.
3. Link Color.
4. Main Text Color.
5. Secondary Text Color.

return: array An associative array of color scheme options.

twentysixteen_get_color_scheme()   X-Ref
Retrieves the current Twenty Sixteen color scheme.

Create your own twentysixteen_get_color_scheme() function to override in a child theme.

return: array An associative array of either the current or default color scheme HEX values.

twentysixteen_get_color_scheme_choices()   X-Ref
Retrieves an array of color scheme choices registered for Twenty Sixteen.

Create your own twentysixteen_get_color_scheme_choices() function to override
in a child theme.

return: array Array of color schemes.

twentysixteen_sanitize_color_scheme( $value )   X-Ref
Handles sanitization for Twenty Sixteen color schemes.

Create your own twentysixteen_sanitize_color_scheme() function to override
in a child theme.

param: string $value Color scheme name value.
return: string Color scheme name.

twentysixteen_color_scheme_css()   X-Ref
Enqueues front-end CSS for color scheme.


twentysixteen_customize_control_js()   X-Ref
Binds the JS listener to make Customizer color_scheme control.

Passes color scheme data as colorScheme global.


twentysixteen_customize_preview_js()   X-Ref
Binds JS handlers to make the Customizer preview reload changes asynchronously.


twentysixteen_get_color_scheme_css( $colors )   X-Ref
Returns CSS for the color schemes.

param: array $colors Color scheme colors.
return: string Color scheme CSS.

twentysixteen_color_scheme_css_template()   X-Ref
Outputs an Underscore template for generating CSS for the color scheme.

The template generates the css dynamically for instant display in the
Customizer preview.


twentysixteen_page_background_color_css()   X-Ref
Enqueues front-end CSS for the page background color.


twentysixteen_link_color_css()   X-Ref
Enqueues front-end CSS for the link color.


twentysixteen_main_text_color_css()   X-Ref
Enqueues front-end CSS for the main text color.


twentysixteen_secondary_text_color_css()   X-Ref
Enqueues front-end CSS for the secondary text color.




Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7