templates/pages/internes/articles/partials/__card_random.html.twig line 1

Open in your IDE?
  1. {% for article in articles %}
  2.     <div class="col-lg-4 col-md-6">
  3.         <a style="margin-bottom: 20px!important;" href="{{ path('articles.show', {'id': article.id, 'slug':  article.slug}) }}" class="best-selling-tour__item">
  4.             <div class="best-selling-tour__item__thumb">
  5.                 {% if article.filename %}
  6.                     <img src="{{ vich_uploader_asset(article, 'imageFile') | imagine_filter('thumbnail_card') }}" alt="{{ article.name }}">
  7.                 {% else %}
  8.                     <img src="{{ asset('assetics/internes/images/empty.jpg') }}" alt="{{ article.name }}">
  9.                 {% endif %}
  10.                 <div class="best-selling-tour__item__info">
  11.                     <div class="best-selling-tour__item__tittle">
  12.                         <p style="font-weight: bold;color: #fff!important;font-size: 18px!important; text-shadow: 0 0 3px #000;">{{ article.categories.name }}</p>
  13.                     </div>
  14.                 </div>
  15.             </div>
  16.         </a>
  17.         <h3 class="trending-tour-item__name" style="font-size: 12px!important;">
  18.             <a style="color: #034b9d!important;text-decoration: underline!important;" href="{{ path('articles.show', {'id': article.id, 'slug':  article.slug}) }}">{{ article.name|u.truncate(33, '...') }}</a>
  19.         </h3>
  20.     </div>
  21. {% endfor %}