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');
 }
 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');
     }
 }
 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'));
 }
 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');
     }
 }
 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');
 }
 public function enqueue()
 {
     wp_enqueue_script('formstone', trailingslashit(kirki_url()) . 'includes/controls/switch/formstone-core.js', array('jquery'));
     wp_enqueue_script('formstone-touch', trailingslashit(kirki_url()) . 'includes/controls/switch/formstone-touch.js', array('jquery', 'formstone'));
     wp_enqueue_script('formstone-checkbox', trailingslashit(kirki_url()) . 'includes/controls/switch/formstone-checkbox.js', array('jquery', 'formstone', 'formstone-touch'));
     wp_enqueue_style('kirki-switch', trailingslashit(kirki_url()) . 'includes/controls/switch/style.css');
 }
 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');
     }
 }
 /**
  * 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');
 }
예제 #9
0
 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());
 }
 /**
  * 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());
 }
예제 #11
0
 /**
  * @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;
 }
 /**
  * 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);
 }
 public function enqueue()
 {
     wp_enqueue_script('kirki-editor', trailingslashit(kirki_url()) . 'includes/controls/editor/kirki-editor.js', array('jquery'));
 }
 public function enqueue()
 {
     wp_enqueue_script('jquery-ui-button');
     wp_enqueue_style('kirki-radio-buttonset', trailingslashit(kirki_url()) . 'includes/controls/radio-buttonset/style.css');
 }
 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');
 }
 /**
  * Add a dummy, empty stylesheet.
  */
 public function frontend_styles()
 {
     wp_enqueue_style('kirki-styles', trailingslashit(kirki_url()) . 'assets/css/kirki-styles.css', null, null);
 }
 public function enqueue()
 {
     wp_enqueue_script('jquery-ui-button');
     wp_enqueue_script('kirki-palette', trailingslashit(kirki_url()) . 'includes/controls/palette/script.js', array('jquery', 'jquery-ui-button'));
     wp_enqueue_style('kirki-palette', trailingslashit(kirki_url()) . 'includes/controls/palette/style.css');
 }
예제 #18
0
 /**
  * Enqueue the stylesheets required.
  */
 public function customizer_styles()
 {
     wp_enqueue_style('kirki-customizer-css', trailingslashit(kirki_url()) . 'assets/css/customizer.css', null, '0.5');
     wp_add_inline_style('kirki-customizer-css', $this->custom_css());
 }
 public function enqueue()
 {
     wp_enqueue_script('kirki-color-alpha', trailingslashit(kirki_url()) . 'includes/controls/color-alpha/script.js', array('jquery'));
     wp_enqueue_style('kirki-color-alpha', trailingslashit(kirki_url()) . 'includes/controls/color-alpha/style.css');
 }
 public function enqueue()
 {
     wp_enqueue_script('jquery-ui');
     wp_enqueue_script('jquery-ui-slider');
     wp_enqueue_style('kirki-slider', trailingslashit(kirki_url()) . 'includes/controls/slider/style.css');
 }
 public function enqueue()
 {
     wp_enqueue_script('kirki-multicheck', trailingslashit(kirki_url()) . 'includes/controls/multicheck/kirki-multicheck.js', array('jquery'));
 }
 public function enqueue()
 {
     if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
         wp_enqueue_style('kirki-toggle', trailingslashit(kirki_url()) . 'includes/controls/toggle/style.css');
     }
 }
 public function enqueue()
 {
     wp_enqueue_style('kirki-dimension', trailingslashit(kirki_url()) . 'includes/controls/dimension/style.css');
     wp_enqueue_script('kirki-dimension', trailingslashit(kirki_url()) . 'includes/controls/dimension/kirki-dimension.js', array('jquery'));
 }