CMB2_Display_Colorpicker

The Maps Builder CMB2 Display Colorpicker class.

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/libraries/metabox/includes/CMB2_Field_Display.php  
  1. class CMB2_Display_Colorpicker extends CMB2_Field_Display { 
  2. /** 
  3. * Display color picker value. 
  4. * @since 2.2.2 
  5. */ 
  6. protected function _display() { 
  7. echo '<span class="cmb2-colorpicker-swatch"><span style="background-color:', esc_attr( $this->value ), '"></span> ', esc_html( $this->value ), '</span>';