[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Twenty Fifteen Customizer functionality

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

Defines 12 functions

  twentyfifteen_customize_register()
  twentyfifteen_customize_partial_blogname()
  twentyfifteen_customize_partial_blogdescription()
  twentyfifteen_get_color_schemes()
  twentyfifteen_get_color_scheme()
  twentyfifteen_get_color_scheme_choices()
  twentyfifteen_sanitize_color_scheme()
  twentyfifteen_color_scheme_css()
  twentyfifteen_customize_control_js()
  twentyfifteen_customize_preview_js()
  twentyfifteen_get_color_scheme_css()
  twentyfifteen_color_scheme_css_template()

Functions
Functions that are not part of a class:

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

param: WP_Customize_Manager $wp_customize Customizer object.

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

return: void

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

return: void

twentyfifteen_get_color_schemes()   X-Ref
Register color schemes for Twenty Fifteen.

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

The order of colors in a colors array:
1. Main Background Color.
2. Sidebar Background Color.
3. Box Background Color.
4. Main Text and Link Color.
5. Sidebar Text and Link Color.
6. Meta Box Background Color.

return: array An associative array of color scheme options.

twentyfifteen_get_color_scheme()   X-Ref
Get the current Twenty Fifteen color scheme.

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

twentyfifteen_get_color_scheme_choices()   X-Ref
Returns an array of color scheme choices registered for Twenty Fifteen.

return: array Array of color schemes.

twentyfifteen_sanitize_color_scheme( $value )   X-Ref
Sanitization callback for color schemes.

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

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


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

Passes color scheme data as colorScheme global.


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


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

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

twentyfifteen_color_scheme_css_template()   X-Ref
Output an Underscore template for generating CSS for the color scheme.

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




Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref