{%- set version = '1.0.1' -%}
{%- if editmode -%}
<link rel="stylesheet" href="/css/career-critical.css?v={{ version }}" />
<link rel="stylesheet" href="/css/career.css?v={{ version }}" />
<link rel="stylesheet" href="/css/editmode.css?v={{ version }}" />
{{- include('lef-career/partials/svg-sprite.html.twig') -}}
<footer class="footer">
<picture class="footer__picture footer__picture--first">
{{- pimcore_image('footerImageOne', {
'class': 'footer__image footer__image--first'
}) -}}
</picture>
<address class="footer__address">
{{- pimcore_textarea('address', {
'placeholder': 'Adresse'
}) -}}
</address>
<div class="footer__mail">
{{- pimcore_link('mail', {
'reload': true
}) -}}
{%- set mail = pimcore_link('mail') -%}
{%- if not mail.isEmpty() and mail.href != '' and mail.text != '' -%}
<a href="#" class="footer__mail-link">
{{- mail.text -}}
</a>
{%- endif -%}
</div>
<div class="footer__contact">
{{- pimcore_input('contact', {
'placeholder': 'Text'
}) -}}
</div>
<div class="footer__legal-navigation">
{{- pimcore_relations('legalNavigation', {
'types': ['document'],
'subtypes': {
'document': ['page']
},
'title': 'Bitte legen Sie hier Dokumente für die rechtlichen Informationen (Impressum etc.) ab!'
}) -}}
</div>
<picture class="footer__picture footer__picture--last">
{{- pimcore_image('footerImageTwo', {
'class': 'footer__image footer__image--last'
}) -}}
</picture>
</footer>
{%- else -%}
{%- set footerImageOne = pimcore_image('footerImageOne', {
'thumbnail': 'footerImageOne',
'pictureAttributes': {
'class': 'footer__picture footer__picture--first'
},
'imgAttributes': {
'class': 'footer__image footer__image--first',
'loading': 'lazy'
}
}) -%}
{%- set address = pimcore_textarea('address') -%}
{%- set mail = pimcore_link('mail') -%}
{%- set contact = pimcore_input('contact') -%}
{%- set legalNavigation = pimcore_relations('legalNavigation') -%}
{%- set footerImageTwo = pimcore_image('footerImageTwo', {
'thumbnail': 'footerImageTwo',
'pictureAttributes': {
'class': 'footer__picture footer__picture--last'
},
'imgAttributes': {
'class': 'footer__image footer__image--last',
'loading': 'lazy'
}
}) -%}
<footer id="footer" class="footer">
{%- if not footerImageOne.isEmpty() -%}
{{- footerImageOne|raw -}}
{%- else -%}
<div class="footer__picture footer__picture--first">
</div>
{%- endif -%}
{%- if not address.isEmpty() -%}
<address class="footer__address">
{{- address|nl2br -}}
</address>
{%- else -%}
<div class="footer__address">
</div>
{%- endif -%}
<div class="footer__mail">
{%- if not mail.isEmpty() and mail.href != '' and mail.text != '' -%}
<a href="mailto:{{- mail.href -}}"
class="footer__mail-link"
{% if mail.target == '_blank' %}target="_blank" rel="noopener noreferrer"{% endif %}>
{{- mail.text -}}
</a>
{%- endif -%}
</div>
<div class="footer__contact">
<p class="footer__contact-link">
{{- contact.text -}}
</p>
</div>
{%- if not legalNavigation.isEmpty() -%}
{%- set links = legalNavigation.elements -%}
<nav class="footer__legal-navigation" aria-labelledby="legal-navigation-label">
<h2 id="legal-navigation-label" class="visually-hidden">
{{- 'Rechtliche Informationen'|trans -}}
</h2>
<ul class="footer__legal-list">
{%- for link in links -%}
{%- set id = link.id -%}
{%- set name = link.property('navigation_name') -%}
{%- set title = link.property('navigation_title') -%}
{%- set target = link.property('navigation_target') -%}
<li class="footer__legal-list-item">
<a href="{{- link -}}"
class="footer__legal-link"
{% if id == document.id %}aria-current="page"{% endif %}
{% if target == '_blank' %}target="_blank" rel="noopener noreferrer"{% endif %}>
{%- if name -%}
{{- name|raw -}}
{%- elseif title -%}
{{- title|raw -}}
{%- endif -%}
</a>
</li>
{%- endfor -%}
</ul>
</nav>
{%- else -%}
<div class="footer__legal-navigation">
</div>
{%- endif -%}
{%- if not footerImageTwo.isEmpty() -%}
{{- footerImageTwo|raw -}}
{%- else -%}
<div class="footer__picture footer__picture--last">
</div>
{%- endif -%}
</footer>
{%- endif -%}