templates/YoungStyria/youngStyriaAccommodationDetail.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block content %}
  3.     {% set detailUrl = linkGenerator().generate(ysAcco) %}
  4.     {% do elements_canonical(detailUrl) %}
  5.     {% do elements_opengraph().setDescription(ysAcco.shortDescription ?: ysAcco.description) %}
  6.     {% if not detailUrl is same as(app.request.pathInfo) %}
  7.         {% do elements_robots().setNoIndex(true) %}
  8.     {% endif %}
  9.     {% if ysAcco.teaserimage %}
  10.         {% do elements_opengraph().addImage(ysAcco.teaserimage) %}
  11.     {% endif %}
  12.     {% do elements_head_title().setTitle(ysAcco.name, true) %}
  13.     {% do elements_head_meta().setDescription(chooseDescription(ysAcco.shortDescription, ysAcco.longDescription), true) %}
  14.     {{ include('Includes/hero.html.twig', {'image': ysAcco.headerImage}) }}
  15.     {% do pimcore_placeholder('addBreadcrumb').set({
  16.         'parentId' : document.getId(),
  17.         'url' : app.request.pathInfo,
  18.         'label' : ysAcco.name
  19.     }) %}
  20.     {{ include('Navigation/breadcrumb.html.twig') }}
  21.     {{ include('Includes/main-title-block-with-contact.html.twig', {
  22.         title : ysAcco.name,
  23.         subtitle: ysAcco.shortdescription,
  24.         contactBox: null,
  25.         useContactBoxVariables: true,
  26.         contactBoxImage: ysAcco.logo,
  27.         contactBoxName: ysAcco.contactName,
  28.         contactBoxFirstname: ysAcco.firstname,
  29.         contactBoxLastname: ysAcco.lastname,
  30.         contactBoxStreet: ysAcco.street,
  31.         contactBoxZip: ysAcco.zip,
  32.         contactBoxCity: ysAcco.city,
  33.         contactBoxPhone: ysAcco.telefone,
  34.         contactBoxFax: ysAcco.fax,
  35.         contactBoxEmail: ysAcco.email,
  36.         contactBoxWebsite: ysAcco.website,
  37.         isYoungStyria: true,
  38.     }) }}
  39.     {% if not ysAcco.longDescription is empty %}
  40.         {{ include('Includes/wysiwyg-area.html.twig', {
  41.             title: 'young-styria-infa-detail.wysiwyg area title'|trans,
  42.             subtitle: 'young-styria-infa-detail.wysiwyg area subtitle'|trans,
  43.             isTitleCentered: true,
  44.             hasContactForm: false,
  45.             styleModifier: 'content-block js-fade-in',
  46.             content: ysAcco.longDescription ~ (ysAcco.additionalDescription ?  ysAcco.additionalDescription : ''),
  47.         }) }}
  48.     {% endif %}
  49.     {% if ysAcco.youngStyriaZuckerl %}
  50.         {{ include('YoungStyria/Includes/young-styria-zucker.html.twig', {
  51.             zuckerl: ysAcco.youngStyriaZuckerl
  52.         }) }}
  53.     {% endif %}
  54.     {{ include('Includes/gallery-area.html.twig', {
  55.         title: 'young-styria-infa-detail.gallery title'|trans,
  56.         subtitle: 'young-styria-infa-detail.gallery subtitle'|trans,
  57.         wysiwyg: '',
  58.         styleModifier: 'content-block js-fade-in',
  59.         images: ysAcco.gallery,
  60.     }) }}
  61.     {{ include('YoungStyria/Includes/young-styria-key-data.html.twig', {
  62.         keyData: keyData|default([]),
  63.     }) }}
  64.     {{ include('Includes/simple-map.html.twig', {
  65.         title: 'young-styria-infa-detail.map title'|trans,
  66.         subtitle: 'young-styria-infa-detail.map subtitle'|trans,
  67.         street: ysAcco.street,
  68.         zip: ysAcco.zip,
  69.         city: ysAcco.city,
  70.         geoposition: ysAcco.map
  71.     }) }}
  72.     {% if weatherStation|default(null) %}
  73.         {{ include('Includes/weather-slide.html.twig', {
  74.             weatherStation: weatherStation
  75.         }) }}
  76.     {% endif %}
  77.     {% if not recommendations|default([]) is empty %}
  78.         {{ include('Includes/flatrate-teaser-area.html.twig', {
  79.             title: 'young-styria-infa-detail.Ausflugsziele'|trans,
  80.             subtitle: 'young-styria-infa-detail.Ausflugsziele subtitle'|trans,
  81.             items: recommendations|default([])
  82.         }) }}
  83.     {% endif %}
  84.     {% if not packages|default([]) is empty %}
  85.         {{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
  86.             styleModifier: 'content-block container',
  87.             title: 'young-styria-infa-detail.Packages in der Nähe'|trans,
  88.             subtitle: 'young-styria-infa-detail.Packages in der Nähe subtitle'|trans,
  89.             wysiwyg: 'young-styria-infa-detail.Packages in der Nähe text'|trans,
  90.             items: packages,
  91.             textSnippet: {
  92.                 isSmall: true,
  93.                 hasImage: false,
  94.                 text: 'young-styria-infa-detail.Weitere Packages'|trans,
  95.                 button: {
  96.                     href: '',
  97.                     text: "young-styria-infa-detail.Mehr anzeigen"|trans
  98.                 },
  99.                 color: "default"
  100.             }
  101.         }) }}
  102.     {% endif %}
  103.     {{ jld_root(ysAcco) }}
  104. {% endblock %}