Skip to content

Commit

Permalink
Update header-drawer.liquid B2B nav
Browse files Browse the repository at this point in the history
  • Loading branch information
cm-sl authored Sep 13, 2023
1 parent 85e6c56 commit 3fd1642
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions snippets/header-drawer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,23 @@
<div class="menu-drawer__navigation-container">
<nav class="menu-drawer__navigation">
<ul class="menu-drawer__menu has-submenu list-menu" role="list">
{% assign showB2BNav = false %}
{%- if showB2BNav == true -%}
{% assign showB2BNav = false %}

Check warning on line 24 in snippets/header-drawer.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/header-drawer.liquid#L24

[LiquidTag] Use {% liquid ... %} to write multiple tags

{%- if showB2BNav == true -%}

{%- if customer.metafields.sparklayer.authentication -%}
{% assign menu = linklists.b2b-menu %}
{%- else -%}
{% assign menu = linklists[section.settings.menu] %}

{%- endif -%}
{%- if customer.metafields.sparklayer.authentication -%}
{% assign menu = linklists.b2b-menu | default: linklists[section.settings.menu] %}
{%- else -%}
{% assign menu = linklists[section.settings.menu] %}
{%- endif -%}

{%- else -%}
{%- else -%}

{% assign menu = linklists[section.settings.menu] %}

{% assign menu = linklists[section.settings.menu] %}
{%- endif -%}
{%- endif -%}

{%- for link in menu.links -%}
{%- for link in menu.links -%}
<li>
{%- if link.links != blank -%}
<details id="Details-menu-drawer-menu-item-{{ forloop.index }}">
Expand Down

0 comments on commit 3fd1642

Please sign in to comment.