custom/plugins/b2bsellerscore/src/Resources/views/storefront/layout/header/top-bar.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/layout/header/top-bar.html.twig" %}
  2. {% block layout_header_top_bar_language %}
  3.     {% block layout_header_top_bar_tax_state %}
  4.         {% if context.customer and not isSalesRepresentative %}
  5.             {% set currentTaxState = context.context.taxState %}
  6.             <div class="top-bar-nav-item top-bar tax-state-switch">
  7.                 {% if currentTaxState == 'gross' %}
  8.                     {% block layout_header_top_bar_tax_state_link_business %}
  9.                         <a href="{{ path('frontend.b2b_b2c_switch.index') }}"
  10.                            title="{{ 'b2bPlatform.topbar.businessclient'|trans|sw_sanitize }}"
  11.                            class="top-bar-nav-text">
  12.                             {{ 'b2bPlatform.topbar.businessclient'|trans|sw_sanitize }}
  13.                         </a>
  14.                     {% endblock %}
  15.                 {% else %}
  16.                     {% block layout_header_top_bar_tax_state_link_private %}
  17.                         <a href="{{ path('frontend.b2b_b2c_switch.index') }}"
  18.                            title="{{ 'b2bPlatform.topbar.privatclient'|trans|sw_sanitize }}"
  19.                            class="top-bar-nav-text">
  20.                             {{ 'b2bPlatform.topbar.privatclient'|trans|sw_sanitize }}
  21.                         </a>
  22.                     {% endblock %}
  23.                 {% endif %}
  24.             </div>
  25.         {% endif %}
  26.     {% endblock %}
  27.     {{ parent() }}
  28. {% endblock %}