public function enqueue()
 {
     parent::enqueue();
     // load wordpress bundled colorpicker
     wp_enqueue_style('wp-color-picker');
     // load script
     wp_enqueue_script('colour-field', OXY_TF_URI . 'inc/options/fields/colour/colour.js', array('wp-color-picker'));
 }
 public function enqueue()
 {
     parent::enqueue();
     // load styles
     wp_enqueue_style('jquery-oxygenna-ui-theme');
     // load scripts
     wp_enqueue_script('imgradio-field', OXY_TF_URI . 'inc/options/fields/imgradio/imgradio.js', array('jquery-ui-button'));
 }
 public function enqueue()
 {
     parent::enqueue();
     // load styles
     wp_enqueue_style('jquery-oxygenna-ui-theme');
     // load scripts
     wp_enqueue_script('slider-field', OXY_TF_URI . 'inc/options/fields/slider/slider.js', array('jquery-ui-slider'));
 }
Example #4
0
 public function enqueue()
 {
     parent::enqueue();
     // load styles
     wp_enqueue_style('jquery-oxygenna-ui-theme');
     // load scripts
     wp_enqueue_script('date-field', OXY_TF_URI . 'inc/options/fields/date/date.js', array('jquery-ui-datepicker'));
 }
 public function enqueue()
 {
     parent::enqueue();
     // load styles
     wp_enqueue_style('oxy-option-upload', OXY_TF_URI . 'assets/css/options/oxy-option-upload.css', array('thickbox'));
     // load scripts
     wp_enqueue_script('upload-field', OXY_TF_URI . 'inc/options/fields/upload/upload.js', array('jquery', 'thickbox', 'media-upload'));
 }
 public function enqueue()
 {
     parent::enqueue();
     wp_enqueue_style('oxy-spectrum', OXY_TF_URI . 'assets/components/spectrum/spectrum.css');
     // load script
     wp_enqueue_script('oxy-spectrum', OXY_TF_URI . 'assets/components/spectrum/spectrum.js', array('jquery'));
     wp_enqueue_script('oxy-colour-field', OXY_TF_URI . 'inc/options/fields/colour/colour.js', array('oxy-spectrum'));
 }
 /**
  * Creates option
  *
  * @return void
  *              @since 1.0
  **/
 public function __construct($field, $value, $attr)
 {
     parent::__construct($field, $value, $attr);
     $this->set_attr('type', 'text');
     $this->set_attr('value', esc_attr($value));
 }
 /**
  * Creates option
  *
  * @return void
  *              @since 1.0
  **/
 public function __construct($field, $value, $attr)
 {
     parent::__construct($field, $value, $attr);
     $this->set_attr('type', 'checkbox');
 }
 public function enqueue()
 {
     parent::enqueue();
 }
 public function enqueue()
 {
     parent::enqueue();
     if (isset($this->attr['class']) && strrpos($this->attr['class'], 'select2') !== false) {
         wp_enqueue_script('select2-plugin', OXY_TF_URI . 'assets/javascripts/select2.min.js', array('jquery'));
         wp_enqueue_style('select2-style', OXY_TF_URI . 'assets/css/select2/select2.css');
         wp_enqueue_script('select2-select-option', OXY_TF_URI . 'inc/options/fields/select/select2.js', array('jquery'));
     }
 }
 /**
  * Creates option
  *
  * @return void
  *              @since 1.0
  **/
 public function __construct($field, $value, $attr)
 {
     parent::__construct($field, $value, $attr);
 }