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

Open in your IDE?
  1. {% if resources|length > 0 %}
  2.     <div class="latest-items-art">
  3.         {% for article in resources %}
  4.             <div class="item">
  5.                 <div class="content">
  6.                     <a class="header" href="{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}">
  7.                         {% if article.images|length > 0 %}
  8.                             <div class="image">
  9.                                 <img src="{{ article.images[0].path|imagine_filter(filter|default('sylius_small')) }}" alt="{{ article.images[0].path }}">
  10.                             </div>
  11.                         {% endif %}
  12.                     </a>
  13.                     <div class="description">
  14.                         <h3>
  15.                             <a href="{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}" data-disqus-identifier="{{ url('odiseo_sylius_blog_plugin_shop_article_show', {'slug' : article.slug}) }}">
  16.                                 {{ article.translations['fr_FR'].title }}
  17.                             </a>
  18.                         </h3>
  19.                     </div>
  20.                 </div>
  21.             </div>
  22.         {% endfor %}
  23.     </div>
  24.     <style>
  25.         /*.latest-items .item .content{*/
  26.         /*    display: inline-flex;*/
  27.         /*    gap: 1rem;*/
  28.         /*    align-items: center;*/
  29.         /*    justify-content: start;*/
  30.         /*}*/
  31.         /*.description a {*/
  32.         /*    color: black;*/
  33.         /*}*/
  34.         /*.latest-items{*/
  35.         /*    display: flex;*/
  36.         /*    flex-direction: column;*/
  37.         /*    gap: 1rem;*/
  38.         /*}*/
  39.     </style>
  40. {% endif %}