themes/BootstrapTheme/SyliusShopBundle/views/Taxon/_horizontalMenu.html.twig line 1

Open in your IDE?
  1. {% macro item(taxon, isChild) %}
  2.     {% import _self as macros %}
  3.     {% if taxon.children|length > 0 %}
  4.         <li class="{% if not isChild -%}navItem{% endif %}" {{ sylius_test_html_attribute('menu-item') }}>
  5.             <a class="navLink" href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}" >
  6.                 <span>  {{ taxon.name }}</span>
  7.             </a>
  8.         </li>
  9.     {% else %}
  10.         <li class="navItem">
  11.             <a href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}"
  12.                class="navLink {% if not isChild -%}nav-item{% endif %}" {{ sylius_test_html_attribute('menu-item') }}><span>{{ taxon.name }} </span>
  13.             </a>
  14.         </li>
  15.     {% endif %}
  16. {% endmacro %}
  17. {% import _self as macros %}
  18. {% if taxons|length > 0 %}
  19.     <ul class="onglets" id="mainNavbar">
  20.         {% for taxon in taxons %}
  21.             {{ macros.item(taxon) }}
  22.         {% endfor %}
  23.         {#        <li class="navItem">#}
  24.         {#            <a href="/page/demontage" }}" class="navLink" title=" {{'app.header.demontage' |trans}}"> {{'app.header.demontage' |trans}}</a>#}
  25.         {#        </li>#}
  26.         <li class="navItem visible-980">
  27.             <a href="#" class="navLink rech-link" > {{'sylius.ui.search' |trans}}</a>
  28.         </li>
  29.     </ul>
  30. {% endif %}