templates/app/layout.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.     {% if sentryDSN != '' %}
  5.         {# Sentry MUST be the first element to load to work correctly #}
  6.         <script src="https://browser.sentry-cdn.com/5.12.1/bundle.min.js" integrity="sha384-y+an4eARFKvjzOivf/Z7JtMJhaN6b+lLQ5oFbBbUwZNNVir39cYtkjW1r6Xjbxg3" crossorigin="anonymous"></script>
  7.         <script>
  8.             Sentry.init({ dsn: '{{ sentryDSN }}' });
  9.         </script>
  10.     {% endif %}
  11.     
  12.     <!-- Required meta tags -->
  13.     <meta charset="utf-8">
  14.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  15.     <!-- Favicon -->
  16.     <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
  17.     <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
  18.     <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
  19.     <link rel="manifest" href="{{ asset('site.webmanifest') }}">
  20.     <!-- Bootstrap CSS -->
  21.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
  22.           integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  23.     <link rel="stylesheet" href="{{ asset('app/assets/css/style.css') }}">
  24.     <link rel="stylesheet" href="{{ asset('app/assets/css/main.css') }}">
  25.     <link rel="stylesheet" href="{{ asset('app/assets/css/navbar.css') }}">
  26.     <link rel="stylesheet" href="{{ asset('app/assets/css/app.css') }}">
  27.     <link rel="stylesheet" href="{{ asset('app/assets/css/form.css') }}">
  28.     <link rel="stylesheet" href="{{ asset('app/assets/css/modals.css') }}">
  29.     <link rel="stylesheet" href="{{ asset('app/assets/css/organization.css') }}">
  30.     <link rel="stylesheet" href="{{ asset('app/assets/css/footer.css') }}">
  31.     <link rel="stylesheet" href="{{ asset('app/assets/css/datatable.css') }}">
  32.     {% block stylesheets %}{% endblock %}
  33.     <title>{% block title %}TrackPay{% endblock %}</title>
  34.     <script src="https://kit.fontawesome.com/0fe2ee508f.js" crossorigin="anonymous"></script>
  35.     <!-- Optional JavaScript -->
  36.     <script async src="https://www.googletagmanager.com/gtag/js?id=UA-156900088-2"></script>
  37.     <script>
  38.         window.dataLayer = window.dataLayer || [];
  39.         function gtag(){dataLayer.push(arguments);}
  40.         gtag('js', new Date());
  41.         gtag('config', 'UA-156900088-2', {
  42.             'custom_map': {'dimension1': 'firstStep'}
  43.         });
  44.     </script>
  45.     {% block head_tags %}{% endblock %}
  46. </head>
  47. <body>
  48. {% if app.user %}
  49.     {% include 'app/include/navbar.html.twig' %}
  50. {% endif %}
  51. <div class="main container-fluid">
  52.     {% block content %}{% endblock %}
  53. </div>
  54. <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  55. <script src="https://code.jquery.com/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
  56. <script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script> 
  57. <link rel="stylesheet" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css">
  58. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
  59.         integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
  60.         crossorigin="anonymous"></script>
  61. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
  62.         integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
  63.         crossorigin="anonymous"></script>
  64. <script type="text/javascript">
  65.     /*let occurence = localStorage.getItem('occurence')
  66.     if ( occurence == null ) {
  67.         localStorage.setItem('occurence', 0);
  68.     } else {
  69.         localStorage.setItem('occurence', parseInt(occurence) + 1);
  70.     }
  71.     console.log(localStorage)
  72.     console.log(localStorage.getItem('occurence')) */
  73.     // clear session when leave browser
  74.     /*window.addEventListener("unload", function(){
  75.             $.get('{{ path('app_security_logout') }}', function(){                          
  76.                         });
  77.     });*/
  78.     // check for forbidden request ajax and redirect to login
  79.         $( document ).ajaxError(function( event, jqxhr ) {
  80.             if (jqxhr.status === 403) {
  81.                 window.location.href = '{{ path('app_page_index') }}';
  82.             }
  83.         });
  84. </script>
  85. {% block javascripts %}{% endblock %}
  86. </body>
  87. </html>