templates/base.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 http-equiv="x-ua-compatible" content="ie=edge">
  6.         <title>
  7.             {% block title %}Get to hikes
  8.             {% endblock %}
  9.         </title>
  10.         <link rel="icon" type="image/png" href="{{ absolute_url( asset('build/images/icons/favicon.png') ) }}"/> 
  11.         {% block head %}{% endblock %}
  12.         <meta name="description" content="{% block meta_description %}{% endblock %}">
  13.         <meta name="keywords" content="{% block meta_keywords %}{% endblock %}">
  14.         <meta name="viewport" content="width=device-width, initial-scale=1">
  15.         <meta name="robots" content="{% block meta_nofollow %}index, follow{% endblock %}"/>
  16.         {% block stylesheets %}
  17.             {{ encore_entry_link_tags('app') }}
  18.         {% endblock %}
  19.                  <!-- Google Tag Manager -->
  20.                     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  21.                     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  22.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  23.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  24.                     })(window,document,'script','dataLayer','GTM-K245GBKF');</script>
  25.                     <!-- End Google Tag Manager -->
  26.         <script>window.dataLayer = window.dataLayer || [];</script>
  27.                 <script src="https://consent-eu.cookiefirst.com/sites/gettohikes.com-28f2025e-6402-42b0-88dd-12daf4a4f64c/consent.js"></script>
  28.     </head>
  29.     <body>
  30.         <!-- Google Tag Manager (noscript) -->
  31.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K245GBKF"
  32.         height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  33.         <!-- End Google Tag Manager (noscript) -->
  34.         {% block header %}{% endblock %}
  35.         <div class="main"> {% block body %}{% endblock %}
  36.             </div>
  37.             {% block footer %}{% endblock %}
  38.             {% block javascripts %}                 
  39.                  <script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous" defer></script>
  40.                  <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC_wnmYjsJntUztVgSskMHIzVLL1iFuZBY"></script>
  41.                  
  42.                 {{ encore_entry_script_tags('app') }}
  43.                 {{ encore_entry_script_tags('script') }}
  44.                 
  45.                 {% if form.captcha is defined %}
  46.                 <script type="text/javascript">
  47.                 function onGoogleReCaptchaApiLoad() {
  48.                 var widgets = document.querySelectorAll('[data-toggle="recaptcha"]');
  49.                 for (var i = 0; i < widgets.length; i++) {
  50.                 renderReCaptcha(widgets[i]);
  51.                 }
  52.                 }
  53.                 function renderReCaptcha(widget) {
  54.                 var form = widget.closest('form');
  55.                 var widgetType = widget.getAttribute('data-type');
  56.                 var widgetParameters = {
  57.                 'sitekey': '{{ gg_recaptcha_site_key }}'
  58.                 };
  59.                 if (widgetType == 'invisible') {
  60.                 widgetParameters['callback'] = function () {
  61.                 form.submit()
  62.                 };
  63.                 widgetParameters['size'] = "invisible";
  64.                 }
  65.                 var widgetId = grecaptcha.render(widget, widgetParameters);
  66.                 if (widgetType == 'invisible') {
  67.                 bindChallengeToSubmitButtons(form, widgetId);
  68.                 }
  69.                 }
  70.                 </script>
  71.                 <script type="text/javascript" src="https://www.google.com/recaptcha/api.js?onload=onGoogleReCaptchaApiLoad&render=explicit&hl={{app.request.locale}}" async defer></script>
  72.                 {% endif %}
  73.             {% endblock %}
  74.         </body>
  75.     </html>