{# {{ pattern('organisms-convention-header') }} #}
{% extends "Layout/default.html.twig" %}
{% block content %}
{% set detailUrl = linkGenerator().generate(community) %}
{% do elements_canonical(detailUrl) %}
{% if community.property('seo_noindex') %}
{{ elements_robots().setNoIndex()|raw }}
{% endif %}
{% do elements_opengraph().setDescription(community.metaDescription ?: community.nameLocalized ?: community.name) %}
{% if community.teaserimage %}
{% do elements_opengraph().addImage(community.teaserimage) %}
{% endif %}
{% do elements_head_title().setTitle(community.metaTitle ?:community.nameLocalized ?: community.name, true) %}
{% do elements_head_meta().setDescription((community.metaDescription ?: community.shortDescription ?: community.description), true) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{% set alt = community.name ~ ' - Impression #1' %}
{% set teaserimage = community.teaserimage.image %}
{% for metadata in teaserimage.metadata %}
{% if metadata['name'] == 'alt' and metadata['language'] == 'de' %}
{% set alt = metadata['data'] %}
{% endif %}
{% endfor %}
{{ include('Includes/hero.html.twig', {
image: community.teaserimage,
alt: alt
}) }}
{% do pimcore_placeholder('addBreadcrumb').set({
'parentId' : document.getId(),
'url' : app.request.pathInfo,
'label' : community.nameLocalized ?: community.name
}) %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-with-contact.html.twig', {
title: community.name,
badges: [
{
"title": community.parent is instanceof('\\Pimcore\\Model\\DataObject\\Region') ? community.parent.name : ('community.' ~ community.parent.key)|trans,
}],
subtitle: null,
wysiwyg: community.shortdescription,
styleModifier: 'content-block container container-sm title-block--move-up',
contactHasTabs: community.parent is instanceof('\\Pimcore\\Model\\DataObject\\Region') and community.parent.contactObject,
useContactBoxVariables: true,
contactBoxName: community.contactName,
contactBoxImage: community.logo,
contactBoxStreet: community.street,
contactBoxZip: community.zip,
contactBoxCity: community.city,
contactBoxPhone: community.phone,
contactBoxFax: community.fax,
contactBoxEmail: community.email,
contactBoxWebsite: community.website starts with "http" ? community.website : ('https://' ~ community.website),
contactBox: community.parent is instanceof('\\Pimcore\\Model\\DataObject\\Region') ? community.parent.contactObject : null
}) }}
{{ include('Includes/wysiwyg-area.html.twig', {
title: 'community.wysiwyg area title'|trans,
subtitle: 'community.wysiwyg area subtitle'|trans,
isTitleCentered: true,
hasContactForm: false,
styleModifier: 'content-block js-fade-in',
content: community.description ~ community.additionalDescription,
}) }}
{{ include('Includes/gallery-area.html.twig', {
styleModifier: 'content-block js-fade-in',
title: 'community.gallery title'|trans,
subtitle: 'community.gallery subtitle'|trans,
wysiwyg: 'community.gallery wysiwyg'|trans,
styleModifier: 'content-block js-fade-in',
images: community.gallery,
headline: community.name
}) }}
{% if community.video1 %}
{{ include('Includes/video-area.html.twig', {
title: 'community.video area title'|trans,
subtitle: 'community.video area subtitle'|trans,
video: community.video1,
}) }}
{% endif %}
{% set videos = [] %}
{% if community.video2 %}
{% set videos = videos|merge([getVideoEditable(community.video2)]) %}
{% endif %}
{% if community.video3 %}
{% set videos = videos|merge([getVideoEditable(community.video3)]) %}
{% endif %}
{% if community.video4 %}
{% set videos = videos|merge([getVideoEditable(community.video4)]) %}
{% endif %}
{% if not videos is empty %}
{{ include('Includes/video-teaser-area.html.twig', {
title: 'community.video area row title'|trans,
subtitle: 'community.video area row subtitle'|trans,
wysiwyg: 'community.video area row wysiwyg'|trans,
videos: videos,
}) }}
{% endif %}
{% if community.geoposition %}
{{ include('Includes/teaser-grid.html.twig', {
title: 'community.Aktivitäten vor ort'|trans,
subtitle: 'community.Das können Sie hier erleben'|trans,
wysiwyg: null,
styleModifier: 'container content-block js-fade-in',
leftSideTwoTeasers: true,
items: {
item1: {
title: 'community.Touren' |trans,
subtitle: 'community.subtitle' |trans,
href: siteConfig.tourOverview ~ '?community=' ~ community.id,
image: community.imageTeaserOverrideTour |default(siteConfig.teaserImageTour)
},
item2: {
title: 'community.Excursion' |trans,
subtitle: 'community.subtitle' |trans,
href: siteConfig.infrastructureOverview ~ '?radiusType=excursion&community=' ~ community.id,
image: community.imageTeaserOverrideExcursion |default(siteConfig.teaserImageExcursion)
},
item3: {
title: 'community.Accomodation' |trans,
href: siteConfig.accommodationOverview ~ '?nearbySearchId=' ~ community.id ~ '&nearbySearchLat=' ~ community.geoposition.latitude ~ '&nearbySearchLong=' ~ community.geoposition.longitude ~ '&sorting=nearbySearchAsc',
image: community.imageTeaserOverrideAccomodation |default(siteConfig.teaserImageAccomodation)
},
item4: {
title: 'community.Kulinarik' |trans,
subtitle: 'community.subtitle' |trans,
href: (siteConfig.culinaryOverview ?: siteConfig.infrastructureOverview) ~ '?predefinedHolidayTheme=8526&radiusType=culinary&community=' ~ community.id,
image: community.imageTeaserOverrideKulinarik |default(siteConfig.teaserImageKulinarik)
},
item5: {
title: 'community.Events' |trans,
subtitle: 'community.subtitle' |trans,
href: siteConfig.eventOverview ~ '?community=' ~ community.id,
image: community.imageTeaserOverrideEvents |default(siteConfig.teaserImageEvents)
}
}
}) }}
{% endif %}
{{ include('Includes/img-teaser-slider-area.html.twig', {
title: 'community.geheimtipps die sie wissen müssen'|trans,
subtitle: 'community.empfehlung der redaktion'|trans,
isCentered: true,
styleModifier: 'container content-block js-fade-in',
wysiwyg: null,
items: demiInfrastructure,
}) }}
{% if community.prognosis %}
{{ include('Includes/weather-slide.html.twig',{
styleModifier: 'content-block js-fade-in',
weatherStation: community.prognosis
}) }}
{% endif %}
{{ include('Includes/img-text-slide.html.twig', {
title: community.textSlideTitle |default(siteConfig.textSlideTitleDefault),
content: community.textSlideText |default(siteConfig.textSlideTextDefault),
image: community.textSlideImage |default(siteConfig.textSlideImageDefault),
link: community.textSlideLink |default(siteConfig.textSlideLinkDefault),
moveUp: false,
styleModifier: 'container container-md content-block',
}) }}
{{ include('Includes/simple-map.html.twig', {
title: 'community.map title'|trans,
subtitle: 'community.map subtitle'|trans,
street: community.street,
zip: community.zip,
city: community.city,
styleModifier: 'container content-block js-fade-in'
}) }}
{{ jld_root(community) }}
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/places'
}) }}
{% endif %}
{% endblock %}