<section class="flatrate-teaser teaser-animation stretch-link {{ styleModifier | default(null) }}"> {% if isYoungStyria|default(false) %} <img class="demi-infrastructure-teaser-grid__young-styria-logo" src="/static/img/young-styria/young-styria.jpg"> {% endif %} {% if hasEnquiryButton|default(false) %} <!-- button for adding to selection, including data needed for result-rendering --> <button class="js-pool-enquiry__btn flatrate-teaser__pool-enquiry" data-pool-enquiry-data='{"title":"{{ title|default('') }}","id":{{id|default(null)}}}'> <span class="flatrate-teaser__pool-enquiry__icon icon" aria-hidden="true"></span> {{ 'flatrate-teaser.Anfragen' | trans }} </button> {% endif %} {% if hasWishlist|default(false) %} <button type="button" class="wishlist-btn flatrate-teaser__wishlist-btn js-wishlist{{ wishlistId | default(null) ? '-' ~ wishlistId : '' }}__btn {% if wishlistActive|default(false) %}is-active{% endif%} " data-wishlist-id="{{ id|default('') }}" aria-label="{{ 'teaser.Auf die Merkliste'|trans }}" title="{{ wishlistActive|default(false) ? 'wishlist.remove'|trans : 'teaser.Auf die Merkliste'|trans }}" {% if trackingAction|default('') %}data-event-tracking-category="Multimedia Archiv - Merkliste Übersichtsseite" data-event-tracking-action="{{ trackingAction|default('') }}{{ wishlistActive|default(false) ? (' ' ~ 'teaser.entfernen'|trans) : '' }}" data-event-tracking-action-toggle=" {{ 'teaser.entfernen'|trans }}" data-event-tracking-label="{{ title|default('') }} {{ id|default('') }}"{% endif %}> <span class="sr-only">{{ wishlistActive|default(false) ? 'teaser.von merkliste entfernen'|trans : 'teaser.Auf die Merkliste'|trans }}</span> <span class="icon icon-heart-outline" aria-hidden="true"></span> </button> {% endif %} {% if removeFromWishlist|default(false) %} <button type="button" class="wishlist-btn flatrate-teaser__wishlist-btn js-wishlist__remove" data-wishlist-id="{{ id|default(null) }}" aria-label="{{ 'teaser.von merkliste entfernen'|trans }}" title="{{ 'teaser.von merkliste entfernen'|trans }}" data-event-tracking-category="Multimedia Archiv - Merkliste Übersichtsseite" data-event-tracking-action="xxyy {{ 'teaser.entfernen'|trans }}" data-event-tracking-action-toggle=" {{ 'teaser.entfernen'|trans }}" data-event-tracking-label="{{ title|default('') }} {{ id|default('') }}"> <span class="sr-only">{{ 'teaser.von merkliste entfernen'|trans }}</span> <span class="icon icon-close" aria-hidden="true"></span> </button> {% endif %} {% if image|default(false) %} {% set description = getImageDescription(image, true) %} {% endif %} <div class="flatrate-teaser__embed embed-responsive flatrate-teaser__img-wrapper"> {{ image|default(null) ? image.thumbnail('flatrate-teaser').html({ imgAttributes: { class: 'js-lazy-img embed-responsive-item teaser-animation__img' }, lowQualityPlaceholder: true, title: description|default(''), alt: description|default('') }) | raw : ''}} </div> <div class="flatrate-teaser__content"> <div class="flatrate-teaser__content-inner"> {% if wishlistNotRegistered|default(false) %} <div class="alert alert-danger"> {{ wishlistNotRegisteredTK|default('wishlist.not registered for region(s): {{regions}}')|trans({'{{regions}}': regionRegistrationTKLinks|default('') }) |raw }} </div> {% endif %} {% if badgeText|default('') %} <div class="flatrate-teaser__badge"> {{ badgeText }} </div> {% endif %} {% if badgeText2|default('') %} <div class="flatrate-teaser__badge"> {{ badgeText2 }} </div> {% endif %} <h3 class="flatrate-teaser__title h5"> <a href="{{ link }}" class="stretch-link__link"> {{ title|default('') }} </a> </h3> {% if location|default('') %} <div class="flatrate-teaser__location"> <span class="icon icon-pin-regions mr-1" arial-label="location" title="location"></span> {{ location }} </div> {% endif %} {% if hasAccessibilityList |default(false) %} <ul class="flatrate-teaser__accessibility-list list-unstyled list-inline"> {% for categoryData in getAccessiblityObjects(item) %}{# {{ categoryData.isTop }}#}{# {{ categoryData.category.selectIcon }}#}{# {{ categoryData.percent }}#} {% if categoryData.isTop %} <li class="flatrate-teaser__accessibility-item list-inline-item flatrate-teaser__accessibility-item--checked stretch-link__interactive" data-toggle="tooltip" title="{{categoryData.category.title }}"> <img src="/static/img/accessibility-icons/{{categoryData.category.selectIcon }}.svg" alt="{{categoryData.category.selectIcon }}" class="img-fluid" /> </li> {% else %} <li class="flatrate-teaser__accessibility-item list-inline-item"> <img src="/static/img/accessibility-icons/{{categoryData.category.selectIcon }}.svg" alt="{{categoryData.category.selectIcon }}" class="img-fluid stretch-link__interactive" data-toggle="tooltip" title="{{categoryData.category.title }}" /> </li> {% endif %} {% endfor %} </ul> {% endif %} {% if date|default('') %} <div class="flatrate-teaser__date"> <time>{{ date }}</time> </div> {% endif %} <div class="flatrate-teaser__wysiwyg wysiwyg"> {{ wysiwyg|default('') | raw }} </div>{# check if current document has event property or if snippet has event#} <a href="{{ link }}" {% if linktarget|default(null) %} target="{{ linktarget }}" {% endif%} class="btn btn-white btn-block stretch-link__link" title="{{ description|default('') }}" {% if app.request.get('lpSttEvent')|default(null) or (document|default(null) and document.property('setLPTeaserSTTEvent')) %} data-event-tracking-category="LP Partnerteaser STT" data-event-tracking-action="{{ hostUrl() ~ getMainRequest().pathInfo() }}" data-event-tracking-label="{{ link }} {% endif %}"> {{ linktext|default('') }} </a> </div> </div></section>