templates/frontend/event/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout_frontend.html.twig' %}
  2. {% block title %}{{ parent() }} Events{% endblock %}
  3. {% block content %}
  4.     <!--Main Slider Start-->
  5.     <div class="inner-banner-header wf100">
  6.         <h1>Events</h1>
  7.     </div>
  8.     <!--Main Slider Start--> 
  9.     <!--Main Content Start-->
  10.     <div class="main-content innerpagebg wf100 p80">
  11.         <!--News Large Page Start--> 
  12.         <!--Start-->
  13.         <div class="news-grid">
  14.             <div class="container">
  15.                 <div class="row">
  16.                     {% for event in events %}
  17.                         <!--Box Start-->
  18.                         <div class="col-lg-6">
  19.                             <div class="ng-box">
  20.                                 <div class="thumb">
  21.                                     <a href="{{ path('event', {'slug': event.slug}) }}">
  22.                                         <i class="fas fa-link"></i>
  23.                                     </a>
  24.                                     {% if event.picture %}
  25.                                         <img src="{{ asset('upload/' ~ event.picture) }}" alt="">
  26.                                     {% endif %}
  27.                                 </div>
  28.                                 <div class="ng-txt">
  29.                                     <h4>
  30.                                         <a href="{{ path('event', {'slug': event.slug}) }}">{{ event.name }}</a>
  31.                                     </h4>
  32.                                     <ul class="post-meta">
  33.                                         <li><i class="fas fa-map-marker-alt"></i> {{ event.location }}</li>
  34.                                         <li><i class="fas fa-calendar-alt"></i> {{ event.startDate|date('F j, Y') }}</li>
  35.                                     </ul>
  36.                                     <p>{{ event.shortDescription }}</p>
  37.                                     <a href="{{ path('event', {'slug': event.slug}) }}" class="rm">More Details</a> 
  38.                                 </div>
  39.                             </div>
  40.                         </div>
  41.                         <!--Box End-->
  42.                     {% endfor %}
  43.                 </div>
  44.             </div>
  45.         </div>
  46.         <!--End--> 
  47.     </div>
  48.     <!--Main Content End--> 
  49. {% endblock %}