<?php
$shortcode_atts = betterdocs()->template_helper->shortcode_atts( [
    'title'      => $title,
    'show_title' => $show_title,
    'layout'     => $layout
], '', '' );

echo '<div class="betterdocs-related-articles-root '.esc_attr( $blockId ).'">'.do_shortcode( "[betterdocs_related_docs $shortcode_atts]" ).'</div>';
