templates/bundles/OdiseoSyliusBlogPlugin/Shop/Article/_home.html.twig line 1

Open in your IDE?
  1. {% if articles|length > 0 %}
  2.     {% for article in articles %}
  3.         <div class="news-latest__item">
  4.             <div class="news-latest__image">
  5.                 {% if article.images|length > 0 %}
  6.                     <img src="{{ article.images[0].path|imagine_filter(filter|default('sylius_large')) }}" alt="{{ article.images[0].path }}">
  7.                 {% endif %}
  8.                 {% if article.categories|length > 0 %}
  9.                     <div class="news-latest__category">{{ article.categories[0].title }}</div>
  10.                 {% endif %}
  11.             </div>
  12.             <div class="news-latest__content">
  13.                 <div class="news-latest__date">{{ article.createdAt|date }}</div>
  14.                 <div class="news-latest__title">{{ article.title }}</div>
  15.                 <div class="news-latest__text">{{ article.metaDescription }}</div>
  16.                 <a href="{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}" class="button button--outline-red button--medium">{{ 'sylius.home.details'|trans }}</a>
  17.             </div>
  18.         </div>
  19.     {% endfor %}
  20. {% endif %}