templates/index.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.getLocale() }}">
  3. <head>
  4.     <!-- Global site tag (gtag.js) - Google Analytics -->
  5.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-JRBNLP5HF6"></script>
  6.     <script>
  7.     window.dataLayer = window.dataLayer || [];
  8.     function gtag(){dataLayer.push(arguments);}
  9.     gtag('js', new Date());
  10.     gtag('config', 'G-JRBNLP5HF6');
  11.     </script>
  12.     <meta charset="UTF-8">
  13.     {% if app.request.query.get('preview') %}
  14.         <meta name="robots" content="noindex">
  15.     {% endif %}
  16.     <meta name="viewport" content="width=device-width, initial-scale=1">
  17.     <meta http-equiv="ScreenOrientation" content="autoRotate:disabled">
  18.     <title>{% block title %}SixSeven{% endblock %}</title>
  19.     <meta name="Description" content="Royal Hamilius Rooftop Restaurant - Le ‘SixSeven’ : un restaurant, deux ambiances … offrant une vue imprenable sur la capitale luxembourgeoise" />
  20.     <meta name="author" content="SixSeven">
  21.     <meta property="og:title" content="SixSeven" />
  22.     <meta property="og:type" content="website" />
  23.     <meta property="og:url" content="https://restaurantsixseven.lu/en/home" />
  24.     <meta property="og:image" content="https://restaurantsixseven.lu/build/images/6-1.a5dc1659.png" />
  25.     {% block metas %}{% endblock %}
  26.     {%  for img in img_preload %}
  27.         <link rel="preload" href="/build/images/{{  img  }}" as="image">
  28.     {%  endfor %}
  29.     <link rel="shortcut icon" type="image/png" href="{{ asset('/images/favicon.ico') }}"  sizes="any">
  30.     <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  31.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  32.     <link rel="stylesheet" href="https://use.typekit.net/qsw7vwq.css">
  33.     <link href="/css/formNewsletter.css" rel="stylesheet">
  34.     <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="d54459db-ec7a-4263-b29e-2985e2cfb264" data-blockingmode="auto" type="text/javascript"></script>
  35.    <!-- à test -->
  36.     {# {% block stylesheets %}
  37.         {{ encore_entry_link_tags('app') }}
  38.     {% endblock %}#}
  39.     <link rel="stylesheet" href="/build/app.css?maj={{ "now"|date("dmY") }}">
  40. </head>
  41. <body>
  42. {% include "home/blocks/cursor.html.twig" %}
  43. <div id="wrapper">
  44.         {# % include "home/blocks/loader.html.twig" % #}
  45.         
  46.         {% include "home/blocks/orientation_adv.html.twig" %}
  47.         <div class="logo-container">
  48.             <div class="logo"></div>
  49.         </div>
  50.         <div class="language-switcher">
  51.             {% if app.request.getLocale() == 'fr' %}
  52.                 <a class="link" href="/en/home">English</a>
  53.                 <a class="link-mobile" href="/en/home">EN</a>
  54.             {% else %}
  55.                 <a class="link" href="/fr/home">Français</a>
  56.                 <a class="link-mobile" href="/fr/home">FR</a>
  57.             {% endif %}
  58.         </div>
  59.         <div class="orientation-icon"></div>
  60.         {% set slides = ['right', 'left'] %}
  61.         <div class="shutter">
  62.             {% for slide in slides %}
  63.                 <div class="{{slide}}">
  64.                     {% for i in 0..4 %}
  65.                         <div class="img phase{{i}}">
  66.                             <div class="img-bg-mask">
  67.                                 <div class="img-bg front norep"></div>
  68.                                 <div class="img-bg back norep"></div>
  69.                             </div>
  70.                         </div>
  71.                     {% endfor %}
  72.                 </div>
  73.             {% endfor %}
  74.         </div>
  75.         <div id="main">
  76.             <!-- content -->
  77.             {% block content %}{% endblock %}
  78.             {%  include "home/blocks/news.html.twig"%}
  79.             <!-- footer -->
  80.             {%  include "home/blocks/footer.html.twig"%}
  81.             
  82.         </div>
  83.     </div>
  84.     
  85.     <script
  86.             src="https://code.jquery.com/jquery-3.5.1.min.js"
  87.             integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
  88.             crossorigin="anonymous">
  89.     </script>
  90.     <script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
  91.     <script type="text/javascript" src="https://forms.sbc29.com/form.js"></script>
  92.     {% block javascripts %}
  93.         {{ encore_entry_script_tags('app') }}
  94.     {% endblock %}
  95.     <script>
  96.         function doOnOrientationChange() {
  97.             var orientation = '';
  98.             switch(window.orientation) {
  99.                 case 90:
  100.                     orientation = 'landscape';
  101.                     break;
  102.                 case -90:
  103.                     orientation = 'landscape';
  104.                     break;
  105.                 case 0:
  106.                     orientation = 'portrait';
  107.                     break;
  108.                 case 180:
  109.                     orientation = 'portrait';
  110.                     break;
  111.                 default:
  112.                     break;
  113.             }
  114.             return orientation;
  115.         }
  116.         $(window).on('load',function(){
  117.             if(doOnOrientationChange() == 'landscape' ){
  118.                 var height =  parseInt($(window).height()) ;
  119.             }
  120.         });
  121.     </script>
  122. </body>
  123. </html>