templates/front/postsList.html.twig line 1

Open in your IDE?
  1. <div class="posts row ">
  2.     {% for key, post in posts %}
  3.         <div class="post {{ (col is defined) ? "col-sm-6 col-12 col-md-12 " : "col-md-4 col-sm-6" }}  mab-50" data-link>
  4.             <div class="bgp-center bgs-cover animate-background w-100 he-220 d-flex align-items-end justify-content-end mab-16"
  5.                  style="background-image:url({{ asset(vich_uploader_asset(post, 'postFile')) | imagine_filter('medium') }})">
  6.                 {% if post.postCategory %}
  7.                     <div class="pay-6 pax-10 yjknur"
  8.                          style="background-color: {{ post.postCategory.color|default("#3992B0") }}">
  9.                         {{ post.postCategory.title }}
  10.                     </div>
  11.                 {% endif %}
  12.             </div>
  13.             <div class="sbbeqb">
  14.                 <i class="fa fa-calendar mar-5"></i>
  15.                 {{ "posts_list.date"|trans({"%date%":getFormattedDate(post.date, false)})|raw }}
  16.             </div>
  17.             <h3 class="hdveuv title1 mat-12">
  18.                 <a href="{{ path('front_post', {'slug':post.slug}) }}">
  19.                     {{ post.title }}
  20.                 </a>
  21.             </h3>
  22.             <div class="overflow-hidden he-60 position-relative mat-15">
  23.                 <div>
  24.                     {{ post.introRaw }}
  25.                 </div>
  26.                 <div class="position-absolute hep-100 b-0 w-100"
  27.                      style="background: rgb(255,255,255);background: linear-gradient(0deg, rgba(255,255,255,1) 20%, rgba(255,255,255,0) 100%);"></div>
  28.             </div>
  29.         </div>
  30.     {% endfor %}
  31. </div>
  32. {% if landing is not defined %}
  33.     <div class="text-center mat-0 mab-30  {% if not ( posts.getTotalItemCount > 12) %} d-none {% endif %}">
  34.         <div class='triggerPost btn btn2'>
  35.             {{ "posts_list.see_more.btn"|trans|raw }}
  36.         </div>
  37.     </div>
  38.     {{ knp_pagination_render(posts) }}
  39. {% endif %}