HEX
Server: LiteSpeed
System: Linux sg-cp4.cloudnetwork.vn 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User: thu28850 (1134)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/thu28850/www/wp-content/themes/martfury/template-parts/page-headers/catalog-1.php
<?php
global $martfury_woocommerce;
$show_title     = true;
$container_class = 'container';
if ( ! empty( $martfury_woocommerce ) && method_exists( $martfury_woocommerce, 'get_catalog_elements' ) ) {
	$elements = $martfury_woocommerce->get_catalog_elements();
	if ( empty( $elements ) || ! in_array( 'title', $elements ) ) {
		$show_title = false;
	}

}

$show_title =  apply_filters( 'martfury_catalog_page_title', $show_title );

$container_class = apply_filters( 'martfury_catalog_page_header_container', 'container' );

?>

<div class="page-header page-header-catalog">
	<?php if ( $show_title ) { ?>
        <div class="page-title">
            <div class="<?php echo esc_attr( $container_class ); ?>">
				<?php the_archive_title( '<h1 class="entry-title">', '</h1>' ); ?>
            </div>
        </div>
	<?php } ?>
	<?php if ( ! empty( $elements ) && in_array( 'breadcrumb', $elements ) ) : ?>
        <div class="page-breadcrumbs">
            <div class="<?php echo esc_attr( $container_class ); ?>">
				<?php martfury_get_breadcrumbs(); ?>
            </div>
        </div>
	<?php endif; ?>
</div>