PHP Class Kirki_Controls_Color_Palette_Control, kirki

This is essentially a radio control, styled as a palette.
Inheritance: extends Kirki_Customize_Control
显示文件 Open project: aristath/kirki

Public Properties

Property Type Description
$type string The control type.

Public Methods

Method Description
enqueue ( ) Enqueue control related scripts/styles.
to_json ( ) Refresh the parameters passed to the JavaScript via JSON.

Protected Methods

Method Description
content_template ( ) An Underscore (JS) template for this control's content (but not its container).

Method Details

content_template() protected method

Class variables for this control class are available in the data JS object; export custom variables by overriding {@see \Kirki_Customize_Control::to_json()}.
See also: WP_Customize_Control::print_template()
protected content_template ( )

enqueue() public method

Enqueue control related scripts/styles.
public enqueue ( )

to_json() public method

Refresh the parameters passed to the JavaScript via JSON.
public to_json ( )

Property Details

$type public_oe property

The control type.
public string $type
return string