templates/areas/teaser-tour-row/view.html.twig line 1

Open in your IDE?
  1. <section class="slide content-block js-fade-in {{ styleModifier | default(null) }} {{ anchorNavItem | default(null) ? 'js-anchor-nav__item' : '' }}
  2.  {{ not pimcore_image('teaser_tour-backgroundimage').empty ? 'slide--has-bg' : '' }} {{ not pimcore_input('anchorTitle').empty ? 'js-anchor-nav__item' : '' }}"
  3.          {% if not pimcore_input('anchorTitle').empty %}data-anchor-nav-title="{{ pimcore_input('anchorTitle').frontend }}"{% endif %}
  4. >
  5.     {% embed 'Includes/editmode-settings.html.twig' %}
  6.         {% block additionalInfo %}
  7.             <div>
  8.                 <strong>Background Image: </strong>
  9.                 {{ pimcore_image('teaser_tour-backgroundimage', {
  10.                     width: 250
  11.                 }) }}<br>
  12.                 <strong>Teaser: </strong>(Limit: 8; Allowed: AlpsteinTour)
  13.                 {{ pimcore_relations("teaser_tour-tours", {
  14.                     "types": ["object"],
  15.                     "subtypes": {
  16.                         "object": ["object"]
  17.                     },
  18.                     "classes": ["AlpsteinTour"]
  19.                 }) }}<br>
  20.             </div>
  21.         {% endblock %}
  22.     {% endembed %}
  23.     {% if not  pimcore_image('teaser_tour-backgroundimage').empty %}
  24.         <div class="slide__bg slide__bg--light js-lazy-img js-lazy-img--bg"
  25.              data-lazy-img-background="{{ pimcore_image('teaser_tour-backgroundimage', {
  26.                  thumbnail: 'slide-bg',
  27.                  path: true
  28.             }).src }}">
  29.         </div>
  30.     {% endif  %}
  31.     <div class="container ">
  32.         {{ include('Includes/title-block-editable.html.twig', {
  33.             isCentered: true
  34.         }) }}
  35.         {{ include('areas/teaser-tour-row/Includes/tour-teaser-row.html.twig', {
  36.             items: pimcore_relations("teaser_tour-tours").data,
  37.             breakindex: 7,
  38.         }) }}
  39.     </div>
  40. </section>