array( $this, 'block_render' ), 'attributes' => GhostKit_Form_Field_Attributes::get_block_attributes( array( 'label' => array( 'default' => esc_html__( 'Date', 'ghostkit' ), ), 'min' => array( 'type' => 'string', ), 'max' => array( 'type' => 'string', ), ) ), ) ); } /** * Register gutenberg block output * * @param array $attributes - block attributes. * * @return string */ public function block_render( $attributes ) { ob_start(); $class = 'ghostkit-form-field ghostkit-form-field-date'; if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } ?>
/>