You've already forked wc-bootstrap
26 lines
758 B
Twig
26 lines
758 B
Twig
|
|
{#
|
||
|
|
# Product Archive Header (Bootstrap 5 Override)
|
||
|
|
#
|
||
|
|
# Renders the archive page title and optional description.
|
||
|
|
#
|
||
|
|
# Expected context:
|
||
|
|
# show_page_title - Whether to display the title (boolean, filtered)
|
||
|
|
# page_title - Archive page title string
|
||
|
|
# archive_description - Optional archive description HTML
|
||
|
|
#
|
||
|
|
# WooCommerce PHP equivalent: loop/header.php
|
||
|
|
#
|
||
|
|
# @package WcBootstrap
|
||
|
|
# @since 0.1.0
|
||
|
|
#}
|
||
|
|
|
||
|
|
<header class="woocommerce-products-header mb-4">
|
||
|
|
{% if show_page_title is not defined or show_page_title %}
|
||
|
|
<h1 class="woocommerce-products-header__title page-title mb-2">
|
||
|
|
{{ page_title|default('')|esc_html }}
|
||
|
|
</h1>
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
{{ do_action('woocommerce_archive_description') }}
|
||
|
|
</header>
|