templates/facility/overview.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/default.html.twig' %}
  2. {% do pimcore_placeholder('main-tag-class').set('main--no-hero--small') %}
  3. {% do pimcore_placeholder('newsletter-info-class').set('content-block') %}
  4. {% block header %}
  5.     {% set isFixed = true %}
  6.     {{ parent() }}
  7. {% endblock %}
  8. {% block content %}
  9.     {{ pimcore_placeholder('jsFile').set('js/facilities') }}
  10.     {{ include('includes/intro-blocks/live-intro-block.html.twig', with_context = false) }}
  11.     {% embed 'includes/editmode-box.html.twig' %}
  12.         {% block editmodeSettings %}
  13.             {{ pimcore_relations('resorts', {
  14.                 'types' : [ 'object' ],
  15.                 'subtypes' : { 'object' : [ 'object' ] },
  16.                 'class': 'Resort',
  17.                 'title': 'Resort Objects for Tabbing (if empty all will be used)'
  18.             }) }}<br>
  19.             <b>Connection by foot</b>: {{ pimcore_relation('connectionByFoot', {
  20.                 'types' : [ 'object' ],
  21.                 'subtypes' : { 'object' : [ 'object' ] },
  22.                 'class': 'Connection'
  23.             }) }}
  24.             <b>Connection by ski</b>: {{ pimcore_relation('connectionBySki', {
  25.                 'types' : [ 'object' ],
  26.                 'subtypes' : { 'object' : [ 'object' ] },
  27.                 'class': 'Connection',
  28.             }) }}
  29.         {% endblock %}
  30.     {% endembed %}
  31.     {{ include('facility/partials/facilities-overview.html.twig', {
  32.         'facilitiesCount': facilitiesCount|default([]),
  33.         'connectionByFootIsOpen': pimcore_relation('connectionByFoot').element ? facilityIsOpen(pimcore_relation('connectionByFoot').element) : null,
  34.         'connectionBySkiIsOpen': pimcore_relation('connectionBySki').element ? facilityIsOpen(pimcore_relation('connectionBySki').element) : null,
  35.     }, with_context = false) }}
  36.     {{ include('facility/partials/facilities-tabbing.html.twig', {
  37.         'tabs': tabs|default([])
  38.     }, with_context = false) }}
  39.     {{ pimcore_area('product-teaser-row', {
  40.         'type' : 'portal-product-teaser-row',
  41.         'params': { 'portal-product-teaser-row': { 'className': 'content-block container', 'isMain': true } }
  42.     }) }}
  43. {% endblock %}