{% set mediaAsset = mediaAsset|default(null) %}
{% set orientation = getAssetOrientation(image) %}
{% set wishlist = wishlist|default('press-pictures') %}
{% if not href|default(null) %}
{% set href = getMediaArchiveImageDetail(image, siteConfig|default(null)) %}
{% endif %}
<section class="press-picture-teaser press-picture-teaser--{{ orientation|default('landscape') }} stretch-link teaser-animation {{ classes|default(null) }}">
{% if hasWishlist|default(null) and image.metadata('General.mediaArchive') %}
<button type="button" class="wishlist-btn wishlist-btn--primary press-picture-teaser__wishlist-btn js-wishlist-{{ wishlist }}__btn stretch-link__interactive {% if wishlistActive|default(false) %}is-active{% endif%}" data-wishlist-id="{{ mediaAsset ? mediaAsset.id : image.id }}" aria-label="{{ 'press.Auf die Merkliste'|trans }}" title="{{ 'press.Auf die Merkliste'|trans }}"
data-event-tracking-category="Multimedia Archiv - Merkliste Übersichtsseite"
data-event-tracking-action="Bild"
data-event-tracking-action-toggle=" {{ 'teaser.entfernen'|trans }}"
data-event-tracking-label="{{ image.metadata('General.title', app.request.locale) }} {{ image.id }}"
>
<span class="sr-only">{{ 'press.Auf die Merkliste'|trans }}</span>
<span class="icon icon-star" aria-hidden="true"></span>
</button>
{% endif %}
{% if removeFromWishlist|default(null) and image.metadata('General.mediaArchive') %}
<button type="button" class="wishlist-btn wishlist-btn--primary press-picture-teaser__wishlist-btn js-wishlist__remove stretch-link__interactive" data-wishlist-id="{{ mediaAsset ? mediaAsset.id : image.id }}" aria-label="{{ 'press.Von merkliste entfernen'|trans }}" title="{{ 'press.Von merkliste entfernen'|trans }}"
data-event-tracking-category="Multimedia Archiv - Merkliste Übersichtsseite"
data-event-tracking-action="Bild"
data-event-tracking-action-toggle=" {{ 'teaser.entfernen'|trans }}"
data-event-tracking-label="{{ image.metadata('General.title', app.request.locale) }} {{ image.id }}"
>
<span class="sr-only">{{ 'press.Von merkliste entfernen'|trans }}</span>
<span class="icon icon-close" aria-hidden="true"></span>
</button>
{% endif %}
<div class="embed-responsive-1by1 embed-responsive">
{% set description = getImageDescription(mediaAsset ? mediaAsset.posterImage : image, true) %}
{{ (mediaAsset ? mediaAsset.posterImage : image).thumbnail('press-picture-teaser').html({
imgAttributes: {
class: 'js-lazy-img embed-responsive-item press-picture-teaser__img embed-responsive-item--center teaser-animation__img'
},
lowQualityPlaceholder: true,
title: description|default(''),
alt: description|default('')
})| raw }}
{% do jsConfig().add('lazyImg', true) %}
</div>
<div class="press-picture-teaser__body">
<div>
{% if wishlistNotRegistered|default(false) %}
<div class="alert alert-danger">
{{ 'wishlist.asset.not registered for region(s): {{regions}}'|trans({'{{regions}}': getRegionRegistrationLinks(image.metadata('General.regions')|default([]))})|raw }}
</div>
{% endif %}
<ul class="list-unstyled list-inline">
{% for badge in getBadgesForAsset(image, mediaAsset) %}
<li class="list-inline-item press-picture-teaser__list-item">
<span class="badge badge-primary">
{{ badge }}
</span>
</li>
{% endfor %}
{% if (mediaAsset and mediaAsset.asset is instanceof("\\Pimcore\\Model\\Asset\\Image")) or image is instanceof("\\Pimcore\\Model\\Asset\\Image") %}
<li class="list-inline-item press-picture-teaser__list-item">
<span class="press-picture-teaser__icon icon icon-picture-{{ orientation|default('landscape') }}" aria-label="{{ orientation|default('landscape') }}" title="{{ orientation|default('landscape') }}"></span>
</li>
{% endif %}
</ul>
<h3 class="press-picture-teaser__title h5">
{% set description = getImageDescription(image) %}
<a href="{{ href }}" title="{{ description|default('') }}" class="stretch-link__link">
{{ title|default(image.metadata('General.title', app.request.locale)) }}
</a>
</h3>
{% if imageTexts is not defined %}
{% set imageTexts = getImageTexts(image)%}
{% endif %}
{% if imageTexts.copyright|default(false) or imageTexts.author|default(false) %}
<div class="press-picture-teaser__copyright">
{% if imageTexts.copyright|default(false) %}
{{ imageTexts.copyright }}
{% endif %}
{% if imageTexts.copyright|default(false) and imageTexts.author|default(false) %}
|
{% endif %}
{% if imageTexts.author|default(false) %}
{{ imageTexts.author }}
{% endif %}
</div>
{% endif %}
</div>
</div>
</section>