templates/layout/default.html.twig line 109

Open in your IDE?
  1. <!DOCTYPE html>
  2. {% set currentDocument = app.request.get('contentDocument') %}
  3. {% set language = app.request.locale | slice(0, 2) %}
  4. {% set UAKey =  pimcore_website_config('UAKey', 'UA-9448822-1') %}
  5. {% set GTMKey =  pimcore_website_config('GTMKey', 'GTM-W3ZCDKL8') %}
  6. <html lang="en">
  7. <head>
  8.     <meta charset="utf-8">
  9.     <!-- Cookiebot Script -->
  10.     <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="16bb5d9f-9b9a-49f5-ad29-fbf0a3f899e1" data-blockingmode="manual" type="text/javascript"></script>
  11.     <!-- Google Tag Manager -->
  12.     <script data-cookieconsent="ignore">
  13.         (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  14.                 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  15.             j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  16.             'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  17.         })(window,document,'script','dataLayer','{{ GTMKey }}');
  18.     </script>
  19.     <!-- End Google Tag Manager -->
  20.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  21.     <meta name="viewport" content="width=device-width, initial-scale=1">
  22.     <link rel="icon" href="{{ asset('static/images/icons/favicon.png') }}" type="image/png">
  23.     <link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap&family=Lato:ital,wght@1,300;1,400;1,700&display=swap" rel="stylesheet">
  24.     <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
  25.     <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css"/>
  26.     <!-- Temporaly, should be removed, issues with fancybox--> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
  27.     <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
  28.     {% block headScript %}
  29.     {% endblock %}
  30.     {% block metaTags %}
  31.         {% if document is defined and document %}
  32.             <meta name="description" content="{{ document.getDescription() }}">
  33.             <title>{{ document.getTitle() }}</title>
  34.         {% else %}
  35.             <title>Stoelting</title>
  36.         {% endif %}
  37.     {% endblock %}
  38.     {% block headScriptBlock %}
  39.         {% apply spaceless -%}
  40.             {# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
  41.             {# we use the view helper to have cache buster functionality #}
  42.             {% do pimcore_head_link().appendStylesheet(asset('static/css/bootstrap.css')) %}
  43.             {% do pimcore_head_link().appendStylesheet(asset('static/css/Stoelting.css')) %}
  44.             {% if editmode is defined and editmode %}
  45.                 {% do pimcore_head_link().appendStylesheet(asset('static/css/AdminMode.css')) %}
  46.             {% endif %}
  47.             {% do pimcore_head_script().appendFile(asset('static/js/bootstrap.js')) %}
  48.             {% do pimcore_head_script().appendFile(asset('static/js/Stoelting.js')) %}
  49.         {%- endapply %}
  50.         {# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
  51.         {# {% block layout_head_meta deferred %}
  52.             {% include "Default/metaTags.html.twig" %}
  53.         {% endblock %} #}
  54.         {% block head_stylesheets %}
  55.             {{ pimcore_head_link() }}
  56.         {% endblock %}
  57.     {% endblock %}
  58. </head>
  59. <body>
  60.     {% if document is defined and document %}
  61.         {% if document.getProperty('tabletNavigation') %}
  62.             {{ pimcore_inc(document.getProperty('tabletNavigation').getFullPath()) }}
  63.         {% endif %}
  64.     {% endif %}
  65.     <div class="body-content">
  66.         <header>
  67.             {% block header %}
  68.                 {% if document is defined and document %}
  69.                     {% if document.getProperty('header') %}
  70.                         {{ pimcore_inc(document.getProperty('header').getFullPath()) }}
  71.                     {% endif %}
  72.                 {% endif %}
  73.             {% endblock %}
  74.         </header>
  75.         {# Flash messages #}
  76.         {% for message in app.flashes('info') %}
  77.             {% include 'Components/info-message.html.twig' with { 'message': message } %}
  78.         {% endfor %}
  79.         {% for message in app.flashes('success') %}
  80.             {% include 'Components/success-message.html.twig' with { 'message': message } %}
  81.         {% endfor %}
  82.         {% for message in app.flashes('error') %}
  83.             {% include 'Components/error-message.html.twig' with { 'message': message } %}
  84.         {% endfor %}
  85.         {% block contentBlock %}
  86.         {% endblock %}
  87.         {% block beforeScripts %}
  88.         {% endblock %}
  89.         {% block scripts %}
  90.             {{ pimcore_head_script() }}
  91.         {% endblock %}
  92.         {% block footer %}
  93.             {% if document is defined and document %}
  94.                 {% if document.getProperty('footer') %}
  95.                     {{ pimcore_inc(document.getProperty('footer').getFullPath()) }}
  96.                 {% endif %}
  97.             {% endif %}
  98.         {% endblock %}
  99.     </div>
  100.     <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script>
  101.     {% block afterScripts %}
  102.     {% endblock %}
  103. </body>
  104. </html>