<figure class="together">
{%- if editmode -%}
{{- pimcore_image('togetherImage') -}}
<figcaption class="together__caption">
<div class="together__caption-top">
<h2 class="together__headline">
{{- pimcore_input('togetherHeadline', {
'placeholder': 'Überschrift'
}) -}}
</h2>
<div class="together__subline">
{{- pimcore_input('subline', {
'placeholder': 'Text'
}) -}}
</div>
</div>
<div class="together__caption-bottom">
<div class="together__link-section-left">
{{- pimcore_textarea('text', {
'placeholder': 'Text'
}) -}}
</div>
<div class="together__link-section-right">
{{- pimcore_link('link') -}}
</div>
</div>
</figcaption>
{%- else -%}
{%- set image = pimcore_image('togetherImage', {
'thumbnail': 'homepageHeroImage',
'pictureAttributes': {
'class': 'together__picture'
},
'imgAttributes': {
'class': 'together__image',
'loading': 'lazy'
}
}) -%}
{%- set togetherHeadline = pimcore_input('togetherHeadline') -%}
{%- set subline = pimcore_input('subline') -%}
{%- set text = pimcore_textarea('text') -%}
{%- set link = pimcore_link('link') -%}
{%- if not image.isEmpty() -%}
{{- image|raw -}}
{%- endif -%}
<figcaption class="together__caption">
<div class="together__caption-top">
{%- if not togetherHeadline.isEmpty() -%}
<h2 class="together__headline">
{{- togetherHeadline|raw -}}
</h2>
{%- endif -%}
{%- if not subline.isEmpty() -%}
<p class="together__subline">
{{- subline|raw -}}
</p>
{%- endif -%}
</div>
<div class="together__caption-bottom">
{%- if not text.isEmpty() -%}
<p class="together__link-section-left">
{{- text|nl2br -}}
</p>
{%- endif -%}
{%- if not link.isEmpty() and link.href != '' and link.text != '' -%}
<a href="{{- link.href -}}"
class="together__link-section-right"
{% if link.target == '_blank' %}target="_blank" rel="noopener noreferrer"{% endif %}>
{{- link.text -}}
</a>
{%- endif -%}
</div>
<svg class="icon"
aria-hidden="true"
focusable="false">
<use xlink:href="#angle-down-regular" />
</svg>
</figcaption>
{%- endif -%}
</figure>