You've already forked wc-bootstrap
24 lines
885 B
Twig
24 lines
885 B
Twig
|
|
{#
|
||
|
|
# My Account Navigation (Bootstrap 5 Override)
|
||
|
|
#
|
||
|
|
# Renders the sidebar navigation for the My Account area
|
||
|
|
# using Bootstrap list-group component.
|
||
|
|
#
|
||
|
|
# WooCommerce PHP equivalent: myaccount/navigation.php
|
||
|
|
#
|
||
|
|
# @package WcBootstrap
|
||
|
|
# @since 0.1.0
|
||
|
|
#}
|
||
|
|
|
||
|
|
<nav class="woocommerce-MyAccount-navigation" aria-label="{{ __('Account navigation') }}">
|
||
|
|
<div class="list-group">
|
||
|
|
{% for endpoint, label in wc_get_account_menu_items() %}
|
||
|
|
<a href="{{ wc_get_account_endpoint_url(endpoint)|esc_url }}"
|
||
|
|
class="list-group-item list-group-item-action{% if wc_get_account_menu_item_classes(endpoint) matches '/is-active/' %} active{% endif %}"
|
||
|
|
{% if wc_get_account_menu_item_classes(endpoint) matches '/is-active/' %}aria-current="page"{% endif %}>
|
||
|
|
{{ label|esc_html }}
|
||
|
|
</a>
|
||
|
|
{% endfor %}
|
||
|
|
</div>
|
||
|
|
</nav>
|