Exemple #1
0
 /**
  * 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));
 }
Exemple #2
0
 /**
  * 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);
 }
Exemple #3
0
 /**
  * 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']);
 }
Exemple #4
0
 /**
  * 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']);
             }
         }
     }
 }
Exemple #5
0
 /**
  * Creates option
  *
  * @return void
  * @since 1.0
  **/
 function __construct($field, $value, $attr)
 {
     parent::__construct($field, $value, $attr);
 }
Exemple #6
0
 /**
  * Creates option
  *
  * @return void
  * @since 1.0
  **/
 function __construct($field, $value, $attr)
 {
     parent::__construct($field, $value, $attr);
     $this->set_attr('type', 'radio');
 }
Exemple #7
0
 /**
  * Creates option
  *
  * @return void
  * @since 1.0
  **/
 function __construct($field, $value, $attr)
 {
     parent::__construct($field, $value, $attr);
     //$this->set_attr( 'value', esc_attr( $value ) );
 }
Exemple #8
0
 /**
  * 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));
 }