PHP Class Kirki_Styles_Frontend, kirki

显示文件 Open project: aristath/kirki Class Usage Examples

Public Properties

Property Type Description
$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.

Public Methods

Method Description
__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.

Method Details

__construct() public method

Constructor
public __construct ( )

ajax_dynamic_css() public method

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

frontend_styles() public method

Enqueues the ajax stylesheet.
public frontend_styles ( )

init() public method

Init.
public init ( )

inline_dynamic_css() public method

Adds inline styles.
public inline_dynamic_css ( )

loop_controls() public static method

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

Property Details

$ajax public_oe static_oe property

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

$css_array public_oe static_oe property

The CSS array
public static array $css_array
return array

$processed public_oe property

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