{#
/**
* @var \Pimcore\Templating\PhpEngine this
* @var \Pimcore\Templating\PhpEngine view
* @var \Pimcore\Templating\GlobalVariables app
* #
* @var headerImage Image
*/
#}
{% if headerImage is instanceof("\\Pimcore\\Model\\Asset\\Image") %}
{% do elements_opengraph().addImage(headerImage.getThumbnail('slider-main').getPath()) %}
{% set imageAlt = headline ~ ' - Impression #1' %}
{% for metadata in headerImage.metadata %}
{% if metadata['name'] == 'alt' and metadata['language'] == 'de' %}
{% set imageAlt = metadata['data'] %}
{% endif %}
{% endfor %}
{{ headerImage.getThumbnail(thumbnail).getHTML({'imgAttributes': {
'class' : 'embed-responsive-item',
'lowQualityPlaceholder' : true,
'alt' : imageAlt,
}}) | raw }}
{{ headerImage.getThumbnail(thumbnail).getHTML({'imgAttributes': {'class' : 'embed-responsive-item',
'alt': imageAlt,
'title' : demi_parseImageTexts(getImageTexts(headerImage, true), true)}}) | raw }}
{% endif %}