templates/Convention/Includes/incentives-list.html.twig line 1

Open in your IDE?
  1. <section>
  2.     <div class="justify-content-md-center row vertical-gutter--default">
  3.         {% for item in items %}
  4.             <div class="col-md-3 vertical-gutter__item">
  5.                 {% set wysiwyg = '<ul>' %}
  6.                 {% for bulletpoint in item.teaserBullets %}
  7.                     {% set wysiwyg = wysiwyg ~ '<li>'  ~ bulletpoint.item.data ~ '</li>' %}
  8.                 {% endfor %}
  9.                 {% set wysiwyg = wysiwyg ~ '</ul>' %}
  10.                 {% set inSession = item.id in app.session.get('wishlistIds') %}
  11.                 {{ include('Includes/Teaser/flatrate-teaser.html.twig', {
  12.                     isSmallTeaser: true,
  13.                     location: item.city,
  14.                     wysiwyg: wysiwyg,
  15.                     link: linkGenerator().generate(item),
  16.                     linktext: 'incentives.Mehr Erfahren'|trans,
  17.                     title: item.name,
  18.                     isBadgeWhite: true,
  19.                     hasWishlist: false,
  20.                     wishlistActive: inSession,
  21.                     image: item.teaserimage,
  22.                     id: item.id,
  23.                     trackingAction: 'ConventionIncentive'
  24.                 }) }}
  25.             </div>
  26.         {% endfor %}
  27.     </div>
  28. </section>