{% extends "Layout/default.html.twig" %}
{% block navigation %}
{{ include('Convention/Includes/header.html.twig') }}
{% endblock %}
{% block content %}
{% set detailUrl = linkGenerator().generate(convention) %}
{% do elements_canonical(detailUrl) %}
{% do elements_opengraph().setDescription(convention.shortDescription ?: convention.description) %}
{% if convention.teaserimage %}
{% do elements_opengraph().addImage(convention.teaserimage) %}
{% endif %}
{% do elements_head_title().setTitle(convention.name, true) %}
{% do elements_head_meta().setDescription(chooseDescription(convention.shortDescription, convention.description), true) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{{ include('Includes/hero.html.twig', {'image': convention.headerImage}) }}
{% do pimcore_placeholder('addBreadcrumb').set({
'parentId' : document.getId(),
'url' : app.request.pathInfo,
'label' : convention.name
}) %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-with-contact.html.twig', {
title : convention.name,
subtitle: convention.shortdescription,
contactBox: null,
useContactBoxVariables: true,
contactBoxImage: convention.logo,
contactBoxName: convention.contactName,
contactBoxFirstname: convention.firstname,
contactBoxLastname: convention.lastname,
contactBoxStreet: convention.street,
contactBoxZip: convention.zip,
contactBoxCity: convention.city,
contactBoxPhone: convention.telefone,
contactBoxFax: convention.fax,
contactBoxEmail: convention.email,
contactBoxWebsite: convention.website,
}) }}
{% if not convention.description is empty %}
{{ include('Includes/wysiwyg-area.html.twig', {
isTitleCentered: true,
hasContactForm: false,
styleModifier: 'content-block js-fade-in',
content: convention.description,
}) }}
{% endif %}
{{ include('Includes/gallery-area.html.twig', {
title: 'convention-detail.gallery title'|trans,
subtitle: 'convention-detail.gallery subtitle'|trans,
wysiwyg: '<p>Dies ist ein TEst</p>',
styleModifier: 'content-block js-fade-in',
images: convention.gallery,
}) }}
{{ include('Convention/Includes/feature-tabs.html.twig', {
styleModifier: 'content-block container-sm container js-fade-in',
title: 'convention-detail.feature tabs title'|trans,
subtitle: 'convention-detail.feature tabs subtitle'|trans,
isTitleCentered: true,
convention: convention,
items:[
{
id: "hotelRooms-tab",
text: "convention-detail.Hotel & Zimmer"|trans,
href: "#hotelRooms",
isActive: true,
targetId: "hotelRooms",
features: info['hotel'],
},
{
id: "eventRooms-tab",
text: "convention-detail.Veranstaltungsräume"|trans,
href: "#eventRooms",
isActive: false,
targetId: "eventRooms",
features: info['convention'],
}
],
}) }}
{{ include('Includes/simple-map.html.twig', {
title: 'convention-detail.map title'|trans,
subtitle: 'convention-detail.map subtitle'|trans,
street: convention.street,
zip: convention.zip,
city: convention.city,
geoposition: convention.geoposition
}) }}
{{ include('Convention/Includes/request-partner-form.html.twig', {
id: convention.id,
}) }}
{% if not convention.disableIncentives %}
{{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
'styleModifier': 'content-block container',
title: 'convention-detail.Incentives in der Nähe'|trans,
subtitle: 'convention-detail.Incentives in der Nähe subtitle'|trans,
wysiwyg: 'convention-detail.Incentives in der Nähe text'|trans,
items: incentiveTeaser|default([]),
textSnippet: {
text: 'convention-detail.Weitere Incentives in der Nähe entdecken'|trans,
button: {
"href": document.property('siteConfig').incentivesOverview.fullPath|default(''),
"text": "convention-detail.Mehr anzeigen"|trans
},
}
}) }}
{% endif %}
{% if not convention.downloadSnippet is empty %}
{{ include('Includes/download.html.twig', {
title: 'convention-detail.download title'|trans,
subtitle: 'convention-detail.download subtitle'|trans,
wysiwyg:'convention-detail.download wysiwyg'|trans,
downloadSnippet: convention.downloadSnippet,
styleModifier: 'content-block',
}) }}
{% endif %}
{% if not demiInfrastructure is empty and not convention.disableInfrastructure %}
{{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
styleModifier: 'content-block container',
title: 'convention-detail.Infrastrukturen in der Nähe'|trans,
subtitle: 'convention-detail.Infrastrukturen in der Nähe subtitle'|trans,
wysiwyg: 'convention-detail.Infrastrukturen in der Nähe text'|trans,
items: demiInfrastructure,
textSnippet: {
isSmall: true,
hasImage: false,
text: 'convention-detail.Weitere Ausflugsziele in der Nähe entdecken'|trans,
button: {
href: '',
text: "convention-detail.Mehr anzeigen"|trans
},
color: "default"
}
}) }}
{# document.property('siteConfig').poiOverview.fullPath|default('')#}
{% endif %}
{% if app.request.get('testiframe', false) %}
<div class="container text-center">
<iframe class="mt-2" src="https://my.matterport.com/show/?m=xhfSi3Huqah" height="500" width="100%"></iframe>
</div>
{% endif %}
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/convention'
}) }}
{% endif %}
{% endblock %}