templates/includes/areas/product-teaser-content-area.html.twig line 1

Open in your IDE?
  1. {% if not products is empty %}
  2.     <section class="content-block">
  3.         <div class="container-narrow">
  4.             {{ include('includes/title-blocks/title-block.html.twig', {
  5.                 title: title|default(''),
  6.                 subtitle: subtitle|default(''),
  7.                 titleTag: titleTag|default('h2'),
  8.                 titleStyle: titleStyle|default(''),
  9.                 subtitleTag: subtitleTag|default('h3'),
  10.                 subtitleStyle: subtitleStyle|default(''),
  11.             }) }}
  12.             {% if content|default('') %}
  13.                 <div class="wysiwyg">
  14.                     {{ content | raw }}
  15.                 </div>
  16.             {% endif %}
  17.             <div{{ content|default('') ? ' class="mt-4 mt-md-5"' : '' }}>
  18.                 {% for product in products %}
  19.                     {{ include('includes/teaser/content-teaser.html.twig', getVirtualProductTeaserData(product)|merge({
  20.                         icon:'arrow',
  21.                         styleModifier:'content-teaser--link',
  22.                     })) }}
  23.                 {% endfor %}
  24.             </div>
  25.             {% if contentBelow|default('') %}
  26.                 <div class="mt-4 mt-md-5">
  27.                     {{ contentBelow | raw }}
  28.                 </div>
  29.             {% endif %}
  30.         </div>
  31.     </section>
  32. {% endif %}