templates/YoungStyria/youngStyriaInfrastructureDetail.html.twig line 1

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