<?php
$options       = thrive_get_options_for_post();
$template_name = _thrive_get_item_template( get_the_ID() );

if (
	! empty( $options['display_breadcrumbs'] ) &&
	! is_front_page() &&
	! is_search() &&
	! is_404()
) {
	?>
	<section class="brd">
		<div class="wrp <?php if ( $template_name === 'Narrow' ) : ?>bwr<?php endif; ?>">
			<?php if ( _thrive_check_is_woocommerce_page() && function_exists( 'woocommerce_breadcrumb' ) ) : ?>
				<?php woocommerce_breadcrumb(); ?>
			<?php else : ?>
				<ul itemscope itemtype="https://schema.org/BreadcrumbList">
					<?php thrive_breadcrumbs(); ?>
				</ul>
			<?php endif; ?>
		</div>
	</section>
<?php }
