Advertisement
Guest User

menu.twig

a guest
Mar 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.57 KB | None | 0 0
  1. <ul class="menu vertical" data-accordion-menu data-multi-open="false">
  2.                         {% for item in primary_menu.get_items %}
  3.                             <li class="{{ item.class }}">
  4.                                 <a href="{{ item.link }}">{{ item.title }}</a>
  5.                                 {% if item.get_children %}
  6.                                     <ul class="menu vertical nested">
  7.                                         {% for child in item.get_children %}
  8.                                             <li class="{{ child.class }}">
  9.                                                 <a href="{{ child.link }}">{{ child.title }}</a>
  10.                                                 {% if child.get_children %}
  11.                                                     <ul class="menu vertical nested">
  12.                                                         {% for grandchild in child.get_children %}
  13.                                                             <li class="{{ grandchild.class }}">
  14.                                                                 <a href="{{ grandchild.link }}">{{ grandchild.title }}</a>
  15.                                                                 {% if grandchild.get_children %}
  16.                                                                     <ul class="menu vertical nested">
  17.                                                                         {% for g_grandchild in grandchild.get_children %}
  18.                                                                             <li class="{{ g_grandchild.class }}">
  19.                                                                                 <a href="{{ g_grandchild.link }}">{{ g_grandchild.title }}</a>
  20.                                                                                 {% if g_grandchild.get_children %}
  21.                                                                                     <ul class="menu vertical nested">
  22.                                                                                         {% for gg_grandchild in g_grandchild.get_children %}
  23.                                                                                             <li class="{{ gg_grandchild.class }}">
  24.                                                                                                 <a href="{{ gg_grandchild.link }}">{{ gg_grandchild.title }}</a>
  25.                                                                                             </li>
  26.                                                                                         {% endfor %}
  27.                                                                                     </ul>
  28.                                                                                 {% endif %}
  29.                                                                             </li>
  30.                                                                         {% endfor %}
  31.                                                                     </ul>
  32.                                                                 {% endif %}
  33.                                                             </li>
  34.                                                         {% endfor %}
  35.                                                     </ul>
  36.                                                 {% endif %}
  37.                                             </li>
  38.                                         {% endfor %}
  39.                                     </ul>
  40.                                 {% endif %}
  41.                             </li>
  42.                         {% endfor %}
  43.                     </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement