{% extends "Layout/default.html.twig" %}
{% block content %}
{% set detailUrl = linkGenerator().generate(ysAcco) %}
{% do elements_canonical(detailUrl) %}
{% do elements_opengraph().setDescription(ysAcco.shortDescription ?: ysAcco.description) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{% if ysAcco.teaserimage %}
{% do elements_opengraph().addImage(ysAcco.teaserimage) %}
{% endif %}
{% do elements_head_title().setTitle(ysAcco.name, true) %}
{% do elements_head_meta().setDescription(chooseDescription(ysAcco.shortDescription, ysAcco.longDescription), true) %}
{{ include('Includes/hero.html.twig', {'image': ysAcco.headerImage}) }}
{% do pimcore_placeholder('addBreadcrumb').set({
'parentId' : document.getId(),
'url' : app.request.pathInfo,
'label' : ysAcco.name
}) %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-with-contact.html.twig', {
title : ysAcco.name,
subtitle: ysAcco.shortdescription,
contactBox: null,
useContactBoxVariables: true,
contactBoxImage: ysAcco.logo,
contactBoxName: ysAcco.contactName,
contactBoxFirstname: ysAcco.firstname,
contactBoxLastname: ysAcco.lastname,
contactBoxStreet: ysAcco.street,
contactBoxZip: ysAcco.zip,
contactBoxCity: ysAcco.city,
contactBoxPhone: ysAcco.telefone,
contactBoxFax: ysAcco.fax,
contactBoxEmail: ysAcco.email,
contactBoxWebsite: ysAcco.website,
isYoungStyria: true,
}) }}
{% if not ysAcco.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: ysAcco.longDescription ~ (ysAcco.additionalDescription ? ysAcco.additionalDescription : ''),
}) }}
{% endif %}
{% if ysAcco.youngStyriaZuckerl %}
{{ include('YoungStyria/Includes/young-styria-zucker.html.twig', {
zuckerl: ysAcco.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: ysAcco.gallery,
}) }}
{{ 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: ysAcco.street,
zip: ysAcco.zip,
city: ysAcco.city,
geoposition: ysAcco.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.Ausflugsziele'|trans,
subtitle: 'young-styria-infa-detail.Ausflugsziele 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(ysAcco) }}
{% endblock %}