templates/bundles/ProviderBundle/layouts/layout.html.twig line 44

Open in your IDE?
  1. {% from '@Provider/macros/logo.html.twig' import logo %}
  2. {% from '@Provider/macros/include-svg.html.twig' import includeSvg %}
  3. {% if not document is defined or not document %}
  4.     {% set document = pimcore_document(1) %}
  5. {% endif %}
  6. {% set isFrontpage = (isFrontpage is defined ? isFrontpage : false) %}
  7. {% set showBreadcrumbs = document.getProperty('show_breadcrumbs') ? true : false %}
  8. <!doctype html>
  9. <html class="no-js" lang="{{ app.request.locale }}">
  10.     <head>
  11.         {{ include('@Provider/partials/head.html.twig') }}
  12.     </head>
  13.     <body id="page-{{ document.getId() }}" class="id-{{ document.getId() }}{% if isFrontpage %} frontpage{% else %} subpage{% endif %}" data-id="{{ document.getId() }}"{% if editmode %} data-editmode {% endif %} itemscope itemtype="http://schema.org/WebPage">
  14.         {% block toggle %}
  15.             <input type="checkbox" name="toggleMobileNav" id="toggleMobileNav" aria-hidden="true" value="1" />
  16.         {% endblock %}
  17.         {{ include('@Provider/partials/misc/schema-org-json.html.twig') }}
  18.         {{ include('@Provider/partials/accessibility-shortcuts.html.twig') }}
  19.         <div class="page-wrap">
  20.             <header class="page-header">
  21.                 {% block header %}
  22.                     <div class="page-header--top">
  23.                         {{ logo() }}
  24.                         {{ include('@Provider/partials/header/main-nav.html.twig') }}
  25.                         {{ include('@Provider/partials/header/lang-nav.html.twig') }}
  26.                     </div>
  27.                     {{ include('@Provider/partials/header/media.html.twig') }}
  28.                 {% endblock %}
  29.             </header>
  30.             {% if showBreadcrumbs %}
  31.                 {{ include('@Provider/partials/breadcrumbs.html.twig') }}
  32.             {% endif %}
  33.             <main class="main-content" id="content">
  34.                 <div class="container">
  35.                     {% block content %} {% endblock %}
  36.                 </div>
  37.             </main>
  38.             {% block footer %}
  39.                 {{ include('@Provider/partials/footer.html.twig') }}
  40.             {% endblock %}
  41.         </div>
  42.         {% block footerscripts %}
  43.         {% endblock %}
  44.     </body>
  45. </html>