CMB2_Type_Text_Date

CMB text_date 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_Text_Date.php  
  1. class CMB2_Type_Text_Date extends CMB2_Type_Picker_Base { 
  2.  
  3. public function render() { 
  4. $args = $this->parse_args( 'text_date', array( 
  5. 'class' => 'cmb2-text-small cmb2-datepicker',  
  6. 'value' => $this->field->get_timestamp_format(),  
  7. 'desc' => $this->_desc(),  
  8. 'js_dependencies' => array( 'jquery-ui-core', 'jquery-ui-datepicker' ),  
  9. ) ); 
  10.  
  11. if ( false === strpos( $args['class'], 'timepicker' ) ) { 
  12. $this->parse_picker_options( 'date' ); 
  13.  
  14. return parent::render( $args ); 
  15.