public function enqueue()
 {
     /**
      * Get the language
      */
     $lang_file = '/assets/js/vendor/codemirror/mode/' . $this->choices['language'] . '/' . $this->choices['language'] . '.js';
     $language = 'css';
     if (file_exists(Kirki::$path . $lang_file) || !file_exists(Kirki::$path . str_replace('/', DIRECTORY_SEPARATOR, $lang_file))) {
         $language = $this->choices['language'];
     }
     /**
      * Get the theme
      */
     $theme_file = '/assets/js/vendor/codemirror/theme/' . $this->choices['theme'] . '.css';
     $theme = 'monokai';
     if (file_exists(Kirki::$path . $theme_file) || file_exists(Kirki::$path . str_replace('/', DIRECTORY_SEPARATOR, $theme_file))) {
         $theme = $this->choices['theme'];
     }
     /**
      * Enqueue dependencies
      */
     Kirki_Styles_Customizer::enqueue_customizer_control_script('codemirror', 'vendor/codemirror/lib/codemirror', array('jquery'));
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-code', 'controls/code', array('jquery', 'codemirror'));
     /**
      * Add language script
      */
     wp_enqueue_script('codemirror-language-' . $language, trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/mode/' . $language . '/' . $language . '.js', array('jquery', 'codemirror'));
     /**
      * Add theme styles
      */
     wp_enqueue_style('codemirror-theme-' . $theme, trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/theme/' . $theme . '.css');
 }
 public function enqueue()
 {
     /**
      * Get the language
      */
     $lang_file = '/assets/js/vendor/codemirror/mode/' . $this->choices['language'] . '/' . $this->choices['language'] . '.js';
     $language = 'css';
     if (file_exists(Kirki::$path . $lang_file) || !file_exists(Kirki::$path . str_replace('/', DIRECTORY_SEPARATOR, $lang_file))) {
         $language = $this->choices['language'];
     }
     // hack for 'html' mode.
     if ('html' == $language) {
         $language = 'htmlmixed';
     }
     /**
      * Get the theme
      */
     $theme_file = '/assets/js/vendor/codemirror/theme/' . $this->choices['theme'] . '.css';
     $theme = 'monokai';
     if (file_exists(Kirki::$path . $theme_file) || file_exists(Kirki::$path . str_replace('/', DIRECTORY_SEPARATOR, $theme_file))) {
         $theme = $this->choices['theme'];
     }
     /**
      * Enqueue dependencies
      */
     Kirki_Styles_Customizer::enqueue_customizer_control_script('codemirror', 'vendor/codemirror/lib/codemirror', array('jquery'));
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-code', 'controls/code', array('jquery', 'codemirror'));
     /**
      * If we're using html mode, we'll also need to include the multiplex addon
      * as well as dependencies for XML, JS, CSS languages.
      */
     if (in_array($language, array('html', 'htmlmixed'))) {
         wp_enqueue_script('codemirror-multiplex', trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/addon/mode/multiplex.js', array('jquery', 'codemirror'));
         wp_enqueue_script('codemirror-language-xml', trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/mode/xml/xml.js', array('jquery', 'codemirror'));
         wp_enqueue_script('codemirror-language-javascript', trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/mode/javascript/javascript.js', array('jquery', 'codemirror'));
         wp_enqueue_script('codemirror-language-css', trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/mode/css/css.js', array('jquery', 'codemirror'));
         wp_enqueue_script('codemirror-language-htmlmixed', trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/mode/htmlmixed/htmlmixed.js', array('jquery', 'codemirror', 'codemirror-multiplex', 'codemirror-language-xml', 'codemirror-language-javascript', 'codemirror-language-css'));
     } else {
         /**
          * Add language script
          */
         wp_enqueue_script('codemirror-language-' . $language, trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/mode/' . $language . '/' . $language . '.js', array('jquery', 'codemirror'));
     }
     /**
      * Add theme styles
      */
     wp_enqueue_style('codemirror-theme-' . $theme, trailingslashit(Kirki::$url) . 'assets/js/vendor/codemirror/theme/' . $theme . '.css');
 }
 public function enqueue()
 {
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-radio-image', 'controls/radio-image', array('jquery', 'jquery-ui-button'));
 }
 public function enqueue()
 {
     Kirki_Styles_Customizer::enqueue_customizer_control_script('selectize', 'vendor/selectize', array('jquery'));
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-typography', 'controls/typography', array('jquery', 'selectize'));
 }
 public function enqueue()
 {
     Kirki_Styles_Customizer::enqueue_customizer_control_script('jquery-ui-spinner', 'vendor/jquery-ui-spinner', array('jquery', 'jquery-ui-core', 'jquery-ui-button'));
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-number', 'controls/number', array('jquery', 'formstone', 'formstone-number'));
 }
 public function enqueue()
 {
     Kirki_Styles_Customizer::enqueue_customizer_control_script('ace', 'vendor/ace/src-min-noconflict/ace', array('jquery'));
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-code', 'controls/code', array('jquery', 'ace'));
 }
 public function enqueue()
 {
     wp_enqueue_script('jquery-ui-core');
     wp_enqueue_script('jquery-ui-sortable');
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-sortable', 'controls/sortable', array('jquery', 'jquery-ui-core', 'jquery-ui-sortable'));
 }
 public function enqueue()
 {
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-' . str_replace('kirki-', '', $this->type), 'controls/' . str_replace('kirki-', '', $this->type), array('jquery'));
 }
 public function enqueue()
 {
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-repeater', 'controls/repeater', array('jquery', 'customize-base'), true);
     wp_enqueue_script('jquery-ui-core');
     wp_enqueue_script('jquery-ui-sortable');
 }
 public function enqueue()
 {
     wp_enqueue_script('jquery-ui-button');
     Kirki_Styles_Customizer::enqueue_customizer_control_script('kirki-palette', 'controls/palette', array('jquery', 'jquery-ui-button'));
 }