custom/static-plugins/BaumarktTheme/src/Resources/views/storefront/layout/navigation/dropdown.html.twig line 1

Open in your IDE?
  1. <div class="dropdown-menu">
  2.     <h4>{{ treeItem.category.translated.name }}</h4>
  3.     <ul>
  4.         <li class="dropdown-item">
  5.             <a class="link-all"
  6.                href="{{ seoUrl('frontend.navigation.page', { navigationId: treeItem.category.id }) }}"
  7.                itemprop="url"
  8.                title="{{ treeItem.category.translated.name }}">
  9.                 {{ "header.menu.displayAll"|trans }}
  10.             </a>
  11.         </li>
  12.         {% block layout_navigation_categories_link_loop %}
  13.             {% for treeItemChild in treeItemChildren %}
  14.                 {% set internalLink = treeItemChild.category.internalLink %}
  15.                 {% set containsArticlesBaumarkt = treeItemChild.category.extensions.ianeoAttributes.containsArticlesBaumarkt %}
  16.                 {% if containsArticlesBaumarkt %}
  17.                     <li class="dropdown-item dropdown-sub">
  18.                         <a  class="dropdown-item-link {% if treeItemChild.category.childCount > 0 %} submenu-trigger{% endif %}"
  19.                             {% if treeItemChild.category.childCount > 0 %}data-category-id="{{ treeItemChild.category.id }}"{% endif %}
  20.                             title="{{ treeItemChild.category.translated.name }}"
  21.                             itemprop="url"
  22.                             href="{% if treeItemChild.category.externalLink %}{{ treeItemChild.category.externalLink }}
  23.                                 {% elseif internalLink %}{{ seoUrl('frontend.navigation.page', { navigationId: internalLink }) }}
  24.                                 {% else %}{{ seoUrl('frontend.navigation.page', { navigationId: treeItemChild.category.id }) }}{% endif %}">
  25.                             {{ treeItemChild.category.translated.name }}
  26.                             {% if treeItemChild.category.childCount > 0 %}{% sw_icon 'chevron-down_m' style {'pack' : 'globus_icons'} %}{% endif %}
  27.                         </a>
  28.                         {% if treeItemChild.category.childCount > 0 %}
  29.                             <div class="subtree-placeholder-{{ treeItemChild.category.id }}"></div>
  30.                         {% endif %}
  31.                     </li>
  32.                 {% endif %}
  33.             {% endfor %}
  34.         {% endblock %}
  35.     </ul>
  36. </div>