templates/Content/portal.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block mainContainerStyling %}js-content-visibility content-visibility--auto{% endblock %}
  3. {% do jsConfig().add('contentVisibility', true) %}
  4. {% block content %}
  5.     {{ include('Content/includes/portal-hero.html.twig', {
  6.         styleModifier: pimcore_checkbox('disable-img-text-slide').checked ? 'content-block' : ''
  7.     }) }}
  8.     {# moveUp to transform img-text-slide into hero -> should only be activated if positioned under hero-full-height  #}
  9.     {% embed 'Includes/editmode-settings.html.twig' %}
  10.         {% block additionalInfo %}
  11.             <div>
  12.                 <label>
  13.                     Disable Img Text Slide
  14.                     {{ pimcore_checkbox('disable-img-text-slide', {reload: true}) }}
  15.                 </label>
  16.             </div>
  17.         {% endblock %}
  18.     {% endembed %}
  19.     {% if not pimcore_checkbox('disable-img-text-slide').checked %}
  20.         {{ pimcore_area('img-text-slide', {
  21.             'type': 'media-img-text-slide',
  22.             'params': {
  23.                 'media-img-text-slide': {
  24.                     'moveUp': not editmode
  25.                 }
  26.             }
  27.         }) }}
  28.     {% endif %}
  29.     {{ include('Includes/areablock.html.twig', {
  30.         'allowed': [
  31.             'media-img-text-slide',
  32.             'teaser-img-slider',
  33.             'teaser-experience-slider',
  34.             'teaser-offer',
  35.             'teaser-grid',
  36.             'content-social-embed'
  37.         ]
  38.     }) }}
  39. {% endblock %}
  40. {% block javascripts %}
  41.     {% if not app.request.get('onlyInlineCss') %}
  42.         {{ include('Layout/includes/encore.html.twig', {
  43.             'staticDebugMode': staticDebugMode,
  44.             'file': 'js/portal'
  45.         }) }}
  46.     {% endif %}
  47. {% endblock %}