CMB2_Type_Select

CMB select field type.

Defined (1)

The class is defined in the following location(s).

/vendor/wordimpress/maps-builder-core/includes/libraries/metabox/includes/types/CMB2_Type_Select.php  
  1. class CMB2_Type_Select extends CMB2_Type_Multi_Base { 
  2.  
  3. public function render() { 
  4. $a = $this->parse_args( 'select', array( 
  5. 'class' => 'cmb2_select',  
  6. 'name' => $this->_name(),  
  7. 'id' => $this->_id(),  
  8. 'desc' => $this->_desc( true ),  
  9. 'options' => $this->concat_items(),  
  10. ) ); 
  11.  
  12. $attrs = $this->concat_attrs( $a, array( 'desc', 'options' ) ); 
  13.  
  14. return $this->rendered( 
  15. sprintf( '<select%s>%s</select>%s', $attrs, $a['options'], $a['desc'] ) 
  16. );