templates/themes/theme/common/menu.html.twig line 1

Open in your IDE?
  1. <ul>
  2.     <li class="hidden lg:inline-block menu-casestudy">
  3.         {% if study is defined and study %}
  4.             <a href="{{ generatePath( app.request, study.linkedPageId, {'study_slug' : study.slug } ) }}">
  5.                 <img class="mb-2 menu-featured" src="{{ imageCache('/' ~ study.fullImagePath, 'zoomCrop', 520, 320) }}" width="260" height="160" alt="{{ study.title }}" loading="lazy" />
  6.                 <h6 class="mb-2">Featured Case Study</h6>
  7.                 <img class="max-w-[75%] max-h-[70px] h-auto menu-logo" src="{{ imageCache('/' ~ study.client.getFullImagePath, 'cropResize', 760, 380) }}" loading="lazy" alt="Menu Image" />
  8.             </a>
  9.         {% endif %}
  10.     </li>
  11.     {% for item in menu %}
  12.         <li>
  13.             <a href="{{ item.slug }}" class="{{ item.slug == currentUrl ? 'active' : '' }}" {% if item.new_window %}target="_blank"{% endif %}>{{ item.navtitle }}</a>
  14.             {% if item.children is defined and item.children|length > 0 %}
  15.                 {% include "@theme/common/menu.html.twig" with { 'menu' : item.children, 'currentUrl' : currentUrl } only %}
  16.             {% endif %}
  17.             {% if item.isdynamic and item.dynamic_items|length > 0 %}
  18.                 <ul>
  19.                     {% for item in item.dynamic_items %}
  20.                         <li>
  21.                           <a href="{{ item.slug }}">{{ item.navtitle }}</a>
  22.                           {% if item.children is defined and item.children|length > 0 %}
  23.                             <ul>
  24.                               {% for child in item.children %}
  25.                                 <li>
  26.                                   <a href="{{ child.slug }}">{{ child.navtitle }}</a>
  27.                                 </li>
  28.                               {% endfor %}
  29.                             </ul>
  30.                           {% endif %}
  31.                         </li>
  32.                     {% endfor %}
  33.                 </ul>
  34.             {% endif %}
  35.         </li>
  36.     {% endfor %}
  37. </ul>