Ejemplo n.º 1
0
 /**
  * wp_enqueue_script action
  */
 public function enqueue_javascript()
 {
     wp_enqueue_script('wp-color-picker');
     Script::enqueue_admin_inline_script('wpkit-field-color', $this->_render_javascript());
 }
Ejemplo n.º 2
0
 /**
  * wp_enqueue_script action
  */
 public function enqueue_javascript()
 {
     wp_enqueue_script('jquery-ui-datepicker');
     Script::enqueue_admin_inline_script('wpkit-field-date', $this->_render_javascript());
 }
Ejemplo n.º 3
0
 /**
  * wp_enqueue_script action
  */
 public function enqueue_javascript()
 {
     wp_enqueue_script('jquery-ui-autocomplete');
     wp_enqueue_script('google-maps-api', '//maps.google.com/maps/api/js?sensor=false', [], false, true);
     Script::enqueue_admin_inline_script('wpkit-field-map', $this->_render_javascript());
 }
Ejemplo n.º 4
0
 protected function _enqueue_javascript()
 {
     wp_enqueue_script('underscore');
     wp_enqueue_script('jquery-ui-sortable');
     wp_enqueue_script('jquery-effects-highlight');
     Script::enqueue_admin_inline_script('wpkit-meta-box-related-posts', $this->_render_javascript());
     parent::_enqueue_javascript();
 }
Ejemplo n.º 5
0
 /**
  * wp_enqueue_script action
  */
 public function enqueue_javascript()
 {
     wp_enqueue_script('wpkit-select2', "https://cdnjs.cloudflare.com/ajax/libs/select2/" . self::SELECT_VERSION . "/select2.min.js", ['jquery'], self::SELECT_VERSION);
     Script::enqueue_admin_inline_script('wpkit-select2-init' . $this->get_id(), $this->_render_javascript());
 }
Ejemplo n.º 6
0
 /**
  * wp_enqueue_script action
  */
 public function enqueue_javascript()
 {
     wp_enqueue_media();
     Script::enqueue_admin_inline_script('wpkit-field-file', $this->_render_javascript());
 }