templates/page.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale|slice(0, 2) }}" class="antialiased {% if editmode %}editmode{% endif %}">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <meta content="IE=edge" http-equiv="X-UA-Compatible">
  6.         <meta content="width=device-width, initial-scale=1" name="viewport">
  7.     <link rel="shortcut icon" href="/favicon.png" type="image/png">
  8.         {% if not document is defined or not document %}
  9.             {% set document = pimcore_document(1) %}
  10.         {% endif %}
  11.         {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
  12.             {% set document = document.getObject() %}
  13.         {% endif %}
  14.     {% block title %}
  15.       {% if document.getTitle() is not empty %}
  16.         {% do pimcore_head_title().set(document.getTitle()) %}
  17.       {% endif %}
  18.     {% endblock %}
  19.         {% set title = pimcore_website_config('website-title', '', app.request.locale) %}
  20.         {% do pimcore_head_title().append(title) %}
  21.         {% do pimcore_head_title().setSeparator(' | ') %}
  22.     {% if document.getDescription() is not empty %}
  23.       {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  24.     {% endif %}
  25.     {{ pimcore_head_title() }}
  26.         {{ pimcore_head_meta() }}
  27.     {% block structuredData %}
  28.     {% endblock %}
  29.         {% for css in encore_entry_css_files('app') %}
  30.             {% do pimcore_head_link().appendStylesheet(css) %}
  31.         {% endfor %}
  32.     {% block css %}
  33.             {% for file in encore_entry_css_files('app') %}
  34.         <link rel="stylesheet" data-turbo-track="reload" href="{{ asset(file) }}">
  35.             {% endfor %}
  36.         {% endblock %}
  37.         {{ pimcore_head_link() }}
  38.     <link rel="stylesheet" href="https://use.typekit.net/zvy2bkj.css">
  39.         <link href="https://cookie.pro-bit.de/cookie-consent.css" type="text/css" media="screen" rel="stylesheet" />
  40.         <script src="https://cookie.pro-bit.de/cookie-consent.js" type="text/javascript"></script>
  41.         {{ pimcore_head_script() }}
  42.         {% block javascripts %}
  43.           <script src="https://sdk.abowire.com/abowire.min.js"></script>
  44.         {% for file in encore_entry_js_files('app') %}
  45.                 <script data-turbo-track="reload" src="{{ asset(file) }}" defer></script>
  46.             {% endfor %}
  47.         {% endblock %}
  48.     {% if pimcore_website_config('Google_Analytics_Key') and app.environment != 'dev' %}
  49.       <script type="text/plain" cookie-consent="tracking" cookie-type="google-analytics" defer>
  50.         {# console.log("OK -> tracking (google anlytics)"); #}
  51.         (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  52.         (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  53.         m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  54.         })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  55.         ga('create', '{{ pimcore_website_config('Google_Analytics_Key') }}', 'auto');
  56.         ga('set', 'anonymizeIp', 'true');
  57.         ga('send', 'pageview');
  58.       </script>
  59.     {% endif %}
  60. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8877488074707480"
  61.      crossorigin="anonymous"></script>
  62.     {# Browser ie11 Banner #}
  63.     <script defer>
  64.         var $buoop = {required:{e:-4,f:-3,o:-3,s:-1,c:-3},insecure:true,mobile:false,api:2020.07 };
  65.         function $buo_f(){
  66.         var e = document.createElement("script");
  67.         e.src = "//browser-update.org/update.min.js";
  68.         document.body.appendChild(e);
  69.         };
  70.         try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
  71.         catch(e){window.attachEvent("onload", $buo_f)}
  72.     </script>
  73.     {# Elfsight Integration#}
  74.   {% if app.environment != "dev" %}
  75.       <script src="https://apps.elfsight.com/p/platform.js" defer></script>
  76.   {% endif %}
  77.     </head>
  78.     <body
  79.     data-controller="nav"
  80.     data-nav-sticky-class=""
  81.     data-nav-unsticky-class=""
  82.     class="relative bg-background text-font font-body">
  83.         <div class="flex flex-col max-w-full min-h-screen md:overflow-visible sm:h-full scroll-smooth">
  84.             {# PAGE HEADER #}
  85.             <header class="contents">
  86.                 {% block topbar %}
  87.                     {% include "layout/header/topbar.html.twig" %}
  88.                 {% endblock %}
  89.                 {% block header %}
  90.                     {% include "layout/header/header.html.twig" %}
  91.                 {% endblock %}
  92.         {% block section_navigation %}
  93.                     {% include "layout/navigation/brick_navigation.html.twig" %}
  94.         {% endblock %}
  95.             </header>
  96.             {# END PAGE HEADER #}
  97.             {# PAGE CONTENT #}
  98.             <main class="{% block mainClasses %}{% endblock %} w-full flex-1 page-body">
  99.         {# {% for item in document.getEditable('team') %}
  100.           <pre>
  101.             {{ dump(item) }}
  102.           </pre>
  103.         {% endfor %} #}
  104.                 {% block content %}
  105.         {% endblock %}
  106.             </main>
  107.             {# END PAGE CONTENT #}
  108.             {# PAGE FOOTER #}
  109.             <footer class="page-footer">
  110.                 {% block footer %}
  111.                     {% include "layout/footer/footer.html.twig" %}
  112.                 {% endblock %}
  113.                 {% block bar %}
  114.                     {% include "layout/footer/bar.html.twig" %}
  115.                 {% endblock %}
  116.             </footer>
  117.             {# END PAGE FOOTER #}
  118.         </div>
  119.         {# MOBILE MENU #}
  120.         {% block offcanvasmenu %}
  121.             <div class="relative offcanvas" data-nav-target="offcanvas">
  122.                 <a class="fixed top-0 left-0 w-screen h-full opacity-75 z-1500 pointer offcanvas-background" data-action="nav#close"></a>
  123.                 <div class="fixed top-0 right-0 w-screen h-full max-w-full overflow-y-auto z-1500 bg-neutral-900 md:w-1/2 offcanvas-nav">
  124.                     <div class="flex flex-col h-full">
  125.                         {% include "layout/navigation/canvasmenu.html.twig" %}
  126.                     </div>
  127.                 </div>
  128.             </div>
  129.         {% endblock %}
  130.         {# END MOBILE MENU #}
  131.         {# SCROLL TOP BUTTON #}
  132.         {% include "component/scroll-top.html.twig" %}
  133.         {# END SCROLL TOP BUTTON #}
  134.     {# {% if app.user %}
  135.       {% set id = app.user.id %}
  136.       <div data-mercure="{{ mercure(null, { subscribe: [
  137.         'user-' ~ id,
  138.         'user-' ~ id ~ '/{channel}',
  139.       ] }) }}"></div>
  140.     {% endif %} #}
  141.     {% if app.user %}
  142.     <div data-controller="mercure"
  143.       data-mercure-hub-value="{{ mercure_hub }}"
  144.       data-mercure-topic-value="user-{{ app.user.id }}/notification">
  145.     </div>
  146.     {% endif %}
  147.     <div id="modalator" class="fixed z-1700"></div>
  148.     {% include "notification/toaster.html.twig" %}
  149.     </body>
  150.     <!-- 🐴 -->
  151. </html>