templates/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.     <!-- Google Tag Manager -->
  7.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  8.     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  9.     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  10.     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  11.     })(window,document,'script','dataLayer','GTM-5F738HV');</script>
  12.     <!-- End Google Tag Manager -->
  13.     {% apply spaceless %}
  14.         {% if not document is defined or not document %}
  15.             {% set document = pimcore_document(1) %}
  16.         {% endif %}
  17.         {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
  18.             {# @var document \Pimcore\Model\Document\Link #}
  19.             {% set document = document.getObject() %}
  20.         {% endif %}
  21.         {% if document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  22.             {% if document.getTitle() is not empty %}
  23.                 {% do pimcore_head_title().set(document.getTitle()) %}
  24.             {% endif %}
  25.             {% if document.getDescription() is not empty %}
  26.                 {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  27.             {% endif %}
  28.             {% do pimcore_head_title().append(' Devlieger Filip') %}
  29.             {% do pimcore_head_title().setSeparator(' | ') %}
  30.         {% endif %}
  31.     {% endapply %}
  32.     {% block layout_head_meta deferred %}
  33.         {{ pimcore_head_title() }}
  34.         {{ pimcore_head_meta() }}
  35.         {% if robots_noindex %}
  36.             <meta name="robots" content="noindex, nofollow">
  37.         {% endif %}
  38.         {% if pimcore_placeholder('canonical').count() %}
  39.             <link rel="canonical" href="{{ pimcore_placeholder('canonical') }}"/>
  40.         {% endif %}
  41.         
  42.         <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png">
  43.         <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  44.         <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  45.         <link rel="manifest" href="/site.webmanifest">
  46.         <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00bdff">
  47.         <meta name="msapplication-TileColor" content="#ffffff">
  48.         <meta name="theme-color" content="#ffffff">
  49.     {% endblock %}
  50.     {% block head_stylesheets deferred %}
  51.         {% do pimcore_head_link().appendStylesheet('https://use.typekit.net/jxe3bib.css') %}
  52.         {{ pimcore_head_link() }}
  53.     {% endblock %}
  54.     {% apply spaceless %}
  55.     <style type="text/css">
  56.         .overlay, .ntr-cookies.hidden { opacity: 0; pointer-events: none; }
  57.     </style>
  58.     {% endapply %}
  59.     {% block stylesheets %}
  60.         {{ vite_entry_link_tags('app-css') }}
  61.         {{ vite_entry_link_tags('app-js') }}
  62.     {% endblock %}
  63.     
  64.     {% apply spaceless %}
  65.     {{ vite_entry_script_tags('priority-js') }}
  66.     {% endapply %}
  67. </head>
  68. <body>
  69.     <!-- Google Tag Manager (noscript) -->
  70.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5F738HV"
  71.     height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  72.     <!-- End Google Tag Manager (noscript) -->
  73.     <div id="site">
  74.         {% include 'includes/header.html.twig' %}
  75.         {{ block('content') }}
  76.         {% include 'includes/footer.html.twig' %}
  77.         {% include 'includes/ntriga-cookies.html.twig' %}
  78.         <ranking-info-modal></ranking-info-modal>
  79.     </div>
  80.     {# Site pop-up: content managed in the /{locale}/snippets/popup snippet.
  81.        Shown on every page while that snippet is published. Kept OUTSIDE #site so
  82.        Vue (mounted on #site) never compiles the editor-managed content. #}
  83.     {% if not editmode %}
  84.         {% set popup = app_get_popup_snippet(app.request.locale) %}
  85.         {% if popup %}
  86.             <div class="modal fade" id="site-popup" data-popup-key="{{ popup.modificationDate }}" tabindex="-1" aria-hidden="true">
  87.                 <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-lg">
  88.                     <div class="modal-content">
  89.                         <div class="modal-header">
  90.                             {% set popupTitle = popup.getEditable('popupTitle') %}
  91.                             {% if popupTitle is not null and popupTitle.getData() %}
  92.                                 <h2 class="modal-title">{{ popupTitle.getData() }}</h2>
  93.                             {% endif %}
  94.                             <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Sluiten"></button>
  95.                         </div>
  96.                         <div class="modal-body">
  97.                             {{ pimcore_inc(popup) }}
  98.                         </div>
  99.                     </div>
  100.                 </div>
  101.             </div>
  102.         {% endif %}
  103.     {% endif %}
  104.     <script>
  105.         window.loginPath = "{{ path('account-login') }}";
  106.     </script>
  107.     {% block javascripts %}
  108.         {% if not editmode %}
  109.         {{ vite_entry_script_tags('app-js') }}
  110.         {% endif %}
  111.     {% endblock %}
  112.     {#
  113.     {% do pimcore_inline_script().appendFile('/bundles/ntrigafront/assets/frontbundle.umd.js') %}
  114.     {% block inlinescripts deferred %}
  115.         {{ pimcore_inline_script() }}
  116.     {% endblock %}
  117.     #}
  118. </body>
  119. </html>