|
<ul class="site-nav" id="accessibleNav"> |
|
{% unless linklists.main-menu.links.first.url == '/' %} |
|
<li class="large--hide"><a href="/">Home</a></li> |
|
{% endunless %} |
|
{% for link in linklists.main-menu.links %} |
|
{% assign child_list_handle = link.title | handleize %} |
|
{% if linklists[child_list_handle].links != blank %} |
|
<li class="site-nav--has-dropdown{% if link.active %} site-nav--active{% endif %}" aria-haspopup="true"> |
|
<a href="{{ link.url }}"> |
|
{{ link.title }} |
|
<span class="icon-fallback-text"> |
|
<span class="icon icon-arrow-down" aria-hidden="true"></span> |
|
</span> |
|
</a> |
|
<ul class="site-nav--dropdown"> |
|
{% for child_link in linklists[child_list_handle].links %} |
|
{% assign grand_child_list_handle = child_link.title | handle %} |
|
{% if linklists[grand_child_list_handle] and linklists[grand_child_list_handle].links.size > 0 %} |
|
<li class="{% if childlink.active %}site-nav--active{% endif %} grand"> |
|
<a href="{{ child_link.url }}"> |
|
{{ child_link.title }} |
|
<span class="icon-fallback-text"> |
|
<span class="icon icon-arrow-down" aria-hidden="true"></span> |
|
</span> |
|
</a> |
|
<ul class="site-nav--dropdown--sub"> |
|
{% for grand_child_link in linklists[grand_child_list_handle].links %} |
|
<li> |
|
{{ grand_child_link.title | link_to: grand_child_link.url }} |
|
</li> |
|
{% endfor %} |
|
</ul> |
|
</li> |
|
{% else %} |
|
<li> |
|
{{ child_link.title | link_to: child_link.url }} |
|
</li> |
|
{% endif %} |
|
{% endfor %} |
|
</ul> |
|
</li> |
|
{% else %} |
|
<li {% if link.active %}class="site-nav--active"{% endif %}> |
|
<a href="{{ link.url }}">{{ link.title }}</a> |
|
</li> |
|
{% endif %} |
|
{% endfor %} |
|
|
|
{% if shop.customer_accounts_enabled %} |
|
{% if customer %} |
|
<li class="customer-navlink large--hide"><a href="/account">View Account</a></li> |
|
<li class="customer-navlink large--hide">{{ 'Log out' | customer_logout_link }}</li> |
|
{% else %} |
|
<li class="customer-navlink large--hide">{{ 'Sign in' | customer_login_link }}</li> |
|
{% if shop.customer_accounts_optional %} |
|
<li class="customer-navlink large--hide">{{ 'Create an Account' | customer_register_link }}</li> |
|
{% endif %} |
|
{% endif %} |
|
{% endif %} |
|
</ul> |