本文整理汇总了PHP中kirki_url函数的典型用法代码示例。如果您正苦于以下问题:PHP kirki_url函数的具体用法?PHP kirki_url怎么用?PHP kirki_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了kirki_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: enqueue
public function enqueue()
{
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-sortable');
wp_enqueue_script('kirki-sortable', trailingslashit(kirki_url()) . 'includes/controls/sortable/kirki-sortable.js', array('jquery', 'jquery-ui-core', 'jquery-ui-sortable'));
wp_enqueue_style('kirki-sortable', trailingslashit(kirki_url()) . 'includes/controls/sortable/style.css');
}
示例2: enqueue
public function enqueue()
{
wp_enqueue_script('kirki-repeater', trailingslashit(kirki_url()) . 'includes/controls/repeater/kirki-repeater.js', array('jquery', 'customize-base'), '', true);
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
wp_enqueue_style('kirki-repeater', trailingslashit(kirki_url()) . 'includes/controls/repeater/style.css');
}
}
示例3: enqueue
public function enqueue()
{
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
wp_enqueue_style('kirki-dimension', trailingslashit(kirki_url()) . 'includes/controls/dimension/style.css');
}
wp_enqueue_script('kirki-dimension', trailingslashit(kirki_url()) . 'includes/controls/dimension/script.js', array('jquery'));
}
示例4: enqueue
public function enqueue()
{
wp_enqueue_script('kirki-radio-image', trailingslashit(kirki_url()) . 'includes/controls/radio-image/script.js', array('jquery', 'jquery-ui-button'));
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
wp_enqueue_style('kirki-radio-image', trailingslashit(kirki_url()) . 'includes/controls/radio-image/style.css');
}
}
示例5: enqueue
public function enqueue()
{
wp_enqueue_script('formstone', trailingslashit(kirki_url()) . 'includes/controls/number/formstone-core.js', array('jquery'));
wp_enqueue_script('formstone-number', trailingslashit(kirki_url()) . 'includes/controls/number/formstone-number.js', array('jquery', 'formstone'));
wp_enqueue_script('kirki-number', trailingslashit(kirki_url()) . 'includes/controls/number/script.js', array('jquery', 'formstone', 'formstone-number'));
wp_enqueue_style('kirki-number', trailingslashit(kirki_url()) . 'includes/controls/number/style.css');
}
示例6: enqueue
public function enqueue()
{
wp_enqueue_script('ace', trailingslashit(kirki_url()) . 'includes/controls/code/src-min-noconflict/ace.js', array('jquery'));
wp_enqueue_script('kirki-code', trailingslashit(kirki_url()) . 'includes/controls/code/script.js', array('jquery', 'ace'));
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
wp_enqueue_style('kirki-code-style', trailingslashit(kirki_url()) . 'includes/controls/code/style.css');
}
}
示例7: customize_controls_enqueue_scripts
/**
* Enqueue the scripts required.
*/
public function customize_controls_enqueue_scripts()
{
wp_enqueue_script('kirki-tooltip', trailingslashit(kirki_url()) . 'assets/js/kirki-tooltip.js', array('jquery', 'customize-controls'));
wp_enqueue_script('serialize-js', trailingslashit(kirki_url()) . 'assets/js/serialize.js');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-tooltip');
wp_enqueue_script('jquery-stepper-min-js');
}
示例8: test_kirki_url
public function test_kirki_url()
{
$this->assertEquals(KIRKI_URL, kirki_url());
add_filter('kirki/config', function ($config) {
$config['url_path'] = get_stylesheet_directory_uri() . '/inc';
return $config;
});
$this->assertEquals(get_stylesheet_directory_uri() . '/inc', kirki_url());
}
示例9: customizer_styles
/**
* Enqueue the stylesheets required.
*/
public function customizer_styles()
{
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
wp_enqueue_style('kirki-customizer-css', trailingslashit(kirki_url()) . 'assets/css/customizer.css', null, Kirki_Toolkit::$version);
} else {
wp_enqueue_style('kirki-customizer-css', trailingslashit(kirki_url()) . 'assets/css/production.css', null, Kirki_Toolkit::$version);
}
wp_add_inline_style('kirki-customizer-css', $this->custom_css());
}
示例10: parse
/**
* @param string|null $xml
*/
public static function parse($xml = null)
{
// XML copied from http://www.colourlovers.com/api/palettes/top?numResults=100
$xml_url = is_null($xml) ? trailingslashit(kirki_url()) . 'assets/xml/colourlovers-top.xml' : $xml;
$feed_xml = simplexml_load_file($xml_url);
$palettes = array();
foreach ($feed_xml->palette as $result) {
$palettes[] = (array) $result->colors->hex;
}
return $palettes;
}
示例11: frontend_styles
/**
* Add a dummy, empty stylesheet.
*/
public function frontend_styles()
{
$config = apply_filters('kirki/config', array());
/**
* If we have set $config['disable_output'] to true,
* then do not proceed any further.
*/
if (isset($config['disable_output']) && true == $config['disable_output']) {
return;
}
wp_enqueue_style('kirki-styles', trailingslashit(kirki_url()) . 'assets/css/kirki-styles.css', null, null);
}
示例12: enqueue
public function enqueue()
{
wp_enqueue_script('kirki-editor', trailingslashit(kirki_url()) . 'includes/controls/editor/kirki-editor.js', array('jquery'));
}
示例13: enqueue
public function enqueue()
{
wp_enqueue_script('jquery-ui-button');
wp_enqueue_style('kirki-radio-buttonset', trailingslashit(kirki_url()) . 'includes/controls/radio-buttonset/style.css');
}
示例14: enqueue
public function enqueue()
{
wp_enqueue_script('jquery-select2', trailingslashit(kirki_url()) . 'includes/controls/select2/select2.full.min.js', array('jquery'));
wp_enqueue_script('kirki-select2', trailingslashit(kirki_url()) . 'includes/controls/select2/script.js', array('jquery', 'jquery-select2'));
wp_enqueue_style('css-select2', trailingslashit(kirki_url()) . 'includes/controls/select2/select2.min.css');
}
示例15: frontend_styles
/**
* Add a dummy, empty stylesheet.
*/
public function frontend_styles()
{
wp_enqueue_style('kirki-styles', trailingslashit(kirki_url()) . 'assets/css/kirki-styles.css', null, null);
}