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/publications.html.twig line 107

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2.     {% block title %}
  3.         {% set metaTitle = 'SANRAL eSDD - Publications' %}
  4.         {{ metaTitle }}
  5.     {% endblock %}
  6.     {% block meta_decription %}
  7.         {% set metaTitle = 'SANRAL eSDD - Publications' %}
  8.         {% set metaDescription = "Enjoy going through some of of SANRAL SMME's publications" %}
  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">Publications</h1>
  31.                         </div>
  32.                         <div class="col-12 no-gutters-left">
  33.                             <!-- Desktop -->
  34.                             <div class="table-responsive-md  d-none d-md-block">
  35.                                 <table class="table table-striped">
  36.                                     <thead class="rain-forest">
  37.                                     <tr class="text-white text-uppercase font-weight-light">
  38.                                         <th style="text-align: left;" scope="col"><strong>Publication</strong></th>
  39.                                         <th scope="col"><strong>Date of Publication</strong></th>
  40.                                         <th scope="col"><strong>Description of Publication</strong></th>
  41.                                         <th></th>
  42.                                     </tr>
  43.                                     </thead>
  44.                                     <tbody>
  45.                                         {% for publication in publications %}
  46.                                             <tr>
  47.                                                 <th style="text-align: left;" scope="row">
  48.                                                     <strong>{{ publication.title }}</strong>
  49.                                                 </th>
  50.                                                 <td>
  51.                                                     {{ publication.datePublished|date('Y-m-d') }}
  52.                                                 </td>
  53.                                                 <td>
  54.                                                     {{ publication.description|raw }}
  55.                                                 </td>
  56.                                                 <td>
  57.                                                     {% if publication.file|length %}
  58.                                                         <a href="{{ path('publication_download_page', {'publication_id': publication.id}) }}" class="fas fa-download" style="font-size: 24px"></a>
  59.                                                     {% endif %}
  60.                                                 </td>
  61.                                             </tr>
  62.                                         {% endfor %}
  63.                                     </tbody>
  64.                                 </table>
  65.                             </div>
  66.                             <!-- Mobile -->
  67.                             <div class="d-block d-md-none">
  68.                                 {% for publication in publications %}
  69.                                     <div class="row rain-forest">
  70.                                         <div class="col-12 font-weight-bold text-white" style="padding: 15px">
  71.                                             {{ publication.title }}
  72.                                         </div>
  73.                                     </div>
  74.                                     <div class="row" style="background-color:#f0f0f0">
  75.                                         <div class="col-12" style="padding: 15px">
  76.                                             <b>Date:</b> {{ publication.datePublished|date('Y-m-d') }}
  77.                                         </div>
  78.                                     </div>
  79.                                     <div class="row">
  80.                                         <div class="col-12 teaser-3-lines bl br bb" style="padding: 15px; padding-bottom: 0px; margin-bottom: 15px">
  81.                                             {{ publication.description|raw }}
  82.                                         </div>
  83.                                     </div>
  84.                                     <div class="row" style="background-color:#f0f0f0; text-align: center">
  85.                                         <div class="col-12">
  86.                                             {% if publication.file|length %}
  87.                                                 <a href="{{ path('publication_download_page', {'publication_id': publication.id}) }}" style="font-size: 24px">
  88.                                                     <i class="fas fa-download"></i>
  89.                                                     &nbsp;<span style="font-size: 18px; line-height: 24px">Download</span>
  90.                                                 </a>
  91.                                             {% endif %}
  92.                                         </div>
  93.                                     </div>
  94.                                 {% endfor %}
  95.                             </div>
  96.                         </div>
  97.                     </div>
  98.                 </div>
  99.                 <div class="col-md-3" style="margin-top: 73px">
  100.                     {{ render(controller(
  101.                         'App\\Controller\\CarouselController::getCarousel',
  102.                         {
  103.                             'page': 'publications'
  104.                         }
  105.                     )) }}
  106.                 </div>
  107.             </div>
  108.         </div>
  109.     {% endblock %}