Ejemplo n.º 1
0
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->args = array_merge(array('taxonomy' => 'category', 'class' => '', 'hide_empty' => 0), $this->args);
     $this->args['class'] .= ' cuztom-input cuztom-select cuztom-term-select';
     $this->args['echo'] = 0;
 }
Ejemplo n.º 2
0
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->args = array_merge(array('orderby' => 'ID', 'class' => ''), $this->args);
     $this->args['class'] .= ' cuztom-input cuztom-select cuztom-user-select';
     $this->args['echo'] = 0;
 }
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->args = array_merge(array('taxonomy' => 'category'), $this->args);
     $this->default_value = (array) $this->default_value;
     add_action('init', array(&$this, 'get_taxonomy_terms'));
     $this->after .= '[]';
 }
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->args = array_merge(array('post_type' => 'post', 'posts_per_page' => -1), $this->args);
     $this->default_value = (array) $this->default_value;
     $this->posts = get_posts($this->args);
     $this->after .= '[]';
 }
Ejemplo n.º 5
0
 function __construct($field, $meta_box)
 {
     parent::__construct($field, $meta_box);
     $this->options = array_merge(array('taxonomy' => 'category', 'class' => ''), $this->options);
     $this->options['class'] .= ' cuztom_input';
     $this->options['name'] = 'cuztom[' . $this->id_name . ']' . ($this->repeatable ? '[]' : '');
     $this->options['echo'] = 0;
 }
Ejemplo n.º 6
0
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->args = array_merge(array('textarea_name' => 'cuztom[' . $this->id . ']', 'editor_class' => ''), $this->args);
     $this->args['editor_class'] .= ' cuztom-input';
 }
Ejemplo n.º 7
0
 function __construct($field, $meta_box)
 {
     parent::__construct($field, $meta_box);
     $this->options = array_merge(array('post_type' => 'post'), $this->options);
     $this->posts = get_posts($this->options);
 }
Ejemplo n.º 8
0
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->default_value = (array) $this->default_value;
     $this->after .= '[]';
 }
Ejemplo n.º 9
0
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->data_attributes['default-value'] = $this->default_value;
 }
Ejemplo n.º 10
0
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->data_attributes['date-format'] = $this->parse_date_format(isset($this->args['date_format']) ? $this->args['date_format'] : 'm/d/Y');
     $this->data_attributes['time-format'] = $this->parse_date_format(isset($this->args['time_format']) ? $this->args['time_format'] : 'H:i');
 }
Ejemplo n.º 11
0
 function __construct($field, $parent)
 {
     parent::__construct($field, $parent);
     $this->args = array_merge(array('post_type' => 'post', 'posts_per_page' => -1, 'cache_results' => false, 'no_found_rows' => true), $this->args);
     $this->posts = get_posts($this->args);
 }
Ejemplo n.º 12
0
 function __construct($field, $meta_box)
 {
     parent::__construct($field, $meta_box);
     $this->options = array_merge(array('textarea_name' => 'cuztom[' . $this->id_name . ']', 'media_buttons' => false, 'editor_class' => ''), $this->options);
     $this->options['editor_class'] .= ' cuztom_input';
 }
Ejemplo n.º 13
0
 function __construct($field, $meta_box)
 {
     parent::__construct($field, $meta_box);
     $this->options = array_merge(array('taxonomy' => 'category'), $this->options);
     $this->terms = get_terms($this->options['taxonomy'], $this->options);
 }