{# # Product Tabs (Bootstrap 5 Override) # # Renders product tabs (Description, Additional Info, Reviews) using # Bootstrap 5 nav-tabs and tab-content with fade transitions. # # Expected context: # product_tabs - Associative array of tabs, each with: # key.title - Tab title # key.callback - Tab content callback name # key.priority - Sort order # # WooCommerce PHP equivalent: single-product/tabs/tabs.php # # @package WcBootstrap # @since 0.1.0 #} {% if product_tabs is defined and product_tabs|length > 0 %}
{# Tab navigation #} {# Tab content panels #}
{% for key, tab in product_tabs %}
{% if tab.callback is defined %} {{ call_user_func(tab.callback, key, tab) }} {% endif %}
{% endfor %}
{{ do_action('woocommerce_product_after_tabs') }}
{% endif %}