PHP 클래스 Kirki_Customize_Control, kirki

상속: extends WP_Customize_Control
파일 보기 프로젝트 열기: aristath/kirki 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$js_vars array Used to automatically generate all postMessage scripts.
$kirki_config string The kirki_config we're using for this control
$option_type string Data type
$output array Used to automatically generate all CSS output.
$tooltip string Tooltips content.

보호된 프로퍼티들

프로퍼티 타입 설명
$l10n array The translation strings.

공개 메소드들

메소드 설명
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) Constructor.
to_json ( ) Refresh the parameters passed to the JavaScript via JSON.

보호된 메소드들

메소드 설명
render ( ) Renders the control wrapper and calls $this->render_content() for the internals.
render_content ( ) Render the control's content.

메소드 상세

__construct() 공개 메소드

Supplied $args override class property defaults. If $args['settings'] is not defined, use the $id as the setting ID.
부터: 2.3.5
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager Customizer bootstrap instance.
$id string Control ID.
$args array { Optional. Arguments to override class property defaults. @type int $instance_number Order in which this instance was created in relation to other instances. @type WP_Customize_Manager $manager Customizer bootstrap instance. @type string $id Control ID. @type array $settings All settings tied to the control. If undefined, `$id` will be used. @type string $setting The primary setting for the control (if there is one). Default 'default'. @type int $priority Order priority to load the control. Default 10. @type string $section Section the control belongs to. Default empty. @type string $label Label for the control. Default empty. @type string $description Description for the control. Default empty. @type array $choices List of choices for 'radio' or 'select' type controls, where values are the keys, and labels are the values. Default empty array. @type array $input_attrs List of custom input attributes for control output, where attribute names are the keys and values are the values. Not used for 'checkbox', 'radio', 'select', 'textarea', or 'dropdown-pages' control types. Default empty array. @type array $json Deprecated. Use WP_Customize_Control::json() instead. @type string $type Control type. Core controls include 'text', 'checkbox', 'textarea', 'radio', 'select', and 'dropdown-pages'. Additional input types such as 'email', 'url', 'number', 'hidden', and 'date' are supported implicitly. Default 'text'. }

render() 보호된 메소드

Renders the control wrapper and calls $this->render_content() for the internals.
protected render ( )

render_content() 보호된 메소드

Render the control's content.
또한 보기: WP_Customize_Control::render_content()
protected render_content ( )

to_json() 공개 메소드

Refresh the parameters passed to the JavaScript via JSON.
또한 보기: WP_Customize_Control::to_json()
public to_json ( )

프로퍼티 상세

$js_vars 공개적으로 프로퍼티

Used to automatically generate all postMessage scripts.
public array $js_vars
리턴 array

$kirki_config 공개적으로 프로퍼티

The kirki_config we're using for this control
public string $kirki_config
리턴 string

$l10n 보호되어 있는 프로퍼티

The translation strings.
부터: 2.3.5
protected array $l10n
리턴 array

$option_type 공개적으로 프로퍼티

Data type
public string $option_type
리턴 string

$output 공개적으로 프로퍼티

Used to automatically generate all CSS output.
public array $output
리턴 array

$tooltip 공개적으로 프로퍼티

Tooltips content.
public string $tooltip
리턴 string