themes/webapicTheme/templates/partials/block-list-article-guide.html.twig line 1

Open in your IDE?
  1. {% if articles|length > 0 %}
  2.     <div class="categorie-looks">   
  3.         <div class="categorie-looks-ctn">
  4.             <h2>
  5.                 {# {{ title }} #}
  6.                 {% if app.request.locale == 'en_US' and titleen is not empty %}
  7.                     {{ titleen }}
  8.                 {% else %}
  9.                     {{ title }}
  10.                 {% endif %}
  11.             </h2>
  12.             <div class="carouseel">
  13.                 {% for article in articles %}
  14.                 <div class="look">
  15.                     {% if article.imagesByType('image_article_main')|length > 0 %}
  16.                                         <a href="{{ path('app_leguide_article', {'slugCategory': article.articleCategory.slug, 'slug': article.slug, 'articleId': article.id}) }}">
  17.                         <img class="ui image" src="{{ article.imagesByType('image_article_main').first.path|imagine_filter('app_carrousel_looks') }}" />
  18.                                         </a>
  19.                     {% endif %}
  20.                     <a href="{{ path('app_leguide_article', {'slugCategory': article.articleCategory.slug, 'slug': article.slug, 'articleId': article.id}) }}" class="top look-article-title">
  21.                         <h3 class="categorie-looks-description">
  22.                             {% if article.titleVignette is not empty %}
  23.                                 {{ article.titleVignette }}
  24.                             {% else %}
  25.                                  {{ article.title }}
  26.                             {% endif %}
  27.                         </h3>
  28.                     </a>
  29.                 </div>
  30.                 {% endfor %}
  31.             </div>  
  32.         </div> 
  33.     </div>
  34. {% endif %}