templates/Convention/conventionIncentiveDetail.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(incentive) %}
  7.     {% do elements_canonical(detailUrl) %}
  8.     {% do elements_opengraph().setDescription(incentive.shortDescription ?: incentive.description) %}
  9.     {% if incentive.teaserimage %}
  10.         {% do elements_opengraph().addImage(incentive.teaserimage) %}
  11.     {% endif %}
  12.     {% do elements_head_title().setTitle(incentive.name, true) %}
  13.     {% do elements_head_meta().setDescription((incentive.shortDescription ?: incentive.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': incentive.headerImage}) }}
  18.     {% do pimcore_placeholder('addBreadcrumb').set({
  19.         'parentId' : document.getId(),
  20.         'url' : app.request.pathInfo,
  21.         'label' : incentive.name
  22.     }) %}
  23.     {{ include('Navigation/breadcrumb.html.twig') }}
  24.     {{ include('Includes/main-title-block-with-contact.html.twig', {
  25.         title : incentive.name,
  26.         subtitle: incentive.shortdescription,
  27.         contactBox: null,
  28.         useContactBoxVariables: not incentive.contactName is empty ,
  29.         contactBoxImage: incentive.logo,
  30.         contactBoxName: incentive.contactName,
  31.         contactBoxFirstname: incentive.firstname,
  32.         contactBoxLastname: incentive.lastname,
  33.         contactBoxStreet: incentive.street,
  34.         contactBoxZip: incentive.zip,
  35.         contactBoxCity: incentive.city,
  36.         contactBoxPhone: incentive.telefone,
  37.         contactBoxFax: incentive.fax,
  38.         contactBoxEmail: incentive.email,
  39.         contactBoxWebsite: incentive.website,
  40.     }) }}
  41.     {% if not incentive.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: incentive.description,
  47.         }) }}
  48.     {% endif %}
  49.     {{ include('Includes/gallery-area.html.twig', {
  50.         title: 'incentive-detail.gallery title'|trans,
  51.         subtitle: 'incentive-detail.gallery subtitle'|trans,
  52.         wysiwyg: '<p>Dies ist ein TEst</p>',
  53.         styleModifier: 'content-block js-fade-in',
  54.         images: incentive.gallery,
  55.     }) }}
  56.     {{ include('Includes/simple-map.html.twig', {
  57.         title: 'incentive-detail.map title'|trans,
  58.         subtitle: 'incentive-detail.map subtitle'|trans,
  59.         street: incentive.street,
  60.         zip: incentive.zip,
  61.         city: incentive.city,
  62.         geoposition: incentive.geoposition
  63.     }) }}
  64.     {{ include('Convention/Includes/request-partner-form.html.twig', {
  65.         id: incentive.id,
  66.         subtitle: 'incentive-detail.incentive form subtitle'|trans,
  67.         title: 'incentive-detail.incentive form title'|trans,
  68.     }) }}
  69.     {% if not partnerTeaser is empty %}
  70.         {{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
  71.             styleModifier: 'content-block container',
  72.             title: 'incentive-detail.Convention Partners in der Nähe'|trans,
  73.             subtitle: 'incentive-detail.Convention Partners in der Nähe subtitle'|trans,
  74.             wysiwyg: 'incentive-detail.Convention Partners in der Nähe text'|trans,
  75.             items: partnerTeaser|default([]),
  76.             textSnippet: {
  77.                 isSmall: true,
  78.                 hasImage: false,
  79.                 text: 'incentive-detail.Weitere Hotels in der Nähe entdecken'|trans,
  80.                 button: {
  81.                     href: document.property('siteConfig').conventionPartnersOverview.fullPath|default(''),
  82.                     text: "incentive-detail.Mehr anzeigen"|trans
  83.                 },
  84.                 color: "default"
  85.             }
  86.         }) }}
  87.     {% endif %}
  88. {% endblock %}
  89.     {% block javascripts %}
  90.         {% if not app.request.get('onlyInlineCss') %}
  91.         {{ include('Layout/includes/encore.html.twig', {
  92.             'staticDebugMode': staticDebugMode,
  93.             'file': 'js/convention'
  94.         }) }}
  95.         {% endif %}
  96.     {% endblock %}