';
if ( 'attachment' == $tab['caption_source'] ) {
$caption = wp_get_attachment_caption( $gallery['id'] );
} elseif ( 'custom' == $tab['caption_source'] ) {
$caption = ! Utils::is_empty( $tab['caption'] ) ? $tab['caption'] : '';
}
?>
render_tab_content_title( $tab, $settings ); ?>
render_tab_content( $tab ); ?>
render_read_more( 'read-more', $tab, [ 'class' => 'tab-content-button' ] ); ?>