templates/shared/frontend/countdown.html.twig line 1

Open in your IDE?
  1. <!-- Match Counter Start -->
  2. {% set latestEvent = event_service.getLatestEvent %}
  3. {% if latestEvent %}
  4.     <div class="h3-match-counter">
  5.         <button class="hide"><i class="fas fa-times"></i></button>
  6.         <div class="container">
  7.             <div class="row">
  8.                 <ul>
  9.                     <li class="col-md-4">
  10.                         <p class="mdate-time"> {{ latestEvent.startDate|date('F jS, Y') }} <strong>{{ latestEvent.startDate|date('h:i A') }}</strong> </p>
  11.                     </li>
  12.                     <li class="col-md-4">
  13.                         <div class="defaultCountdown" data-latest-event-date="{{ latestEvent.startDate|date('c') }}"></div>
  14.                     </li>
  15.                     <li class="col-md-4">
  16.                         <p class="match-loc">
  17.                             <a href="{{ path('event', {'slug': latestEvent.slug}) }}"><i class="fas fa-location-arrow"></i> {{ latestEvent.location }}</a>
  18.                         </p>
  19.                     </li>
  20.                 </ul>
  21.             </div>
  22.         </div>
  23.     </div>
  24. {% endif %}
  25. <!-- Match Counter End -->