当前位置: 首页>>代码示例>>PHP>>正文


PHP kirki_url函数代码示例

本文整理汇总了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');
 }
开发者ID:wpmu,项目名称:maera,代码行数:7,代码来源:class-kirki-controls-sortable-control.php

示例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');
     }
 }
开发者ID:de190909,项目名称:WPTest,代码行数:7,代码来源:class-kirki-controls-repeater-control.php

示例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'));
 }
开发者ID:apurbajnu,项目名称:kirki,代码行数:7,代码来源:class-kirki-controls-dimension-control.php

示例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');
     }
 }
开发者ID:Wordpress-Development,项目名称:ornea,代码行数:7,代码来源:class-kirki-controls-radio-image-control.php

示例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');
 }
开发者ID:vulinhpc,项目名称:kirki,代码行数:7,代码来源:class-kirki-controls-number-control.php

示例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');
     }
 }
开发者ID:de190909,项目名称:WPTest,代码行数:8,代码来源:class-kirki-controls-code-control.php

示例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');
 }
开发者ID:de190909,项目名称:WPTest,代码行数:11,代码来源:class-kirki-scripts-customizer-default-scripts.php

示例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());
 }
开发者ID:yarwalker,项目名称:ecobyt,代码行数:9,代码来源:test-kirki-functions.php

示例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());
 }
开发者ID:Wordpress-Development,项目名称:ornea,代码行数:12,代码来源:class-kirki-styles-customizer.php

示例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;
 }
开发者ID:wpmu,项目名称:maera,代码行数:14,代码来源:class-kirki-colourlovers.php

示例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);
 }
开发者ID:de190909,项目名称:WPTest,代码行数:15,代码来源:class-kirki-styles-frontend.php

示例12: enqueue

 public function enqueue()
 {
     wp_enqueue_script('kirki-editor', trailingslashit(kirki_url()) . 'includes/controls/editor/kirki-editor.js', array('jquery'));
 }
开发者ID:Wordpress-Development,项目名称:ornea,代码行数:4,代码来源:class-kirki-controls-editor-control.php

示例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');
 }
开发者ID:yarwalker,项目名称:ecobyt,代码行数:5,代码来源:class-kirki-controls-radio-buttonset-control.php

示例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');
 }
开发者ID:de190909,项目名称:WPTest,代码行数:6,代码来源:class-kirki-controls-select2-control.php

示例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);
 }
开发者ID:javierev,项目名称:100pixelstheme,代码行数:7,代码来源:class-kirki-styles-frontend.php


注:本文中的kirki_url函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。