PHP Class Kirki_Styles_Frontend, kirki

Afficher le fichier Open project: aristath/kirki Class Usage Examples

Méthodes publiques

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

Méthodes publiques

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

Constructor
public __construct ( )

ajax_dynamic_css() public méthode

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

frontend_styles() public méthode

Enqueues the ajax stylesheet.
public frontend_styles ( )

init() public méthode

Init.
public init ( )

inline_dynamic_css() public méthode

Adds inline styles.
public inline_dynamic_css ( )

loop_controls() public static méthode

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

$css_array public_oe static_oe property

The CSS array
public static array $css_array
Résultat array

$processed public_oe property

Whether we've already processed this or not.
public bool $processed
Résultat boolean