templates/includes/blocks/menu.html.twig line 1

Open in your IDE?
  1. {% set menuType = content.menuType %}
  2. {% set menuLimit = content.menuNb %}
  3. <div class="pt-4 pt-lg-5 pb-3 block-menu content-paragraphe wow fadeIn" data-wow-duration="0.8s" data-wow-delay="0.2s">
  4.     <div class="max-container-2 font-16 text-grey mt-2 mx-auto text-center px-lg-5" > 
  5.         <h3>{{ content.menuTitre|raw }}</h3>
  6.         
  7.         <div class="row">
  8.             {% set iItem = 0 %}
  9.             {% for item in sulu_navigation_root_flat(menuType, 1, true) %}
  10.                 {% set iItem = iItem+1 %}
  11.                 {%  if iItem <= menuLimit %} 
  12.                     {% set itemUrl = sulu_content_path(item.url) %}
  13.                     {% set contentItem = item.excerpt %}
  14.                     <div class="col-4">
  15.                         <div class="m-2 p-0 border rounded">
  16.                             <div class="">
  17.                                 <img class="w-100" src="{{ contentItem.images[0].thumbnails['sulu-260x'] }}">
  18.                             </div>
  19.                             <h5 class="p-2 text-link-color font-weight-bold"><a href="{{ itemUrl }}" title="{{ item.title }}">{{ item.title }}</a></h5>
  20.                             <div class="p-2">{{ contentItem.description|raw }}</div>
  21.                             <div class="text-left mb-2 p-2">
  22.                                 <a href="{{ itemUrl }}" class="btn-link py-2" title="Lire">LIRE ></a>
  23.                             </div>
  24.                             {# <div class="p-2 border-top text-left font-italic">{{ item.created|date("d/m/Y") }}</div> #}
  25.                         </div>
  26.                     </div>
  27.                 {% endif %}
  28.             {% endfor %}
  29.             
  30.         </div>          
  31.     </div>
  32. </div>