templates/content/section.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
    {% block content %}
        <main>
            <div class="pullc">
    
                <div class="container-xl">
    
    
                    <div class="row">
                        <div class="col-lg-3 leftpull section-pillar d-none d-lg-block">
    
                            <div class="section-title px-3 px-lg-3 ps-lg-0 d-flex flex-column">
                            {% if section_title %}
                                <h1 class="mb-lg-5 pe-lg-4 mt-5 text-lg-end">{{ section_title }}
                                </h1>
                                {% endif %}
    
                            </div>
                            {% if not document.getProperty('hide_subnav') and not editmode %}
                                {% if document.children %}
                                    <div class="d-flex justify-content-end">
                                        <ul class="sidenav list-unstyled justify-content-end align-self-end">
                                            {% set nav = pimcore_build_nav({root: document}) %}
    
                                            {% for page in nav %}
                                                {% if page.visible %}
                                                    <li>
                                                        <a class="{{page.class}}" href="{{ page.getHref() }}">{{ page.getLabel() }}</a>
    
                                                    </li>
                                                {% endif %}
                                            {% endfor %}
                                        </ul>
                                    </div>
                                {% endif %}
                            {% endif %}
    
                            {% if document.getProperty('pillar_background') %}
                                {% if document.getProperty('pillar_background').getMetadata('Credit') %}
                                    <div class="pillar-credit">
                                        Image:
                                        {{ document.getProperty('pillar_background').getMetadata('Credit') }}
                                    </div>
                                {% endif %}
                            {% endif %}
    
                        </div>
                        <div class="col-lg-9 ps-lg-5 pe-lg-5 pb-4">
                            {% if showBreadcrumbs %}
                                {% set mainNavStartNode = document.getProperty('navigation_root') %}
                                {% if mainNavStartNode is empty %}
                                    {% set mainNavStartNode = pimcore_document(1) %}
                                {% endif %}
    
                                {% set breadbrumbs = pimcore_build_nav({
                                        active: document,
                                        root: mainNavStartNode
                                    }) %}
                                {% do app_navigation_enrich_breadcrumbs(breadbrumbs) %}
                                {% do pimcore_nav_renderer('breadcrumbs').setMinDepth(null) %}
    
                                <div class="breadcrumbs mt-3">
                                    <a href="/">Home</a>
                                    /
                                    {{ pimcore_render_nav(breadbrumbs, 'breadcrumbs')|replace({'&gt;':' / '})|raw }}
                                </div>
    
                            {% endif %}
    
    
                            <h1 class="mt-3 mt-lg-5">{{ pimcore_input("headline", {"placeholder":"Headline", "width": 600}) }}</h1>
                            <div class="content-body">
                                {% for i in pimcore_iterate_block(pimcore_block('contentblock')) %}
    
                                    {{ pimcore_wysiwyg('content') }}
                                {% endfor %}
    
                                {{ pimcore_areablock("main_content", {
                               "allowed": ["image","video","wysiwyg","map", "staff", "text-accordion", "project-graphic"],
                                  "sorting": ["wysiwyg","video","image","map", "staff", "text-accordion", "project-graphic"],
                                }) }}
                            </div>
                        </div>
    
                        {% if not document.getProperty('hide_subnav') and document.getProperty('subnav_doc') and not editmode %}
    
                            <div class=".d-block d-lg-none mt-3">
                                <hr>
    
                                <h3>{{ section_title }}</h3>
                            {{ pimcore_render_nav(nav, 'menu', 'renderMenu', {
                maxDepth: 2,
    
                ulClass: {
                    0: 'bottomnav list-unstyled',
                     1: 'list-unstyled subnav',
                     2: 'list-unstyled subnav',
                },
                expandSiblingNodesOfActiveBranch: true
            }) | replace({'pimcore-navigation-renderer-menu': "mobilemenu"}) | raw}}
                            </div>
    
                        {% endif %}
    
    
                    </div>
                </div>
    
            </div>
        </main>
    {% endblock %}