custom/plugins/GrimmTheme/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 %}
  3.     <div class="container top-bar d-none d-lg-block">
  4.         <nav class="row no-gutters top-bar-nav align-items-center">   
  5.             <div id="top-bar-nav__item1" class="custom-control custom-switch">
  6.                 <label for="customSwitch1" class="top-bar-nav__label control-label label-b2b">{{ "header.accountType.business"|trans|sw_sanitize }}</label>
  7.                 <input type="checkbox" class="custom-control-input" id="customSwitch1" data-switch-tax {% if context.taxState is same as('gross') %}checked="checked"{% endif %}>
  8.                 <label for="customSwitch1" class="custom-control-label label-b2c">{{ "header.accountType.private"|trans|sw_sanitize }}</label>
  9.             </div> 
  10.             <a class="d-flex align-items-center support-link" id="top-bar-nav__item2"
  11.                 href="tel:{{ 'support.linkNr'|trans|sw_sanitize }}">
  12.                 {% sw_icon 'telefon' style {'pack': 'grimmtheme', 'namespace': 'GrimmTheme', 'size': 'xs'} %}
  13.                 {{ "header.support"|trans|sw_sanitize }}
  14.             </a>
  15.            
  16.             {% set topBarNavigation = page.getExtension('grimmTopbar') %}
  17.             {% if topBarNavigation and topBarNavigation.tree|length > 0 %}
  18.                 <ul id="top-bar-nav__item3" class="top-bar-nav-list col d-flex">
  19.                     {% for topBarItem in topBarNavigation.tree %}
  20.                         {% set category = topBarItem.category %}
  21.                         {% if category.active %}
  22.                             <li {% if loop.last is not same as(true) %} class="top-bar-nav-list__item" {% endif %}>
  23.                                 <a href="{{ category_url(category) }}" {% if category_linknewtab(category) %} target="_blank"{% endif %}
  24.                                 title="{{ category.translated.name }}">{{ category.translated.name }}
  25.                                 </a>
  26.                             </li>
  27.                         {% endif %}
  28.                     {% endfor %}
  29.                 </ul>
  30.             {% endif %}
  31.         </nav>
  32.     </div>
  33. {% endblock %}