{% if editmode %}
{{ include('layout/partials/css.html.twig') }}
{% endif %}
{% embed 'includes/editmode-box.html.twig' %}
{% block editmodeSettings %}
{{ pimcore_relations('usps', {
'types' : [ 'object' ],
'subtypes' : { 'object' : [ 'object' ] },
'classes': ['USP'],
'title': '3 USP Objects',
'reload': true
}) }}
<br>
{{ pimcore_checkbox('hasBackgroundImg', {
'label': 'Show Background Image?',
'reload': true
}) }}
<br><br>
Link to Newsletter:
{{ pimcore_link('newsletterLink') }}
{% endblock %}
{% endembed %}
{% set siteConfig = getSiteConfig() %}
{% set isPortal = app.request.get('isPortal') %}
<section class="newsletter-info {{ isPortal|default(false) ? 'newsletter-info--has-bg' : '' }} {{ app.request.get('classNames')|default('') }}">
{% if isPortal|default(false) %}
<div class="bg-mountain-img-wrapper--relative">
{% if siteConfig.fallbackImage %}
{{ siteConfig.fallbackImage.thumbnail('bg-mountain-img').getHtml({
'imgAttributes': {
'class': 'bg-mountain-img img-fluid js-lazy-img'
},
'lowQualityPlaceholder': true
})|raw }}
{% endif %}
{% if siteConfig.clouds %}
{{ siteConfig.clouds.thumbnail('citation-clouds').getHtml({
'imgAttributes': {
'class': 'js-lazy-img bg-mountain-img__clouds js-parallax',
'data-parallax-y-value': '-400'
},
'lowQualityPlaceholder': true
})|raw }}
{% endif %}
</div>
{% endif %}
<div class="newsletter-info__content js-parallax" data-parallax-y-value="200">
<div class="row gy-md-0 gy-80 gx-md-6">
<div class="col-md-6">
{{ include('includes/title-blocks/title-block.html.twig', {'prefix': 'newsletterInfo' }, with_context = false) }}
{% if not pimcore_link('newsletterLink').empty %}
{% set trackingKey = 'click-newsletter-subscription' %}
{% set trackingData = {
"trigger": "click",
"datalayer": {
"event": "click_newsletter_subscribe",
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<a href="{{ pimcore_link('newsletterLink').href }}" class="cursor-pointer" target="{{ pimcore_link('newsletterLink').target }}" data-event-tracking-key="{{ trackingKey }}">
{{ include('includes/form/newsletter-registration-input.html.twig',{
'label': 'newsletter.register.email.label'|trans,
'placeholder': 'newsletter.register.email'|trans,
'inputAttributes': { 'readonly': 'readonly' },
}, with_context = false) }}
</a>
{% endif %}
</div>
<div class="col-md-6">
{{ include('includes/title-blocks/title-block.html.twig', {'prefix': 'upsTitle' }, with_context = false) }}
<ul class="list-unstyled row usp-list gx-3 gy-md-3 gy-2 mt-4">
{% for usp in pimcore_relations('usps')|slice(0, 3) %}
<li class="usp-item col-md-auto">
<div class="circle-icon">
<span class="icon icon-{{ usp.icon }} circle-icon__icon" aria-hidden="true"></span>
</div>
<div class="usp-item__text">
{% if usp.textBold == 'subtitle' %}
{{ usp.title|raw }} <strong>{{ usp.subTitle|raw }}</strong>
{% else %}
<strong>{{ usp.title|raw }}</strong> {{ usp.subTitle|raw }}
{% endif %}
</div>
</li>
{% endfor %}
</ul>
{{ include('includes/content/button.html.twig', { 'buttonModifier': 'mt-4', 'trackingKey': 'click-buy-tickets-teaser' }, with_context = false) }}
</div>
</div>
</div>
</section>