PHP Class Kirki_Controls_Editor_Control, kirki

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.

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()}. The actual editor is added from the Kirki_Field_Editor class. All this template contains is a button that triggers the global editor on/off and a hidden textarea element that is used to mirror save the options.
See also: WP_Customize_Control::print_template()
protected content_template ( )

enqueue() public method

Enqueue control related scripts/styles.
public enqueue ( )

Property Details

$type public_oe property

The control type.
public string $type
return string