{% extends "Layout/default.html.twig" %}
{% block navigation %}
{{ include('Convention/Includes/header.html.twig') }}
{% endblock %}
{% block content %}
{% set detailUrl = linkGenerator().generate(incentive) %}
{% do elements_canonical(detailUrl) %}
{% do elements_opengraph().setDescription(incentive.shortDescription ?: incentive.description) %}
{% if incentive.teaserimage %}
{% do elements_opengraph().addImage(incentive.teaserimage) %}
{% endif %}
{% do elements_head_title().setTitle(incentive.name, true) %}
{% do elements_head_meta().setDescription((incentive.shortDescription ?: incentive.description), true) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{{ include('Includes/hero.html.twig', {'image': incentive.headerImage}) }}
{% do pimcore_placeholder('addBreadcrumb').set({
'parentId' : document.getId(),
'url' : app.request.pathInfo,
'label' : incentive.name
}) %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-with-contact.html.twig', {
title : incentive.name,
subtitle: incentive.shortdescription,
contactBox: null,
useContactBoxVariables: not incentive.contactName is empty ,
contactBoxImage: incentive.logo,
contactBoxName: incentive.contactName,
contactBoxFirstname: incentive.firstname,
contactBoxLastname: incentive.lastname,
contactBoxStreet: incentive.street,
contactBoxZip: incentive.zip,
contactBoxCity: incentive.city,
contactBoxPhone: incentive.telefone,
contactBoxFax: incentive.fax,
contactBoxEmail: incentive.email,
contactBoxWebsite: incentive.website,
}) }}
{% if not incentive.description is empty %}
{{ include('Includes/wysiwyg-area.html.twig', {
isTitleCentered: true,
hasContactForm: false,
styleModifier: 'content-block js-fade-in',
content: incentive.description,
}) }}
{% endif %}
{{ include('Includes/gallery-area.html.twig', {
title: 'incentive-detail.gallery title'|trans,
subtitle: 'incentive-detail.gallery subtitle'|trans,
wysiwyg: '<p>Dies ist ein TEst</p>',
styleModifier: 'content-block js-fade-in',
images: incentive.gallery,
}) }}
{{ include('Includes/simple-map.html.twig', {
title: 'incentive-detail.map title'|trans,
subtitle: 'incentive-detail.map subtitle'|trans,
street: incentive.street,
zip: incentive.zip,
city: incentive.city,
geoposition: incentive.geoposition
}) }}
{{ include('Convention/Includes/request-partner-form.html.twig', {
id: incentive.id,
subtitle: 'incentive-detail.incentive form subtitle'|trans,
title: 'incentive-detail.incentive form title'|trans,
}) }}
{% if not partnerTeaser is empty %}
{{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
styleModifier: 'content-block container',
title: 'incentive-detail.Convention Partners in der Nähe'|trans,
subtitle: 'incentive-detail.Convention Partners in der Nähe subtitle'|trans,
wysiwyg: 'incentive-detail.Convention Partners in der Nähe text'|trans,
items: partnerTeaser|default([]),
textSnippet: {
isSmall: true,
hasImage: false,
text: 'incentive-detail.Weitere Hotels in der Nähe entdecken'|trans,
button: {
href: document.property('siteConfig').conventionPartnersOverview.fullPath|default(''),
text: "incentive-detail.Mehr anzeigen"|trans
},
color: "default"
}
}) }}
{% endif %}
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/convention'
}) }}
{% endif %}
{% endblock %}