templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.         <!-- LightGallery CSS -->
  7.         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.1/css/lightgallery-bundle.min.css" integrity="sha512-nUqPe0+ak577sKSMThGcKJauRI7ENhKC2FQAOOmdyCYSrUh0GnwLsZNYqwilpMmplN+3nO3zso8CWUgu33BDag==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  8.         <link rel="stylesheet" href="{{ asset('assets/css/lightgallery.css') }}">
  9.         <!-- Bootstrap CSS -->
  10.         <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet"
  11.             integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
  12.         <!-- Bootstrap icons -->
  13.         <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
  14.         <!-- Bootstrap table -->
  15.         <link href="https://unpkg.com/bootstrap-table@1.21.2/dist/bootstrap-table.min.css" rel="stylesheet">
  16.         <!-- FontAwesome CSS -->
  17.         <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  18.         <!-- Custom CSS -->
  19.         <link rel="stylesheet" href="{{ asset('assets/css/tgsc.css') }}">
  20.         <!-- favicon -->
  21.         <link rel="shortcut icon" href="{{ asset('assets/images/logo/TGS-concept_LOGO-Gris.jpg') }}" type="image/x-icon">
  22.         <title>{% block title %}TGS Concept{% endblock %}</title>
  23.     </head>
  24.     <body>
  25.         <div id="content" class="container-xl bg-dark p-5">
  26.             {% include "_nav.html.twig" %}
  27.             {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  28.                 {% block subnav %}{% endblock %}
  29.             {% endif %}
  30.             {% include '_flash_messages.html.twig' %}
  31.             {% block body %}{% endblock %}
  32.             <!-- footer -->
  33.             <footer class="d-flex justify-content-between py-3 text-secondary">
  34.                 <div>
  35.                     <a id="footer-admin" href="{{ path('app_back_main_home') }}"><img src="{{ asset('assets/images/logo/TGS-concept_LOGO-Blanc.jpg') }}" height="20" alt="Administration TGS Concept"></a>
  36.                 </div>
  37.                 <div id="footer-copyright"><span>&copy; 2022 - TGS Concept</span></div>
  38.                 <div>
  39.                     <a id="footer-disclaimer" class="mx-3" href="{{ path('app_main_disclaimer') }}">Mentions lĂ©gales</a>
  40.                     <a id="footer-contact" href="{{ path('app_main_contact') }}">Contact</a>
  41.                 </div>
  42.             </footer>
  43.         </div>
  44.         <!-- JS - Font Awesome -->
  45.         <script src="https://kit.fontawesome.com/95ebc98ef4.js" crossorigin="anonymous"></script>
  46.         <!-- JS - jQuery -->
  47.         <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
  48.         <!-- JS - Bootstrap Bundle with Popper -->
  49.         <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
  50.             integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
  51.         <!-- JS - Bootstrap table -->
  52.         <script src="https://unpkg.com/bootstrap-table@1.21.2/dist/bootstrap-table.min.js"></script>
  53.         <!-- JS - Bootstrap table - Translation -->
  54.         <script src="{{ asset('assets/js/bootstrap-table-fr-FR.js') }}"></script>
  55.         <!-- JS - Light Gallery -->
  56.         <script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.1/lightgallery.min.js" integrity="sha512-dSI4QnNeaXiNEjX2N8bkb16B7aMu/8SI5/rE6NIa3Hr/HnWUO+EAZpizN2JQJrXuvU7z0HTgpBVk/sfGd0oW+w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  57.         <script type="text/javascript">
  58.             // Bootstrap Table
  59.             function detailFormatter(index, row) {
  60.             var html = []
  61.             $.each(row, function (key, value) {
  62.                 html.push('<p><b>' + key + ':</b> ' + value + '</p>')
  63.             })
  64.             return html.join('')
  65.             }
  66.             // Light Gallery initialization
  67.             lightGallery(document.getElementById('lightgallery'), {
  68.                 // plugins: [lgZoom, lgThumbnail],
  69.                 // licenseKey: 'your_license_key',
  70.                 speed: 500,
  71.                 // ... other settings
  72.             });
  73.             // Burger menu (inspirĂ© de https://codepen.io/zagaris/pen/qBmqQEN)
  74.             const button = document.getElementById("burger");
  75.             const initialBtn = '<i class="fas fa-bars" aria-hidden="true"></i>';
  76.             const nav = document.getElementById("nav-menu");
  77.             button.addEventListener('click', () => {
  78.                 nav.classList.toggle('show');
  79.                 if (button.innerHTML.includes(initialBtn)) {
  80.                     button.innerHTML ='<i class="bi bi-x-lg"></i>';
  81.                 } else {
  82.                     button.innerHTML = initialBtn;
  83.                 }
  84.             });
  85.         </script>
  86.     </body>
  87. </html>