templates/bundles/MLDevPublicationBundle/widgets/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__items">
  5.                 {% for item in items %}
  6.                     {% if item.link is defined and item.link %}
  7.                         {% set item_url = item.link %}
  8.                     {% else  %}
  9.                         {% set item_url = path('mldev-front-publication-show', { 'uri': item.category.page.uri[1:], 'alias': item.alias, 'id': item.id }) %}
  10.                     {% endif %}
  11.                     <div class="article-item">
  12.                         <div class="article-item__header">
  13.                             {% if item.image %}
  14.                                 <a class="article-item__img" href="{{ item_url }}">
  15.                                     <img src="{{ item.image }}" alt="{{ item.name }}">
  16.                                 </a>
  17.                             {% endif %}
  18.                         </div>
  19.                         <div class="article-item__body">
  20.                             <a class="article-item__title" href="{{ item_url }}"> {{ item.name }} </a>
  21.                         </div>
  22.                         {# <div class="article-item__footer">
  23.                             {% if item.author %}
  24.                                 <div class="article-item__footer-item"> {{ item.author }} </div>
  25.                             {% endif %}
  26.                         </div> #}
  27.                     </div>
  28.                 {% endfor %}
  29.             </div>
  30.         </div>
  31.     </div>
  32. </section>