templates/Content/content.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block mainContainerStyling %}
  3.     {% if pimcore_checkbox('activateNavigation').checked %}
  4.         js-affix__container js-smoothscroll
  5.     {% endif %}
  6. {% endblock %}
  7. {% block content %}
  8.     {% embed 'Includes/editmode-settings.html.twig' %}
  9.         {% block additionalInfo %}
  10.             <div>
  11.                 <label>
  12.                     {{ pimcore_checkbox('activateNavigation', {
  13.                         reload: true
  14.                     }) }} Activate Anchor Navigation
  15.                 </label>
  16.             </div>
  17.         {% endblock %}
  18.     {% endembed %}
  19.     {{ include('Content/includes/hero.html.twig') }}
  20.     {% if not editmode and pimcore_checkbox('activateNavigation').checked %}
  21.         {{ include('Includes/anchor-nav.html.twig') }}
  22.     {% endif %}
  23.     {{ include('Navigation/breadcrumb.html.twig') }}
  24.     {{ include('Includes/main-title-block-splitted-editable.html.twig') }}
  25.     {{ include('Includes/areablock.html.twig', {
  26.         params: {
  27.             globalParams: {
  28.                 anchorNav: pimcore_checkbox('activateNavigation').checked
  29.             }
  30.         },
  31.     }) }}
  32. {% endblock %}
  33. {% block javascripts %}
  34.     {% if document.property('is_press_content_page') and not app.request.get('onlyInlineCss') %}
  35.         {{ include('Layout/includes/encore.html.twig', {
  36.             'staticDebugMode': staticDebugMode,
  37.             'file': 'js/press'
  38.         }) }}
  39.     {% else %}
  40.         {{ include('Layout/includes/encore.html.twig', {
  41.             'staticDebugMode': staticDebugMode,
  42.             'file': 'js/content'
  43.         }) }}
  44.     {% endif %}
  45. {% endblock %}