templates/widget/last-publication/default.html.twig line 1

Open in your IDE?
  1. <section class="articles-list">
  2.     <div class="container">
  3.         <div class="articles-list__content">
  4.             <div class="articles-list__heading section-heading">
  5.                 <div class="container">
  6.                     <h3 class="h3 section-title">Блог</h3>
  7.                 </div>
  8.             </div>
  9.             <div class="articles-list__items">
  10.                 {% for item in items %}
  11.                     {% if item.link is defined and item.link %}
  12.                         {% set item_url = item.link %}
  13.                     {% else  %}
  14.                         {% set item_url = path('mldev-front-publication-show', { 'uri': category.page.uri[1:], 'alias': item.alias, 'id': item.id }) %}
  15.                     {% endif %}
  16.                     <div class="article-item">
  17.                         <div class="article-item__header">
  18.                             {% if item.image %}
  19.                                 <a class="article-item__img" href="{{ item_url }}">
  20.                                     <img src="{{ item.image }}" alt="{{ item.name }}">
  21.                                 </a>
  22.                             {% endif %}
  23.                         </div>
  24.                         <div class="article-item__body">
  25.                             <a class="article-item__title" href="{{ item_url }}"> {{ item.name }} </a>
  26.                         </div>
  27.                         {# <div class="article-item__footer">
  28.                             <div class="article-item__footer-item"> {{ item.author }} </div>
  29.                         </div> #}
  30.                     </div>
  31.                 {% endfor %}
  32.             </div>
  33.         </div>
  34.     </div>
  35. </section>