PHP Class Kirki_Controls_Repeater_Control, kirki

Inheritance: extends Kirki_Customize_Control
Afficher le fichier Open project: aristath/kirki

Méthodes publiques

Свойство 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

Свойство Type Description
$filtered_value array Will store a filtered version of value for advenced fields (like images).

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
render_content ( ) Render the control's content.

Method Details

__construct() public méthode

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 méthode

Enqueue control related scripts/styles.
public enqueue ( )

render_content() protected méthode

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

repeater_js_template() public méthode

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

to_json() public méthode

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
Résultat array

$filtered_value protected_oe property

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

$row_label public_oe property

The row label
public array $row_label
Résultat array

$type public_oe property

The control type.
public string $type
Résultat string