templates/Bus/detail.html.twig line 139

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block content %}
  3.     {% set detailUrl = linkGenerator().generate(busTravel) %}
  4.     {% do elements_canonical(detailUrl) %}
  5.     {% do elements_opengraph().setDescription(busTravel.shortDescription ?: busTravel.description) %}
  6.     {% if busTravel.teaserimage %}
  7.         {% do elements_opengraph().addImage(busTravel.teaserimage) %}
  8.     {% endif %}
  9.     {% do elements_head_title().setTitle(busTravel.title, true) %}
  10.     {% do elements_head_meta().setDescription(chooseDescription(busTravel.shortDescription, busTravel.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': busTravel.headerImage}) }}
  15.     {% do pimcore_placeholder('addBreadcrumb').set({
  16.         'parentId' : document.getId(),
  17.         'url' : app.request.pathInfo,
  18.         'label' : busTravel.title
  19.     }) %}
  20.     {{ include('Navigation/breadcrumb.html.twig') }}
  21.     {{ include('Includes/main-title-block-with-contact.html.twig', {
  22.         title : busTravel.title,
  23.         subtitle: busTravel.shortdescription,
  24.         contactBox: null,
  25.         useContactBoxVariables: true,
  26.         contactBoxImage: busTravel.logo,
  27.         contactBoxName: busTravel.contactName,
  28.         contactBoxFirstname: busTravel.firstname,
  29.         contactBoxLastname: busTravel.lastname,
  30.         contactBoxStreet: busTravel.street,
  31.         contactBoxZip: busTravel.zip,
  32.         contactBoxCity: busTravel.city,
  33.         contactBoxPhone: busTravel.telefone,
  34.         contactBoxFax: busTravel.fax,
  35.         contactBoxEmail: busTravel.email,
  36.         contactBoxWebsite: busTravel.website,
  37.     }) }}
  38.     {% if not busTravel.longDescription is empty %}
  39.         {{ include('Includes/wysiwyg-area.html.twig', {
  40.             title: ('bustravel-detail-' ~ busTravel.busType ~ '.wysiwyg area title')|trans,
  41.             subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.wysiwyg area subtitle')|trans,
  42.             isTitleCentered: true,
  43.             hasContactForm: false,
  44.             styleModifier: 'content-block js-fade-in',
  45.             content: busTravel.longDescription ~ (busTravel.additionalDescription ?  busTravel.additionalDescription : ''),
  46.         }) }}
  47.     {% endif %}
  48.     {{ include('Includes/gallery-area.html.twig', {
  49.         title: ('bustravel-detail-' ~ busTravel.busType ~ '.gallery title')|trans,
  50.         subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.gallery subtitle')|trans,
  51.         wysiwyg: '',
  52.         styleModifier: 'content-block js-fade-in',
  53.         images: busTravel.gallery,
  54.     }) }}
  55.     {{ include('Includes/simple-map.html.twig', {
  56.         title: ('bustravel-detail-' ~ busTravel.busType ~ '.map title')|trans,
  57.         subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.map subtitle')|trans,
  58.         street: busTravel.street,
  59.         zip: busTravel.zip,
  60.         city: busTravel.city,
  61.         geoposition: busTravel.map
  62.     }) }}
  63.     {% if busTravel.busType == 'accommodation' %}
  64.         {# show excursion destinations #}
  65.         {{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
  66.             'styleModifier': 'content-block container',
  67.             title: 'bustravel-detail.Ausflugsziele in der Nähe'|trans,
  68.             subtitle: 'bustravel-detail.Ausflugsziele in der Nähe subtitle'|trans,
  69.             wysiwyg: 'bustravel-detail.Ausflugsziele in der Nähe text'|trans,
  70.             items: getBusTravelRecommendation(busTravel),
  71.             textSnippet: {
  72.                 text: 'bustravel-detail.Weitere Ausflugsziele in der Nähe entdecken'|trans,
  73.                 button: {
  74.                     "href": document.property('siteConfig').busTravelOverviewExcursionDestination().fullPath|default(''),
  75.                     "text": "bustravel-detail.Mehr anzeigen"|trans
  76.                 },
  77.             }
  78.         }) }}
  79.     {% else %}
  80.         {# show accommodations #}
  81.         {{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
  82.             'styleModifier': 'content-block container',
  83.             title: 'bustravel-detail.Unterkünfte in der Nähe'|trans,
  84.             subtitle: 'bustravel-detail.Unterkünfte in der Nähe subtitle'|trans,
  85.             wysiwyg: 'bustravel-detail.Unterkünfte in der Nähe text'|trans,
  86.             items: getBusTravelRecommendation(busTravel),
  87.             textSnippet: {
  88.                 text: 'bustravel-detail.Weitere Unterkünfte in der Nähe entdecken'|trans,
  89.                 button: {
  90.                     "href": document.property('siteConfig').getBusTravelOverviewAccommodations().fullPath|default(''),
  91.                     "text": "bustravel-detail.Mehr anzeigen"|trans
  92.                 },
  93.             }
  94.         }) }}
  95.     {% endif %}
  96.     {% if not busTravel.downloads is empty %}
  97.         {{ include('Includes/download.html.twig', {
  98.             title: 'bustravel-detail.download title'|trans,
  99.             subtitle: 'bustravel-detail.download subtitle'|trans,
  100.             wysiwyg:'bustravel-detail.download wysiwyg'|trans,
  101.             downloads: busTravel.downloads|default([]),
  102.             styleModifier: 'content-block',
  103.             }) }}
  104.     {% endif %}
  105.     {% if weatherStation|default(null) %}
  106.         {{ include('Includes/weather-slide.html.twig', {
  107.             weatherStation: weatherStation
  108.         }) }}
  109.     {% endif %}
  110.     {% if busTravel.video1 %}
  111.         {{ include('Includes/video-area.html.twig', {
  112.             title: 'bustravel-detail.video area title'|trans,
  113.             subtitle: 'bustravel-detail.video area subtitle'|trans,
  114.             video: busTravel.video1,
  115.         }) }}
  116.     {% endif %}
  117.     {% if videos|default([]) %}
  118.         {{ include('Includes/video-teaser-area.html.twig', {
  119.             title: 'bustravel-detail.video area row title'|trans,
  120.             subtitle: 'bustravel-detail.video area row subtitle'|trans,
  121.             wysiwyg: 'bustravel-detail.video area row wysiwyg'|trans,
  122.             videos: videos|default([]),
  123.         }) }}
  124.     {% endif %}
  125.     {% set busLinks = getBusLinks(busTravel) %}
  126.     {% if not busLinks is empty %}
  127.         {{ include('Includes/link-list.html.twig', {
  128.             links: busLinks,
  129.         }) }}
  130.     {% endif %}
  131.     {% if not packages|default([]) is empty %}
  132.         {{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
  133.             styleModifier: 'content-block container',
  134.             title: 'bustravel-detail.Packages in der Nähe'|trans,
  135.             subtitle: 'bustravel-detail.Packages in der Nähe subtitle'|trans,
  136.             wysiwyg: 'bustravel-detail.Packages in der Nähe text'|trans,
  137.             items: packages,
  138.             textSnippet: {
  139.                 isSmall: true,
  140.                 hasImage: false,
  141.                 text: 'bustravel-detail.Weitere Packages'|trans,
  142.                 button: {
  143.                     href: '',
  144.                     text: "bustravel-detail.Mehr anzeigen"|trans
  145.                 },
  146.                 color: "default"
  147.             }
  148.         }) }}
  149.     {% endif %}
  150. {% endblock %}