PHP Class Kirki_Controls_Repeater_Control, kirki

Inheritance: extends Kirki_Customize_Control
Mostrar archivo Open project: aristath/kirki

Public Properties

Property Type Description
$fields array The fields that each container row will contain.
$row_label array The row label
$type string The control type.

Protected Properties

Property Type Description
$filtered_value array Will store a filtered version of value for advenced fields (like images).

Public Methods

Method Description
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) Constructor.
enqueue ( ) Enqueue control related scripts/styles.
repeater_js_template ( ) An Underscore (JS) template for this control's content (but not its container).
to_json ( ) Refresh the parameters passed to the JavaScript via JSON.

Protected Methods

Method Description
render_content ( ) Render the control's content.

Method Details

__construct() public method

Supplied $args override class property defaults. If $args['settings'] is not defined, use the $id as the setting ID.
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager Customizer bootstrap instance.
$id string Control ID.
$args array {@see \WP_Customize_Control::__construct}.

enqueue() public method

Enqueue control related scripts/styles.
public enqueue ( )

render_content() protected method

Allows the content to be overriden without having to rewrite the wrapper in $this->render().
protected render_content ( )

repeater_js_template() public method

Class variables for this control class are available in the data JS object.

to_json() public method

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

Property Details

$fields public_oe property

The fields that each container row will contain.
public array $fields
return array

$filtered_value protected_oe property

Will store a filtered version of value for advenced fields (like images).
protected array $filtered_value
return array

$row_label public_oe property

The row label
public array $row_label
return array

$type public_oe property

The control type.
public string $type
return string