templates/includes/blog/article.html.twig line 1

Open in your IDE?
  1. {% if articles is defined  %}
  2.     {% for article in articles %}
  3.         <div class="col-12 col-sm-6 col-md-4 mb-3 {{ app_blog_filters(article.getEditable('blogFilters')) }} pe-5 pb-5 mb-5">
  4.             <a href="{{ article.getFullPath() }}">
  5.                     <div class="blog">
  6.                         {% if not article.getEditable('publicationHeader').isEmpty() %}
  7.                             <img class="img-fluid mb-3 d-inline-bloc" src="{% if article.getEditable('publicationHeader') %} {{ article.getEditable('publicationHeader').getThumbnail('news-homepage-thumb') }} {% else %} {{ app_placeholderImage().getThumbnail('news-homepage-thumb') }} {% endif %} ">
  8.                         {% endif %}
  9.                         <h5 class="text-uppercase text-black">
  10.                             {{ article.getEditable('articleTitle') }}
  11.                         </h5>
  12.                         {% if not article.getEditable('publicationDate').isEmpty() %}
  13.                             <div class="blog-date text-black">
  14.                                 {{ article.getEditable('publicationDate').getData()|format_date('none', 'd MMM Y', null, 'gregorian', app.request.locale) }}
  15.                             </div>
  16.                         {% endif %}
  17.                         {% if article.getEditable('articleContent') is defined %}
  18.                             <p class="text-black text-opacity-50"></p>
  19.                             {{ article.getEditable('articleContent')|truncate(230, '...')|raw }}
  20.                     {% endif %}
  21.                     <div class="position-absolute pos-b-0 mt-1">
  22.                         <a class="text-link" href="{{ article.getFullPath() }}">
  23.                             <span class="mr-2">
  24.                                 {{ 'lees meer'|trans }}
  25.                             </span>
  26.                         </a>
  27.                     </div>
  28.                 </div>
  29.             </a>
  30.         </div>
  31.     {% endfor %}
  32. {% endif %}