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.
Exemplo n.º 1
0
<?php

/**
 * Do not allow directly accessing this file.
 */
if (!class_exists('Kirki')) {
    die('File can\'t be accessed directly');
}
/**
 * Make sure we set the correct MIME type
 */
header('Content-Type: text/css');
/**
 * Echo the styles
 */
$configs = Kirki::$config;
foreach ($configs as $config_id => $args) {
    if (true === $args['disable_output']) {
        continue;
    }
    echo Kirki_Styles_Frontend::loop_controls($config_id);
}
Exemplo n.º 2
0
<?php

/**
 * Do not allow directly accessing this file.
 */
if (!class_exists('blank-theme')) {
    die('File can\'t be accessed directly');
}
/**
 * Make sure we set the correct MIME type
 */
header('Content-Type: text/css');
/**
 * Echo the styles
 */
echo Kirki_Styles_Frontend::loop_controls();