templates/content/datacitation.frontpage.html.twig line 11

Open in your IDE?
  1. {% extends 'layouts/datacitation.layout.html.twig' %}
  2. {% block content %}
  3.     <main class="pullc">
  4.         <div class="container-xl">
  5.             <div class="row">
  6.                 <div class="col-lg-3 leftpull section-pillar d-none d-lg-block">
  7.                     <div class="section-title px-3 px-lg-3 ps-lg-0 d-flex flex-column">
  8.                 
  9.                     {% if document.getProperty('citation_start_doc') and not editmode %}
  10.                         {% set submaxDepth = 2 %}
  11.                         {% if document.getProperty('maxdepth') == 1 %}
  12.                             {% set submaxDepth = 1 %}
  13.                         {% endif %}
  14.                         <div class="d-flex justify-content-end">
  15.                             {% set nav = pimcore_build_nav({active: document, root: document.getProperty('citation_start_doc')}) %}
  16.                             {{ pimcore_render_nav(nav, 'menu', 'renderMenu', {
  17.                                 maxDepth: submaxDepth,
  18.                                 ulClass: {
  19.                                     0: 'sidenav list-unstyled justify-content-end align-self-end',
  20.                                      1: 'list-unstyled subnav',
  21.                                      2: 'list-unstyled subnav',
  22.                                 },
  23.                                 expandSiblingNodesOfActiveBranch: true
  24.                             }) }}
  25.                         </div>
  26.                     {% endif %}    
  27.                     </div>
  28.                     {% if not document.getProperty('hide_subnav') and document.getProperty('subnav_doc') and not editmode %}
  29.                         {% set submaxDepth = 2 %}
  30.                         {% if document.getProperty('maxdepth') == 1 %}
  31.                             {% set submaxDepth = 1 %}
  32.                         {% endif %}
  33.                         <div class="d-flex justify-content-end">
  34.                             {% set nav = pimcore_build_nav({active: document, root: document.getProperty('subnav_doc')}) %}
  35.                             {{ pimcore_render_nav(nav, 'menu', 'renderMenu', {
  36.                                 maxDepth: submaxDepth,
  37.                                 ulClass: {
  38.                                     0: 'sidenav list-unstyled justify-content-end align-self-end',
  39.                                      1: 'list-unstyled subnav',
  40.                                      2: 'list-unstyled subnav',
  41.                                 },
  42.                                 expandSiblingNodesOfActiveBranch: true
  43.                             }) }}
  44.                         </div>
  45.                     {% endif %}
  46.                     {% if document.getProperty('pillar_background') %}
  47.                         {% if document.getProperty('pillar_background').getMetadata('Credit') %}
  48.                             <div class="pillar-credit">
  49.                                 Image:
  50.                                 {{ document.getProperty('pillar_background').getMetadata('Credit') }}
  51.                             </div>
  52.                         {% endif %}
  53.                     {% endif %}
  54.                 </div>
  55.                 <div class="col-lg-9 ps-lg-5 pe-lg-5 pb-4 mt-lg-4">
  56.                 
  57.                 
  58.                     <h1 class="my-3">{{ pimcore_input("headline", {"placeholder":"Headline", "width": 600}) }}</h1>
  59.                     {% if document is defined and (document.id == 1 or document.id == 50) %}
  60.                         <button onclick="ml_account('webforms', '5494673', 'r7a5s3', 'show')" class="subscribe-wt d-block mt-auto">Subscribe to the CESSDA newsletter
  61.                             <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewbox="0 0 16 16">
  62.                                 <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z"/>
  63.                             </svg>
  64.                         </button>
  65.                     {% endif %}
  66.                     <div class="content-body">
  67.                         {% for i in pimcore_iterate_block(pimcore_block('contentblock')) %}
  68.                             {{ pimcore_wysiwyg('content') }}
  69.                         {% endfor %}
  70.                         {{ pimcore_areablock("main_content", {
  71.                            "allowed": ["video","wysiwyg","resource-collection", "map", "staff", "text-accordion","organigramme"],
  72.                               "sorting": ["wysiwyg","text-accordion","video","resource-collection","map", "staff","organigramme"],
  73.                             }) }}
  74.                         
  75.                     </div>
  76.                     {% if not document.getProperty('hide_subnav') and document.getProperty('subnav_doc') and not editmode %}
  77.                         <div class="d-block d-lg-none mt-3">
  78.                             <hr>
  79.                             <h3>{{ section_title }}</h3>
  80.                             {{ pimcore_render_nav(nav, 'menu', 'renderMenu', {
  81.             maxDepth: 2,
  82.             ulClass: {
  83.                 0: 'bottomnav list-unstyled',
  84.                  1: 'list-unstyled subnav',
  85.                  2: 'list-unstyled subnav',
  86.             },
  87.             expandSiblingNodesOfActiveBranch: true
  88.         }) | replace({'pimcore-navigation-renderer-menu': "mobilemenu"}) | raw}}
  89.                         </div>
  90.                     {% endif %}
  91.                 </div>
  92.             </div>
  93.         </div>
  94.     </main>
  95. {% endblock %}