[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Twenty Fifteen Customizer functionality

File Size: 809 lines (22 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.

since: Twenty Fifteen 1.0
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
since: Twenty Fifteen 1.5

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

return: void
since: Twenty Fifteen 1.5

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.
since: Twenty Fifteen 1.0

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.
since: Twenty Fifteen 1.0

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

return: array Array of color schemes.
since: Twenty Fifteen 1.0

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

return: string Color scheme name.
since: Twenty Fifteen 1.0
param: string $value Color scheme name value.

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

since: Twenty Fifteen 1.0

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

Passes color scheme data as colorScheme global.

since: Twenty Fifteen 1.0

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

since: Twenty Fifteen 1.0

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

return: string Color scheme CSS.
since: Twenty Fifteen 1.0
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.

since: Twenty Fifteen 1.0



Generated: Mon Sep 16 01:00:03 2019 Cross-referenced by PHPXref 0.7.1