templates/areas/teaser-content/view.html.twig line 1

Open in your IDE?
  1. <section class="card-teaser-area container content-block {{ not pimcore_input('anchorTitle').isEmpty() ? 'js-anchor-nav__item' }}"
  2.     {% if not pimcore_input('anchorTitle').isEmpty() %} data-anchor-nav-title="{{ pimcore_input('anchorTitle').getData() }}" {% endif %}
  3. >
  4.     {% if editmode %}
  5.         <div class="ms-auto">
  6.             {% embed 'includes/editmode-settings.html.twig' %}
  7.                 {% block additionalSettings %}
  8.                     {{ pimcore_relations('snippets', {
  9.                         title: 'Use Teaser-Content Snippets',
  10.                         types: ['document'],
  11.                         subtypes: {
  12.                             'document': ['snippet'],
  13.                         },
  14.                     }) }}
  15.                 {% endblock %}
  16.             {% endembed %}
  17.         </div>
  18.     {% endif %}
  19.     {{ include('includes/title-blocks/title-block.html.twig', {titleStyle: 'h1', className: 'pb-md-5 pb-0'}) }}
  20.     {% for row in pimcore_relations('snippets')|batch(3, '') %}
  21.         <div class="row gy-4">
  22.             {% for snippet in row %}
  23.                 <div class="col-md-4">
  24.                     {{ pimcore_inc(snippet) }}
  25.                 </div>
  26.             {% endfor %}
  27.         </div>
  28.     {% endfor %}
  29. </section>