Files
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

40 lines
1.6 KiB
PHP

<?php
/**
* The template part for selected title (breadcrubms) section
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$background_image = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'breadcrumbs_background_image' ) : '';
?>
<section class="page_breadcrumbs ds background_cover section_padding_top_30 section_padding_bottom_25" <?php echo !empty( $background_image ) ? 'style="background-image: url(' . esc_url( $background_image['url'] ) . ')"' : ''; ?>>
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<?php if ( !is_single() ) : ?>
<h2>
<?php
get_template_part( 'template-parts/breadcrumbs/page-title-text' );
?>
</h2>
<?php endif; ?>
<?php
if ( function_exists( 'woocommerce_breadcrumb123' ) ) {
woocommerce_breadcrumb( array(
'delimiter' => '',
'wrap_before' => '<nav class="woocommerce-breadcrumb" ' . ( is_single() ? 'itemprop="breadcrumb"' : '' ) . '><ol class="breadcrumb big-spacing darklinks">',
'wrap_after' => '</ol></nav>',
'before' => '<li>',
'after' => '</li>',
'home' => esc_html_x( 'Home', 'breadcrumb', 'solarify' )
) );
} elseif ( function_exists( 'fw_ext_breadcrumbs' ) ) {
fw_ext_breadcrumbs();
}
?>
</div>
</div>
</div>
</section>