templates/Frontend/Events/list_events.html.twig line 1

Open in your IDE?
  1. {% extends 'Frontend/base.html.twig' %}
  2. {% block seoheader %}
  3.     {% include 'Frontend/Render/head/_seopage.html.twig' with {'page_selected':page_selected} %}
  4. {% endblock %}
  5. {#% block switcher %}
  6.     {% include 'Frontend/Render/_switcher.html.twig'%}
  7. {% endblock switcher %#}
  8. {% block body %}
  9.     <div class="content_pages {{page_selected.slug}}">
  10.         
  11.         {% include 'Frontend/Render/_menu_pages.html.twig' with {'page_selected':page_selected} %}
  12.         {% if list_events is not empty %}
  13.             <div class="events_home">
  14.                 <div class="container">
  15.                     <div class="row">
  16.                         {% for event in list_events %}
  17.                             <div class="col-lg-6 col-md-6">
  18.                                 <div class="item_events_home">
  19.                                     <a href="{{ path('event_selected',{'slug':event.slug}) }}" class="img_item_events_home">
  20.                                         <img class="img-fluid" src="{{ asset (vich_uploader_asset(event,'imageFile')) }}" alt="{{event}}">
  21.                                     </a>
  22.                                     <div class="text_item_events_home">
  23.                                         <label>
  24.                                             {% if event.datePublier is not empty and event.dateFinal is not empty %}
  25.                                                 {{event.datePublier|date('d')}} - {{event.dateFormat(selected_lang)}}
  26.                                             {% endif %}
  27.                                         </label>
  28.                                         <h3><a href="{{ path('event_selected',{'slug':event.slug}) }}">{{event}}</a></h3>
  29.                                         <span><img class="img-fluid" src="/assets/img/location.png" alt="">{{event.location}}</span>
  30.                                     </div>
  31.                                 </div>
  32.                             </div>
  33.                         {% endfor %}
  34.                         
  35.                     </div>
  36.                     
  37.                     {% include 'Frontend/Render/_pagination.html.twig' %}
  38.                 </div>
  39.             </div>
  40.         {% else %}
  41.             <div class="container">
  42.                 <p>nothing</p>
  43.             </div>
  44.         {% endif %}
  45.     </div>
  46. {% endblock body %}