templates/content/section.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% block content %}
  3.     <main>
  4.         <div class="pullc">
  5.             <div class="container-xl">
  6.                 <div class="row">
  7.                     <div class="col-lg-3 leftpull section-pillar d-none d-lg-block">
  8.                         <div class="section-title px-3 px-lg-3 ps-lg-0 d-flex flex-column">
  9.                         {% if section_title %}
  10.                             <h1 class="mb-lg-5 pe-lg-4 mt-5 text-lg-end">{{ section_title }}
  11.                             </h1>
  12.                             {% endif %}
  13.                         </div>
  14.                         {% if not document.getProperty('hide_subnav') and not editmode %}
  15.                             {% if document.children %}
  16.                                 <div class="d-flex justify-content-end">
  17.                                     <ul class="sidenav list-unstyled justify-content-end align-self-end">
  18.                                         {% set nav = pimcore_build_nav({root: document}) %}
  19.                                         {% for page in nav %}
  20.                                             {% if page.visible %}
  21.                                                 <li>
  22.                                                     <a class="{{page.class}}" href="{{ page.getHref() }}">{{ page.getLabel() }}</a>
  23.                                                 </li>
  24.                                             {% endif %}
  25.                                         {% endfor %}
  26.                                     </ul>
  27.                                 </div>
  28.                             {% endif %}
  29.                         {% endif %}
  30.                         {% if document.getProperty('pillar_background') %}
  31.                             {% if document.getProperty('pillar_background').getMetadata('Credit') %}
  32.                                 <div class="pillar-credit">
  33.                                     Image:
  34.                                     {{ document.getProperty('pillar_background').getMetadata('Credit') }}
  35.                                 </div>
  36.                             {% endif %}
  37.                         {% endif %}
  38.                     </div>
  39.                     <div class="col-lg-9 ps-lg-5 pe-lg-5 pb-4">
  40.                         {% if showBreadcrumbs %}
  41.                             {% set mainNavStartNode = document.getProperty('navigation_root') %}
  42.                             {% if mainNavStartNode is empty %}
  43.                                 {% set mainNavStartNode = pimcore_document(1) %}
  44.                             {% endif %}
  45.                             {% set breadbrumbs = pimcore_build_nav({
  46.                                     active: document,
  47.                                     root: mainNavStartNode
  48.                                 }) %}
  49.                             {% do app_navigation_enrich_breadcrumbs(breadbrumbs) %}
  50.                             {% do pimcore_nav_renderer('breadcrumbs').setMinDepth(null) %}
  51.                             <div class="breadcrumbs mt-3">
  52.                                 <a href="/">Home</a>
  53.                                 /
  54.                                 {{ pimcore_render_nav(breadbrumbs, 'breadcrumbs')|replace({'&gt;':' / '})|raw }}
  55.                             </div>
  56.                         {% endif %}
  57.                         <h1 class="mt-3 mt-lg-5">{{ pimcore_input("headline", {"placeholder":"Headline", "width": 600}) }}</h1>
  58.                         <div class="content-body">
  59.                             {% for i in pimcore_iterate_block(pimcore_block('contentblock')) %}
  60.                                 {{ pimcore_wysiwyg('content') }}
  61.                             {% endfor %}
  62.                             {{ pimcore_areablock("main_content", {
  63.                            "allowed": ["image","video","wysiwyg","map", "staff", "text-accordion", "project-graphic"],
  64.                               "sorting": ["wysiwyg","video","image","map", "staff", "text-accordion", "project-graphic"],
  65.                             }) }}
  66.                         </div>
  67.                     </div>
  68.                     {% if not document.getProperty('hide_subnav') and document.getProperty('subnav_doc') and not editmode %}
  69.                         <div class=".d-block d-lg-none mt-3">
  70.                             <hr>
  71.                             <h3>{{ section_title }}</h3>
  72.                         {{ pimcore_render_nav(nav, 'menu', 'renderMenu', {
  73.             maxDepth: 2,
  74.             ulClass: {
  75.                 0: 'bottomnav list-unstyled',
  76.                  1: 'list-unstyled subnav',
  77.                  2: 'list-unstyled subnav',
  78.             },
  79.             expandSiblingNodesOfActiveBranch: true
  80.         }) | replace({'pimcore-navigation-renderer-menu': "mobilemenu"}) | raw}}
  81.                         </div>
  82.                     {% endif %}
  83.                 </div>
  84.             </div>
  85.         </div>
  86.     </main>
  87. {% endblock %}