/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); $this->set_attr('type', 'text'); $this->set_attr('class', 'slider-option'); $this->set_attr('value', intval($value)); }
/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); $this->set_attr('type', 'text'); $this->set_attr('class', 'oxy-date-field'); $this->set_attr('value', $value); }
/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); $this->set_attr('type', 'hidden'); $this->set_attr('value', esc_attr($value)); $this->set_attr('id', $field['id']); $this->set_attr('data-store', $field['store']); }
/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); $this->set_attr('data-theme', THEME_URI); $this->set_attr('class', 'oxy-font-field font-option with-preview'); if (isset($value['font'])) { $this->_value = $value['font']; // set variant if we have one if (isset($value['variant'])) { if (is_array($value['variant'])) { $this->set_attr('data-variant', implode(',', $value['variant'])); } else { $this->set_attr('data-variant', $value['variant']); } } if (isset($value['subsets'])) { if (is_array($value['subsets'])) { $this->set_attr('data-subsets', implode(',', $value['subsets'])); } else { $this->set_attr('data-subsets', $value['subsets']); } } } }
/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); }
/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); $this->set_attr('type', 'radio'); }
/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); //$this->set_attr( 'value', esc_attr( $value ) ); }
/** * Creates option * * @return void * @since 1.0 **/ function __construct($field, $value, $attr) { parent::__construct($field, $value, $attr); $this->set_attr('type', 'number'); $this->set_attr('value', intval($value)); }