You've already forked wc-bootstrap
Phase 8 (Emails) skipped: WooCommerce email rendering uses wc_get_template_html() which bypasses the Twig pipeline entirely. Email customization deferred to plugins or block email editor. Phase 9 - Supplementary (7 templates): - Brand description with thumbnail, taxonomy archive delegate - Brands A-Z shortcode with alphabetical index navigation - Single brand thumbnail shortcode - REST API OAuth login and grant-access forms - Back-in-stock notification form with email input Reusable Components (6 templates): - price: product price display with sale handling - rating: star rating with Bootstrap Icons (filled/half/empty) - address-card: billing/shipping address card with edit link - status-badge: contextual order status badges - quantity-input: +/- input group widget - form-field: universal form field renderer (text/select/textarea/checkbox) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
748 B
Twig
25 lines
748 B
Twig
{#
|
|
# Single Brand Thumbnail (Bootstrap 5 Override)
|
|
#
|
|
# Renders a single brand image link, used by [product_brand] shortcode.
|
|
#
|
|
# Expected context:
|
|
# term - WP_Term object for the brand
|
|
# thumbnail - URL to brand thumbnail image
|
|
# class - CSS class for the image
|
|
# width - Image width
|
|
# height - Image height
|
|
#
|
|
# WooCommerce PHP equivalent: brands/shortcodes/single-brand.php
|
|
#
|
|
# @package WcBootstrap
|
|
# @since 0.1.0
|
|
#}
|
|
|
|
<a href="{{ get_term_link(term, 'product_brand')|esc_url }}" class="d-inline-block">
|
|
<img src="{{ thumbnail|esc_url }}"
|
|
alt="{{ term.name|esc_attr }}"
|
|
class="{{ class|esc_attr }}"
|
|
style="width: {{ width|esc_attr }}; height: {{ height|esc_attr }};" />
|
|
</a>
|