CMB2_Type_Multicheck

CMB multicheck 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_Multicheck.php  
  1. class CMB2_Type_Multicheck extends CMB2_Type_Radio { 
  2.  
  3. /** 
  4. * The type of radio field 
  5. * @var string 
  6. */ 
  7. public $type = 'checkbox'; 
  8.  
  9. public function render() { 
  10. $classes = false === $this->field->args( 'select_all_button' ) 
  11. ? 'cmb2-checkbox-list no-select-all cmb2-list' 
  12. : 'cmb2-checkbox-list cmb2-list'; 
  13.  
  14. $args = $this->parse_args( $this->type, array( 
  15. 'class' => $classes,  
  16. 'options' => $this->concat_items( array( 
  17. 'name' => $this->_name() . '[]',  
  18. 'method' => 'list_input_checkbox',  
  19. ) ),  
  20. 'desc' => $this->_desc( true ),  
  21. ) ); 
  22.  
  23. return $this->rendered( $this->ul( $args ) ); 
  24.