templates/frontend.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html{% if config.lang%} lang="{{config.lang}}"{% endif %}>
  3.     <head>
  4.         <title>{% block title %}{{config.siteTitle}} - {{app.request.getHost}}{% endblock %}</title>
  5.         <meta charset="UTF-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.         <link rel="shortcut icon" type="image/png" href="{{asset(favicon,'favicons')}}" >
  8.         <link rel="icon"   type="image/png"href="{{asset(favicon,'favicons')}}">
  9.         <link rel="canonical" href="{{app.request.schemeAndHttpHost}}"/>
  10.         <meta property="og:site_name" content="{{config.siteTitle}}"/>
  11.         <meta property="og:title" content="{{config.siteTitle}}"/>
  12.         <meta property="og:url" content="{{app.request.schemeAndHttpHost}}"/>
  13.         <meta property="og:type" content="website"/>
  14.         <meta itemprop="name" content="{{config.siteTitle}}" />
  15.         <meta itemprop="url" content="{{app.request.schemeAndHttpHost}}" />
  16.         <meta name="twitter:title" content="{{config.siteTitle}}" />
  17.         <meta name="twitter:url" content="{{app.request.schemeAndHttpHost}}" />
  18.         <meta name="twitter:card" content="summary"/>
  19.         {% if config.siteDescription %}
  20.         <meta name="description" content="{{siteDescription}}" />
  21.         {% endif %}
  22.         {% if config.keywords %}
  23.         <meta name="keywords" content="{{keywords}}" />
  24.         {% endif %}
  25.         <link rel="preconnect" href="https://fonts.gstatic.com">
  26.         <link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet" />
  27.         {% block css1 %}{% endblock %}
  28.         <link rel="stylesheet" href="{{asset('css.css','css')}}" type="text/css" />
  29.         {% block css2 %}{% endblock %}
  30.         {% block scripts_head %}{% endblock %}
  31.     </head>
  32.     <body>
  33.     <div class="page-wrapper">
  34.         <section class="header">
  35.             <div class="header-space-bar color-green-bg"></div>
  36.             <nav class="nav-bar">
  37.                 <div class="nav-bar-inner reduced-width">
  38.                     <div class="logo-wrap">
  39.                         <a href="/"><img src="{{ asset('less-logo-smakk-green-100.png','i') }}"></a>
  40.                     </div>
  41.                     <div class="top-nav-links">
  42.                         {% block nav %}{% endblock %}
  43.                     </div>
  44.                 </div>
  45.             </nav>
  46.         </section>
  47.         {% block body %}{% endblock %}
  48.         <footer class="color-green-bg  creamy-text-1">
  49.             <div>
  50.                 <div class="copyright">Copyright © {{ 'now' | date('Y') }} LESS& Ltd. All rights reserved</div>
  51.                 <div class="bottom-links">
  52.                     <a class="creamy-text-1" href="https://www.movetoless.co.uk/terms-and-conditions">Terms & Conditions</a>
  53.                     <a class="creamy-text-1" href="https://www.movetoless.co.uk/privacy">Privacy Policy</a>
  54.                 </div>
  55.             </div>
  56.         </footer>
  57.     </div>
  58.     <script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script>
  59.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.3.2/jquery-migrate.min.js" crossorigin="anonymous"></script>
  60.     <script src="{{ asset('/js/responsive-menu.js') }}"></script>
  61.     {#
  62.         https://github.com/carhartl/jquery-cookie
  63.         https://github.com/js-cookie/js-cookie
  64.     #}
  65.     <script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>
  66.     {# https://stackoverflow.com/questions/12744145/how-to-remember-scroll-position-of-page #}
  67.     <script>
  68.         // When document is ready...
  69.         $(document).ready(function() {
  70.             // If cookie is set, scroll to the position saved in the cookie.
  71.             var scrollValue = Cookies.get('scroll');
  72.             if ( scrollValue !== null ) {
  73.                 $(document).scrollTop( scrollValue );
  74.                 Cookies.remove('scroll');
  75.             }
  76.             $('form').on('submit', function() {
  77.                 // Set a cookie that holds the scroll position.
  78.                 Cookies.set('scroll', $(document).scrollTop() )
  79.             });
  80.             // When scrolling happens....
  81.             //$(window).on("scroll", function() {
  82.             //    // Set a cookie that holds the scroll position.
  83.             //    Cookies.set('scroll', $(document).scrollTop() )
  84.             //});
  85.         });
  86.     </script>
  87.     {% block scripts_bottom %}{% endblock %}
  88.     <!-- Global site tag (gtag.js) - Google Analytics -->
  89.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-B5578C0SK2"></script>
  90.     <script>
  91.         window.dataLayer = window.dataLayer || [];
  92.         function gtag(){dataLayer.push(arguments);}
  93.         gtag('js', new Date());
  94.         gtag('config', 'G-B5578C0SK2');
  95.     </script>
  96.     </body>
  97. </html>