src/Modules/CfgMenus/Hooks/Menus/includes/items.include.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     {% for itemId,item in items %}
  3.         {% if itemId != 3 %}
  4.             {% if item.childs is defined %}
  5.                 <div class="col-xl-4 col-sm-6 navbar_item_parent" data-id="{{ itemId }}">
  6.                     <a class="navbar_item navbar_item_parent_item" href="{{ item.path }}" id="{{ itemId }}" {% if item.isTarget==true %}target="_blank"{% endif %} {% if item.color is not null %}style="color:{{ item.color }};"{% endif %}>
  7.                         {{ item.name }}
  8.                     </a>
  9.                     <div class="navbar_item_parent_childs">
  10.                         {% for ssItemId,ssitem in item.childs %}
  11.                             <a class="navbar_item navbar_item_parent_childs_child" href="{{ ssitem.path }}" {% if item.isTarget==true %}target="_blank"{% endif %}>{{ ssitem.name }}</a>
  12.                         {% endfor %}
  13.                     </div>
  14.                     {% if itemId == 2 and items[3] is defined %}
  15.                         {% set item=items[3] %}
  16.                         <a class="navbar_item navbar_item_parent_item" href="{{ item.path }}" id="{{ itemId }}" {% if item.isTarget==true %}target="_blank"{% endif %} {% if item.color is not null %}style="color:{{ item.color }};"{% endif %}>
  17.                             {{ item.name }}
  18.                         </a>
  19.                         <div class="navbar_item_parent_childs">
  20.                             {% for ssItemId,ssitem in item.childs %}
  21.                                 <a class="navbar_item navbar_item_parent_childs_child" href="{{ ssitem.path }}" {% if item.isTarget==true %}target="_blank"{% endif %}>{{ ssitem.name }}</a>
  22.                             {% endfor %}
  23.                         </div>
  24.                     {% endif %}
  25.                 </div>
  26.             {% elseif item.name is defined %}
  27.                 <a class="navbar_item" aria-current="page" href="{{ item.path }}" {% if item.isTarget is defined and item.isTarget==true %}target="_blank"{% endif %}>{{ item.name }}</a>
  28.             {% endif %}
  29.         {% endif %}
  30.     {% endfor %}
  31. </div>