PHP 클래스 Kirki_Styles_Frontend, kirki

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

공개 프로퍼티들

프로퍼티 타입 설명
$ajax boolean Set to true if you want to use the AJAX method.
$css_array array The CSS array
$processed boolean Whether we've already processed this or not.

공개 메소드들

메소드 설명
__construct ( ) Constructor
ajax_dynamic_css ( ) Get the dynamic-css.php file
frontend_styles ( ) Enqueues the ajax stylesheet.
init ( ) Init.
inline_dynamic_css ( ) Adds inline styles.
loop_controls ( string $config_id ) Loop through all fields and create an array of style definitions.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

ajax_dynamic_css() 공개 메소드

Get the dynamic-css.php file
public ajax_dynamic_css ( )

frontend_styles() 공개 메소드

Enqueues the ajax stylesheet.
public frontend_styles ( )

init() 공개 메소드

Init.
public init ( )

inline_dynamic_css() 공개 메소드

Adds inline styles.
public inline_dynamic_css ( )

loop_controls() 공개 정적인 메소드

Loop through all fields and create an array of style definitions.
public static loop_controls ( string $config_id )
$config_id string The configuration ID.

프로퍼티 상세

$ajax 공개적으로 정적으로 프로퍼티

Set to true if you want to use the AJAX method.
public static bool $ajax
리턴 boolean

$css_array 공개적으로 정적으로 프로퍼티

The CSS array
public static array $css_array
리턴 array

$processed 공개적으로 프로퍼티

Whether we've already processed this or not.
public bool $processed
리턴 boolean