$attributes Block attributes. * @since 0.0.2 */ public function __construct( $attributes ) { $this->set_properties( $attributes ); $this->slug = 'number'; $this->min_value = isset( $attributes['minValue'] ) ? $attributes['minValue'] : ''; $this->max_value = isset( $attributes['maxValue'] ) ? $attributes['maxValue'] : ''; $this->format_type = isset( $attributes['formatType'] ) ? $attributes['formatType'] : ''; $this->format_attr = $this->format_type ? ' format-type="' . $this->format_type . '" ' : ''; $this->min_value_attr = $this->min_value ? ' min="' . $this->min_value . '" ' : ''; $this->max_value_attr = $this->max_value ? ' max="' . $this->max_value . '" ' : ''; $this->set_input_label( __( 'Number', 'sureforms' ) ); $this->set_error_msg( $attributes, 'srfm_number_block_required_text' ); $this->set_unique_slug(); $this->set_field_name( $this->unique_slug ); $this->set_markup_properties( $this->input_label ); $this->set_aria_described_by(); $this->set_label_as_placeholder( $this->input_label ); } /** * Render the sureforms number classic styling * * @since 0.0.2 * @return string|boolean */ public function markup() { ob_start(); ?>