Ejemplo n.º 1
0
 public function __construct($id, $args = array())
 {
     parent::__construct($id, $args);
     if (!empty($args['category_filter_taxonomy_name'])) {
         $this->category_filter_taxonomy_name = $args['category_filter_taxonomy_name'];
     }
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  */
 public function __construct($id, $args = array())
 {
     parent::__construct($id, $args);
     $this->add_max_attribute();
     // entry_id
     $this->add_attribute('entry_id', array('form_control' => 'Text', 'hint' => __('Entry ID - leave empty to use the current entry ID', 'g1_theme')));
 }