';
}
if ( $prefix ) {
$this->set_attribute( 'prefix', 'class', [ 'post-prefix' ] );
$output .= isset( $settings['prefixBlock'] ) ? "render_attributes( 'prefix' )}>{$prefix}
" : "render_attributes( 'prefix' )}>{$prefix}";
}
$post = get_post( $this->post_id );
$output .= $post->post_title;
if ( $suffix ) {
$this->set_attribute( 'suffix', 'class', [ 'post-suffix' ] );
$output .= isset( $settings['suffixBlock'] ) ? "render_attributes( 'suffix' )}>{$suffix}
" : "render_attributes( 'suffix' )}>{$suffix}";
}
if ( $link_to_product ) {
$output .= '';
}
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- render_attributes() handles escaping, output is escaped
echo "<" . esc_html($this->tag) . " {$this->render_attributes( '_root' )}>" . wp_kses_post($output) . "" . esc_html($this->tag) . ">";
}
public static function render_builder() { ?>