templates/app/layout.html.twig line 22

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ page.lang ?? app.request.locale }}">
  3.     <head>
  4.         <title>{{ page.title ?? pimcore_website_config('sitename', "") }}</title>
  5.         <meta charset="UTF-8">
  6.         {# TODO use DefaultFrontendController::getRobots()? #}
  7.         <meta name="robots" content="index, follow">
  8.         <meta name="description" content="{{ page.meta.description ?? null }}">
  9.         <meta property="og:title" content="{{ page.og.title ?? null }}">
  10.         <meta property="og:type" content="{{ page.og.type ?? null }}">
  11.         <meta property="og:url" content="{{ (page.og.url ?? null) | trimUrl }}">
  12.         {% if page.og.image is not null %}
  13.             <meta property="og:image" content="{{ page.og.image ?? null }}">
  14.         {% endif %}
  15.         <meta property="og:description" content="{{ page.og.description ?? null }}">
  16.         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  17.         <!-- pimcore_head_meta() -->
  18.         {{ pimcore_head_meta() }}
  19.         {% include "app/partials/_canonicals.html.twig" %}
  20.         <!-- pimcore_head_link() -->
  21.         {{ pimcore_head_link() }}
  22.         <!-- fonts -->
  23.         <link rel="stylesheet" href="https://use.typekit.net/mva2dpr.css">
  24.         <!-- favicon -->
  25.         <link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">
  26.         <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon/favicon-32x32.png">
  27.         <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon/favicon-16x16.png">
  28.         <link rel="manifest" href="/static/favicon/site.webmanifest">
  29.         <link rel="mask-icon" href="/static/favicon/safari-pinned-tab.svg" color="#0072bb">
  30.         <link rel="shortcut icon" href="/static/favicon/favicon.ico">
  31.         <meta name="msapplication-TileColor" content="#0072bb">
  32.         <meta name="msapplication-config" content="/static/favicon/browserconfig.xml">
  33.         <meta name="theme-color" content="#ffffff">
  34.         <!-- vite() -->
  35.         {% apply spaceless %}
  36.             {% if editmode %}
  37.                 {{ vite('app.js', true)|raw }}
  38.             {% else %}
  39.                 {{ vite('app.js')|raw }}
  40.             {% endif %}
  41.         {% endapply %}
  42.         <!-- pimcore_head_style() -->
  43.         {{ pimcore_head_style() }}
  44.         {# Using below pimcore_inline_script() instead of: {{ pimcore_head_script() }} #}
  45.         <!-- Google Tag Manager -->
  46.         <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://load.sst.coolworld-rentals.com/cihjtqut.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WP86GP6');</script>
  47.         <!-- End Google Tag Manager -->
  48.         <script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_v3_site_key }}"></script>
  49.     </head>
  50.     {# Pimcore needs the body tag to be defined in one whole line, see GoogleTagManagerListener::onKernelResponse() #}
  51.     {# Also it needs the closing character '>', so we can't add the Alpine scripts because they use '>' in the compare statement. #}
  52.     <body class="font-sans antialiased text-gray-900">
  53.         <!-- Google Tag Manager (noscript) -->
  54.         <noscript><iframe src="https://load.sst.coolworld-rentals.com/ns.html?id=GTM-WP86GP6"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  55.         <!-- End Google Tag Manager (noscript) -->
  56.         <div
  57.             x-data="{
  58.                 mobileMenuOpen: false,
  59.                 scrollState: false,
  60.                 visibleSection: false,
  61.                 clickToSection: false
  62.             }"
  63.             @scroll.window="
  64.                 scrollOffset = window.innerWidth < 1024 ? 0 : 62;
  65.                 scrollState = window.pageYOffset > scrollOffset;
  66.             "
  67.             x-on:mousewheel="clickToSection = false;"
  68.         >
  69.             {% include "app/header.html.twig" %}
  70.             <div class="container-fluid">
  71.                 {{ block('content') }}
  72.             </div>
  73.             <footer>
  74.                 {# include a document-snippet - in this case the footer document #}
  75.                 {{ pimcore_inc(document.getProperty('footerSnippet')) }}
  76.             </footer>
  77.         </div>
  78.         <!-- pimcore_inline_script() -->
  79.         {{ pimcore_inline_script() }}
  80.     </body>
  81. </html>