{% extends "Layout/default.html.twig" %}
{% block content %}
{% set detailUrl = linkGenerator().generate(busTravel) %}
{% do elements_canonical(detailUrl) %}
{% do elements_opengraph().setDescription(busTravel.shortDescription ?: busTravel.description) %}
{% if busTravel.teaserimage %}
{% do elements_opengraph().addImage(busTravel.teaserimage) %}
{% endif %}
{% do elements_head_title().setTitle(busTravel.title, true) %}
{% do elements_head_meta().setDescription(chooseDescription(busTravel.shortDescription, busTravel.longDescription), true) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{{ include('Includes/hero.html.twig', {'image': busTravel.headerImage}) }}
{% do pimcore_placeholder('addBreadcrumb').set({
'parentId' : document.getId(),
'url' : app.request.pathInfo,
'label' : busTravel.title
}) %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-with-contact.html.twig', {
title : busTravel.title,
subtitle: busTravel.shortdescription,
contactBox: null,
useContactBoxVariables: true,
contactBoxImage: busTravel.logo,
contactBoxName: busTravel.contactName,
contactBoxFirstname: busTravel.firstname,
contactBoxLastname: busTravel.lastname,
contactBoxStreet: busTravel.street,
contactBoxZip: busTravel.zip,
contactBoxCity: busTravel.city,
contactBoxPhone: busTravel.telefone,
contactBoxFax: busTravel.fax,
contactBoxEmail: busTravel.email,
contactBoxWebsite: busTravel.website,
}) }}
{% if not busTravel.longDescription is empty %}
{{ include('Includes/wysiwyg-area.html.twig', {
title: ('bustravel-detail-' ~ busTravel.busType ~ '.wysiwyg area title')|trans,
subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.wysiwyg area subtitle')|trans,
isTitleCentered: true,
hasContactForm: false,
styleModifier: 'content-block js-fade-in',
content: busTravel.longDescription ~ (busTravel.additionalDescription ? busTravel.additionalDescription : ''),
}) }}
{% endif %}
{{ include('Includes/gallery-area.html.twig', {
title: ('bustravel-detail-' ~ busTravel.busType ~ '.gallery title')|trans,
subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.gallery subtitle')|trans,
wysiwyg: '',
styleModifier: 'content-block js-fade-in',
images: busTravel.gallery,
}) }}
{{ include('Includes/simple-map.html.twig', {
title: ('bustravel-detail-' ~ busTravel.busType ~ '.map title')|trans,
subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.map subtitle')|trans,
street: busTravel.street,
zip: busTravel.zip,
city: busTravel.city,
geoposition: busTravel.map
}) }}
{% if busTravel.busType == 'accommodation' %}
{# show excursion destinations #}
{{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
'styleModifier': 'content-block container',
title: 'bustravel-detail.Ausflugsziele in der Nähe'|trans,
subtitle: 'bustravel-detail.Ausflugsziele in der Nähe subtitle'|trans,
wysiwyg: 'bustravel-detail.Ausflugsziele in der Nähe text'|trans,
items: getBusTravelRecommendation(busTravel),
textSnippet: {
text: 'bustravel-detail.Weitere Ausflugsziele in der Nähe entdecken'|trans,
button: {
"href": document.property('siteConfig').busTravelOverviewExcursionDestination().fullPath|default(''),
"text": "bustravel-detail.Mehr anzeigen"|trans
},
}
}) }}
{% else %}
{# show accommodations #}
{{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
'styleModifier': 'content-block container',
title: 'bustravel-detail.Unterkünfte in der Nähe'|trans,
subtitle: 'bustravel-detail.Unterkünfte in der Nähe subtitle'|trans,
wysiwyg: 'bustravel-detail.Unterkünfte in der Nähe text'|trans,
items: getBusTravelRecommendation(busTravel),
textSnippet: {
text: 'bustravel-detail.Weitere Unterkünfte in der Nähe entdecken'|trans,
button: {
"href": document.property('siteConfig').getBusTravelOverviewAccommodations().fullPath|default(''),
"text": "bustravel-detail.Mehr anzeigen"|trans
},
}
}) }}
{% endif %}
{% if not busTravel.downloads is empty %}
{{ include('Includes/download.html.twig', {
title: 'bustravel-detail.download title'|trans,
subtitle: 'bustravel-detail.download subtitle'|trans,
wysiwyg:'bustravel-detail.download wysiwyg'|trans,
downloads: busTravel.downloads|default([]),
styleModifier: 'content-block',
}) }}
{% endif %}
{% if weatherStation|default(null) %}
{{ include('Includes/weather-slide.html.twig', {
weatherStation: weatherStation
}) }}
{% endif %}
{% if busTravel.video1 %}
{{ include('Includes/video-area.html.twig', {
title: 'bustravel-detail.video area title'|trans,
subtitle: 'bustravel-detail.video area subtitle'|trans,
video: busTravel.video1,
}) }}
{% endif %}
{% if videos|default([]) %}
{{ include('Includes/video-teaser-area.html.twig', {
title: 'bustravel-detail.video area row title'|trans,
subtitle: 'bustravel-detail.video area row subtitle'|trans,
wysiwyg: 'bustravel-detail.video area row wysiwyg'|trans,
videos: videos|default([]),
}) }}
{% endif %}
{% set busLinks = getBusLinks(busTravel) %}
{% if not busLinks is empty %}
{{ include('Includes/link-list.html.twig', {
links: busLinks,
}) }}
{% endif %}
{% if not packages|default([]) is empty %}
{{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
styleModifier: 'content-block container',
title: 'bustravel-detail.Packages in der Nähe'|trans,
subtitle: 'bustravel-detail.Packages in der Nähe subtitle'|trans,
wysiwyg: 'bustravel-detail.Packages in der Nähe text'|trans,
items: packages,
textSnippet: {
isSmall: true,
hasImage: false,
text: 'bustravel-detail.Weitere Packages'|trans,
button: {
href: '',
text: "bustravel-detail.Mehr anzeigen"|trans
},
color: "default"
}
}) }}
{% endif %}
{% endblock %}