{% extends "Layout/default.html.twig" %}
{% block content %}
{% set detailUrl = linkGenerator().generate(ysInfra) %}
{% do elements_canonical(detailUrl) %}
{% do elements_opengraph().setDescription(ysInfra.shortDescription ?: ysInfra.description) %}
{% if ysInfra.teaserimage %}
{% do elements_opengraph().addImage(ysInfra.teaserimage) %}
{% endif %}
{% do elements_head_title().setTitle(ysInfra.name, true) %}
{% do elements_head_meta().setDescription(chooseDescription(ysInfra.shortDescription, ysInfra.longDescription), true) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{{ include('Includes/hero.html.twig', {'image': ysInfra.headerImage}) }}
{% do pimcore_placeholder('addBreadcrumb').set({
'parentId' : document.getId(),
'url' : app.request.pathInfo,
'label' : ysInfra.name
}) %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-with-contact.html.twig', {
title : ysInfra.name,
subtitle: ysInfra.shortdescription,
contactBox: null,
useContactBoxVariables: true,
contactBoxImage: ysInfra.logo,
contactBoxName: ysInfra.contactName,
contactBoxFirstname: ysInfra.firstname,
contactBoxLastname: ysInfra.lastname,
contactBoxStreet: ysInfra.street,
contactBoxZip: ysInfra.zip,
contactBoxCity: ysInfra.city,
contactBoxPhone: ysInfra.telefone,
contactBoxFax: ysInfra.fax,
contactBoxEmail: ysInfra.email,
contactBoxWebsite: ysInfra.website,
isYoungStyria: true,
}) }}
{% if not ysInfra.longDescription is empty %}
{{ include('Includes/wysiwyg-area.html.twig', {
title: 'young-styria-infa-detail.wysiwyg area title'|trans,
subtitle: 'young-styria-infa-detail.wysiwyg area subtitle'|trans,
isTitleCentered: true,
hasContactForm: false,
styleModifier: 'content-block js-fade-in',
content: ysInfra.longDescription ~ (ysInfra.additionalDescription ? ysInfra.additionalDescription : ''),
}) }}
{% endif %}
{% if ysInfra.youngStyriaZuckerl %}
{{ include('YoungStyria/Includes/young-styria-zucker.html.twig', {
zuckerl: ysInfra.youngStyriaZuckerl
}) }}
{% endif %}
{{ include('Includes/gallery-area.html.twig', {
title: 'young-styria-infa-detail.gallery title'|trans,
subtitle: 'young-styria-infa-detail.gallery subtitle'|trans,
wysiwyg: '',
styleModifier: 'content-block js-fade-in',
images: ysInfra.gallery,
}) }}
{% if ysInfra.videoBig %}
{{ include('Includes/video-area.html.twig', {
title: 'young-styria-infa-detail.video area title'|trans,
subtitle: 'young-styria-infa-detail.video area subtitle'|trans,
video: ysInfra.videoBig,
}) }}
{% endif %}
{% set videos = [] %}
{% for video in ysInfra.videosBlock %}
{% if video['video'] and video['video'].data %}
{% set videos = videos|merge([getVideoEditable(video['video'].data)]) %}
{% endif %}
{% endfor %}
{% if not videos is empty %}
{{ include('Includes/video-teaser-area.html.twig', {
title: 'young-styria-infa-detail.video area row title'|trans,
subtitle: 'young-styria-infa-detail.video area row subtitle'|trans,
wysiwyg: 'young-styria-infa-detail.video area row wysiwyg'|trans,
videos: videos,
}) }}
{% endif %}
{{ include('YoungStyria/Includes/young-styria-key-data.html.twig', {
keyData: keyData|default([]),
}) }}
{{ include('Includes/simple-map.html.twig', {
title: 'young-styria-infa-detail.map title'|trans,
subtitle: 'young-styria-infa-detail.map subtitle'|trans,
street: ysInfra.street,
zip: ysInfra.zip,
city: ysInfra.city,
geoposition: ysInfra.map
}) }}
{% if weatherStation|default(null) %}
{{ include('Includes/weather-slide.html.twig', {
weatherStation: weatherStation
}) }}
{% endif %}
{% if not recommendations|default([]) is empty %}
{{ include('Includes/flatrate-teaser-area.html.twig', {
title: 'young-styria-infa-detail.Unterkünfte'|trans,
subtitle: 'young-styria-infa-detail.Unterkünfte subtitle'|trans,
items: recommendations|default([])
}) }}
{% endif %}
{% if not packages|default([]) is empty %}
{{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
styleModifier: 'content-block container',
title: 'young-styria-infa-detail.Packages in der Nähe'|trans,
subtitle: 'young-styria-infa-detail.Packages in der Nähe subtitle'|trans,
wysiwyg: 'young-styria-infa-detail.Packages in der Nähe text'|trans,
items: packages,
textSnippet: {
isSmall: true,
hasImage: false,
text: 'young-styria-infa-detail.Weitere Packages'|trans,
button: {
href: '',
text: "young-styria-infa-detail.Mehr anzeigen"|trans
},
color: "default"
}
}) }}
{% endif %}
{{ jld_root(ysInfra) }}
{% endblock %}