Deprecated: Return type of Google\Model::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 256

Deprecated: Return type of Google\Model::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 261

Deprecated: Return type of Google\Model::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 268

Deprecated: Return type of Google\Model::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 278

Deprecated: Return type of Google\Collection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 22

Deprecated: Return type of Google\Collection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 38

Deprecated: Return type of Google\Collection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 30

Deprecated: Return type of Google\Collection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 43

Deprecated: Return type of Google\Collection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 14

Deprecated: Return type of Google\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 49
Symfony Profiler

templates/frontend/events.html.twig line 88

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2.     {% block title %}
  3.         {% set metaTitle = 'SANRAL eSDD - Events' %}
  4.         {{ metaTitle }}
  5.     {% endblock %}
  6.     {% block meta_decription %}
  7.         {% set metaTitle = 'SANRAL eSDD - Events' %}
  8.         {% set metaDescription = "SANRAL Events that are upcoming available for SMME's" %}
  9.         <meta name="twitter:card" content="summary" />
  10.         <meta name="twitter:site" content="Sanral" />
  11.         <meta name="twitter:title" content="{{ metaTitle }}" />
  12.         <meta name="twitter:description" content="{{ metaDescription }}" />
  13. {#        <meta name="twitter:image" content="https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}" />#}
  14.         <meta name="twitter:url" content="{{ app.request.uri }}" />
  15. {#        <meta name="og:image" content="https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}" />#}
  16.         <meta name="og:title" content="{{ metaTitle }}" />
  17.         <meta name="og:description" content="{{ metaDescription }}" />
  18.         <meta name="og:url" content="{{ app.request.uri }}" />
  19.         <meta name="description" content="{{ metaDescription }}">
  20.     {% endblock %}
  21.     {% block stylesheets %}
  22.         {{ parent() }}
  23.     {% endblock %}
  24.     {% block layout %}
  25.         <div id="content-wrapper" class="container-fluid">
  26.             <div class="row no-gutters py-4">
  27.                 <div class="col-md-9 px-3">
  28.                     <div class="row">
  29.                         <div class="col-12 pb-3 no-gutters-sm">
  30.                             <h1 class="display-4">Events</h1>
  31.                         </div>
  32.                         <div class="col-12 no-gutters-sm">
  33.                             <div class="table-responsive-md d-none d-md-block">
  34.                                 <table class="table table-striped">
  35.                                     <thead class="rain-forest">
  36.                                     <tr class="text-white text-uppercase font-weight-light">
  37.                                         <th style="text-align: left;" scope="col"><strong>Event</strong></th>
  38.                                         <th scope="col"><strong>Date of Event</strong></th>
  39.                                         <th scope="col"><strong>Description of Event</strong></th>
  40.                                     </tr>
  41.                                     </thead>
  42.                                     <tbody>
  43.                                         {% for event in events %}
  44.                                             <tr>
  45.                                                 <th style="text-align: left;" scope="row">
  46.                                                     <strong>{{ event.title }}</strong>
  47.                                                 </th>
  48.                                                 <td>
  49.                                                     {{ event.eventDate|date('Y-m-d') }}
  50.                                                 </td>
  51.                                                 <td>
  52.                                                     {{ event.description|raw }}
  53.                                                 </td>
  54.                                             </tr>
  55.                                         {% endfor %}
  56.                                     </tbody>
  57.                                 </table>
  58.                             </div>
  59.                             <!-- Mobile -->
  60.                             <div class="d-block d-md-none">
  61.                                 {% for event in events %}
  62.                                     <div class="row rain-forest">
  63.                                         <div class="col-12 font-weight-bold text-white" style="padding: 15px">
  64.                                             {{ event.title }}
  65.                                         </div>
  66.                                     </div>
  67.                                     <div class="row" style="background-color:#f0f0f0">
  68.                                         <div class="col-12" style="padding: 15px">
  69.                                             <b>Date:</b> {{ event.eventDate|date('Y-m-d') }}
  70.                                         </div>
  71.                                     </div>
  72.                                     <div class="row">
  73.                                         <div class="col-12 teaser-3-lines bl br bb" style="padding: 15px; padding-bottom: 0px; margin-bottom: 15px">
  74.                                             {{ event.description|raw }}
  75.                                         </div>
  76.                                     </div>
  77.                                 {% endfor %}
  78.                             </div>
  79.                         </div>
  80.                     </div>
  81.                 </div>
  82.                 <div class="col-md-3" style="margin-top: 72px">
  83.                     {{ render(controller(
  84.                         'App\\Controller\\CarouselController::getCarousel',
  85.                         {
  86.                             'page': 'events'
  87.                         }
  88.                     )) }}
  89.                 </div>
  90.             </div>
  91.         </div>
  92.     {% endblock %}