class_id( $attributes ); $css->set_style_id( 'kb-' . $this->block_name . $unique_style_id ); $css->set_selector( '.wp-block-kadence-advanced-form .kb-field' . $class_id ); $css->render_responsive_range( $attributes, 'maxWidth', 'max-width', 'maxWidthUnit' ); $css->render_responsive_range( $attributes, 'minWidth', 'min-width', 'minWidthUnit' ); return $css->css_output(); } /** * Return dynamically generated HTML for block * * @param $attributes * @param $unique_id * @param $content * @param WP_Block $block_instance The instance of the WP_Block class that represents the block being rendered. * * @return mixed */ public function build_html( $attributes, $unique_id, $content, $block_instance ) { $type = 'tel'; $is_required = $this->is_required( $attributes ); $class_id = $this->class_id( $attributes ); $outer_classes = [ 'kb-adv-form-field', 'kb-adv-form-text-type-input', 'kb-adv-form-infield-type-input', 'kb-field' . $class_id ]; $wrapper_args = [ 'class' => implode( ' ', $outer_classes ), ]; $wrapper_attributes = get_block_wrapper_attributes( $wrapper_args ); $inner_content = ''; $inner_content .= $this->field_label( $attributes ); $inner_content .= $this->field_aria_label( $attributes ); $inner_content .= 'aria_described_by( $attributes ) . ' data-label="' . esc_attr( $this->get_label( $attributes ) ) . '"' . $this->get_auto_complete( $attributes ) . ' type="' . esc_attr( $type ) . '" placeholder="' . esc_attr( $this->get_placeholder( $attributes ) ) . '" value="' . esc_attr( $this->get_default( $attributes ) ) . '" data-type="' . esc_attr( $type ) . '" class="kb-field kb-' . esc_attr( $type ) . '-field" data-required="' . esc_attr( $is_required ) . '" ' . $this->additional_field_attributes( $attributes ) . '/>'; $inner_content .= $this->field_help_text( $attributes ); $content = sprintf( '
%2$s
', $wrapper_attributes, $inner_content ); return $content; } } Kadence_Blocks_Telephone_Input_Block::get_instance();