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

Open in your IDE?
  1. {% if editmode %}
  2. <div class="ms-auto container-narrow">
  3.     {% embed 'includes/editmode-settings.html.twig' %}
  4.         {% block additionalSettings %}
  5.             {{ pimcore_checkbox('narrow', {
  6.                 label: 'Narrow'
  7.             }) }}
  8.         {% endblock %}
  9.     {% endembed %}
  10.     {{ include('includes/title-blocks/title-block.html.twig') }}
  11.     {% set block = pimcore_block('block', {limit: 8}) %}
  12.     {% for i in block.iterator %}
  13.         {{ pimcore_image('sliderImage', {width: 300}) }} <br>
  14.         {{ pimcore_wysiwyg('wysiwyg') }}
  15.     {% endfor %}
  16. </div>
  17. {% else %}
  18. <section class="content-block {{ pimcore_checkbox('narrow').checked ? 'container-narrow' : 'container-small' }} {{ not pimcore_input('anchorTitle').isEmpty() ? 'js-anchor-nav__item' }}"
  19.     {% if not pimcore_input('anchorTitle').isEmpty() %} data-anchor-nav-title="{{ pimcore_input('anchorTitle').getData() }}" {% endif %}
  20. >
  21.     {{ include('includes/title-blocks/title-block.html.twig') }}
  22.     <div class="row gy-2">
  23.         {% for i in pimcore_iterate_block(pimcore_block('block', {limit: 10})) %}
  24.             <div class="col-md-6">
  25.                 <article class="card-teaser__content mb-3">
  26.                     <div class="card-teaser__image">
  27.                         {{ pimcore_image('sliderImage').getThumbnail('team-teaser').getHtml({
  28.                             imgAttributes: {
  29.                                 class: 'js-lazy-img'
  30.                             },
  31.                             'lowQualityPlaceholder': true,
  32.                         })|raw }}
  33.                     </div>
  34.                     {% if not pimcore_wysiwyg('wysiwyg').isEmpty %}
  35.                         <div class="card-teaser__text">
  36.                             {{ pimcore_wysiwyg('wysiwyg').getData()|raw }}
  37.                         </div>
  38.                     {% endif %}
  39.                 </article>
  40.             </div>
  41.         {% endfor %}
  42.     </div>
  43. </section>
  44. {% endif %}