templates/Convention/conventionPartnerDetail.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block navigation %}
  3.     {{ include('Convention/Includes/header.html.twig') }}
  4. {% endblock %}
  5. {% block content %}
  6.     {% set detailUrl = linkGenerator().generate(convention) %}
  7.     {% do elements_canonical(detailUrl) %}
  8.     {% do elements_opengraph().setDescription(convention.shortDescription ?: convention.description) %}
  9.     {% if convention.teaserimage %}
  10.         {% do elements_opengraph().addImage(convention.teaserimage) %}
  11.     {% endif %}
  12.     {% do elements_head_title().setTitle(convention.name, true) %}
  13.     {% do elements_head_meta().setDescription(chooseDescription(convention.shortDescription, convention.description), true) %}
  14.     {% if not detailUrl is same as(app.request.pathInfo) %}
  15.         {% do elements_robots().setNoIndex(true) %}
  16.     {% endif %}
  17.     {{ include('Includes/hero.html.twig', {'image': convention.headerImage}) }}
  18.     {% do pimcore_placeholder('addBreadcrumb').set({
  19.         'parentId' : document.getId(),
  20.         'url' : app.request.pathInfo,
  21.         'label' : convention.name
  22.     }) %}
  23.     {{ include('Navigation/breadcrumb.html.twig') }}
  24.     {{ include('Includes/main-title-block-with-contact.html.twig', {
  25.         title : convention.name,
  26.         subtitle: convention.shortdescription,
  27.         contactBox: null,
  28.         useContactBoxVariables: true,
  29.         contactBoxImage: convention.logo,
  30.         contactBoxName: convention.contactName,
  31.         contactBoxFirstname: convention.firstname,
  32.         contactBoxLastname: convention.lastname,
  33.         contactBoxStreet: convention.street,
  34.         contactBoxZip: convention.zip,
  35.         contactBoxCity: convention.city,
  36.         contactBoxPhone: convention.telefone,
  37.         contactBoxFax: convention.fax,
  38.         contactBoxEmail: convention.email,
  39.         contactBoxWebsite: convention.website,
  40.     }) }}
  41.     {% if not convention.description is empty %}
  42.         {{ include('Includes/wysiwyg-area.html.twig', {
  43.             isTitleCentered: true,
  44.             hasContactForm: false,
  45.             styleModifier: 'content-block js-fade-in',
  46.             content: convention.description,
  47.         }) }}
  48.     {% endif %}
  49.     {{ include('Includes/gallery-area.html.twig', {
  50.         title: 'convention-detail.gallery title'|trans,
  51.         subtitle: 'convention-detail.gallery subtitle'|trans,
  52.         wysiwyg: '<p>Dies ist ein TEst</p>',
  53.         styleModifier: 'content-block js-fade-in',
  54.         images: convention.gallery,
  55.     }) }}
  56.     {{ include('Convention/Includes/feature-tabs.html.twig', {
  57.         styleModifier: 'content-block container-sm container js-fade-in',
  58.         title: 'convention-detail.feature tabs title'|trans,
  59.         subtitle: 'convention-detail.feature tabs subtitle'|trans,
  60.         isTitleCentered: true,
  61.         convention: convention,
  62.         items:[
  63.             {
  64.                 id: "hotelRooms-tab",
  65.                 text: "convention-detail.Hotel & Zimmer"|trans,
  66.                 href: "#hotelRooms",
  67.                 isActive: true,
  68.                 targetId: "hotelRooms",
  69.                 features: info['hotel'],
  70.             },
  71.             {
  72.                 id: "eventRooms-tab",
  73.                 text: "convention-detail.Veranstaltungsräume"|trans,
  74.                 href: "#eventRooms",
  75.                 isActive: false,
  76.                 targetId: "eventRooms",
  77.                 features: info['convention'],
  78.             }
  79.         ],
  80.     }) }}
  81.     {{ include('Includes/simple-map.html.twig', {
  82.         title: 'convention-detail.map title'|trans,
  83.         subtitle: 'convention-detail.map subtitle'|trans,
  84.         street: convention.street,
  85.         zip: convention.zip,
  86.         city: convention.city,
  87.         geoposition: convention.geoposition
  88.     }) }}
  89.     {{ include('Convention/Includes/request-partner-form.html.twig', {
  90.         id: convention.id,
  91.     }) }}
  92.     {% if not convention.disableIncentives %}
  93.         {{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
  94.             'styleModifier': 'content-block container',
  95.             title: 'convention-detail.Incentives in der Nähe'|trans,
  96.             subtitle: 'convention-detail.Incentives in der Nähe subtitle'|trans,
  97.             wysiwyg: 'convention-detail.Incentives in der Nähe text'|trans,
  98.             items: incentiveTeaser|default([]),
  99.             textSnippet: {
  100.                 text: 'convention-detail.Weitere Incentives in der Nähe entdecken'|trans,
  101.                 button: {
  102.                     "href": document.property('siteConfig').incentivesOverview.fullPath|default(''),
  103.                     "text": "convention-detail.Mehr anzeigen"|trans
  104.                 },
  105.             }
  106.         }) }}
  107.     {% endif %}
  108.     {% if not convention.downloadSnippet is empty %}
  109.         {{ include('Includes/download.html.twig', {
  110.             title: 'convention-detail.download title'|trans,
  111.             subtitle: 'convention-detail.download subtitle'|trans,
  112.             wysiwyg:'convention-detail.download wysiwyg'|trans,
  113.             downloadSnippet: convention.downloadSnippet,
  114.             styleModifier: 'content-block',
  115.         }) }}
  116.     {% endif %}
  117.     {% if not demiInfrastructure is empty and not convention.disableInfrastructure %}
  118.         {{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
  119.             styleModifier: 'content-block container',
  120.             title: 'convention-detail.Infrastrukturen in der Nähe'|trans,
  121.             subtitle: 'convention-detail.Infrastrukturen in der Nähe subtitle'|trans,
  122.             wysiwyg: 'convention-detail.Infrastrukturen in der Nähe text'|trans,
  123.             items: demiInfrastructure,
  124.             textSnippet: {
  125.                 isSmall: true,
  126.                 hasImage: false,
  127.                 text: 'convention-detail.Weitere Ausflugsziele in der Nähe entdecken'|trans,
  128.                 button: {
  129.                     href: '',
  130.                     text: "convention-detail.Mehr anzeigen"|trans
  131.                 },
  132.                 color: "default"
  133.             }
  134.         }) }}
  135. {#        document.property('siteConfig').poiOverview.fullPath|default('')#}
  136.     {% endif %}
  137.     {% if app.request.get('testiframe', false) %}
  138.     <div class="container text-center">
  139.         <iframe class="mt-2" src="https://my.matterport.com/show/?m=xhfSi3Huqah" height="500" width="100%"></iframe>
  140.     </div>
  141.     {% endif %}
  142. {% endblock %}
  143.     {% block javascripts %}
  144.         {% if not app.request.get('onlyInlineCss') %}
  145.         {{ include('Layout/includes/encore.html.twig', {
  146.             'staticDebugMode': staticDebugMode,
  147.             'file': 'js/convention'
  148.         }) }}
  149.         {% endif %}
  150.     {% endblock %}