You've already forked wc-bootstrap
35 lines
1.0 KiB
Twig
35 lines
1.0 KiB
Twig
|
|
{#
|
||
|
|
# Product Category Content in Loop (Bootstrap 5 Override)
|
||
|
|
#
|
||
|
|
# Renders a product category card within the shop loop grid.
|
||
|
|
#
|
||
|
|
# Expected context:
|
||
|
|
# category - Product category object with:
|
||
|
|
# .name - Category name
|
||
|
|
# .count - Number of products
|
||
|
|
# .link - Category URL
|
||
|
|
# .thumbnail - Category thumbnail HTML
|
||
|
|
#
|
||
|
|
# WooCommerce PHP equivalent: content-product-cat.php
|
||
|
|
#
|
||
|
|
# @package WcBootstrap
|
||
|
|
# @since 0.1.0
|
||
|
|
#}
|
||
|
|
|
||
|
|
<div class="col">
|
||
|
|
<article class="card h-100 shadow-sm product-category">
|
||
|
|
{{ do_action('woocommerce_before_subcategory', category) }}
|
||
|
|
|
||
|
|
<div class="position-relative overflow-hidden">
|
||
|
|
{{ do_action('woocommerce_before_subcategory_title', category) }}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="card-body text-center">
|
||
|
|
{{ do_action('woocommerce_shop_loop_subcategory_title', category) }}
|
||
|
|
{{ do_action('woocommerce_after_subcategory_title', category) }}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{{ do_action('woocommerce_after_subcategory', category) }}
|
||
|
|
</article>
|
||
|
|
</div>
|