當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。