templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. {% set current_route = app.request.get('_route') %}
  4. <head>
  5.     <!-- Google tag (gtag.js) -->
  6.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-WCBCV7R0GY"></script>
  7.     <script>
  8.         window.dataLayer = window.dataLayer || [];
  9.         function gtag() {
  10.             dataLayer.push(arguments);
  11.         }
  12.         gtag('js', new Date());
  13.         gtag('config', 'G-WCBCV7R0GY');
  14.     </script>
  15.     {# CDN DataTable #}
  16.     <link rel="stylesheet" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css">
  17.     <script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
  18.     <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
  19.     <script src="https://touchpay.gutouch.net/touchpayv2/script/touchpaynr/prod_touchpay-0.0.1.js" type="text/javascript"></script>
  20.     
  21.     <meta charset="UTF-8">
  22.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  23.     <link rel="icon" type="text/css" href="/img/logo.png">
  24.     <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/>
  25.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer"/>
  26.     <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
  27.     <link rel="stylesheet" href="https://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.css"/>
  28.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
  29.     <link href="https://cdn.datatables.net/1.12.1/css/dataTables.bootstrap5.min.css" rel="stylesheet">
  30.     {% block stylesheets %}
  31.         {{ encore_entry_link_tags('app') }}
  32.     {% endblock %}
  33.     <link rel="stylesheet" type="text/css" href="/css/headers.css">
  34.     <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
  35.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
  36.     <script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
  37.     <script src="https://cdn.datatables.net/1.12.1/js/dataTables.bootstrap5.min.js"></script>
  38.     <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
  39.     <script src="https://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.js"></script>
  40.     <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/js/all.min.js" integrity="sha512-naukR7I+Nk6gp7p5TMA4ycgfxaZBJ7MO5iC3Fp6ySQyKFHOGfpkSZkYVWV5R7u7cfAicxanwYQ5D1e17EfJcMA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  41.     <title>{% block title %}Calcul-Turf{% endblock %}</title>
  42.     <script type="text/javascript">
  43.         /* let is_admin = {% if (is_granted('ROLE_ADMIN')) %}true{% else %}false{% endif %}; */
  44.     </script>
  45. </head>
  46. <body class="bg-light">
  47. {% if (current_route == 'app_abonnement_pay') %}
  48.     <script src="https://www.paypal.com/sdk/js?client-id={{ app.request.server.get('PAYPAL_CLIENT_ID') }}&disable-funding=card&vault=true&intent=subscription"></script>
  49. {% endif %}
  50. <header class="bg-dark text-white">
  51.     <div class="container">
  52.         <a class="toggle pull-right">{{ source('svg/menu.svg') }}</a>
  53.         <nav id="main-nav">
  54.             {% include 'includes/menu.html.twig' with {isMobileMenu: true} %}
  55.         </nav>
  56.         <nav id="main_navbar" class="navbar navbar-inverse no-border-radius xs-height75 navbar-static-top pl-0 pr-0 navbar-expand-lg navbar-dark">
  57.             <a class="text-white navbar-brand" href="/">
  58.                 <img src="/img/logo.png" class="d-inline-block align-top logo" alt="logo">
  59.             </a>
  60.             <div class="collapse navbar-collapse" id="MegaNavbarID">
  61.                 {% include 'includes/menu.html.twig' with {isMobileMenu: false} %}
  62.             </div>
  63.           
  64.         </nav>
  65.     </div>
  66. </header>
  67. {% block body %}{% endblock %}
  68. <div class="bg-dark p-2 pt-0 pb-0">
  69.     <div class="container">
  70.         <footer class="py-3">
  71.             <div class="row border-bottom d-flex justify-content-between">
  72.                 <div class="col-md-3 py-3">
  73.                     <a href="/" class="d-flex align-items-center mb-3 link-ligth text-decoration-none">
  74.                         <img src="/img/logo.png" class="d-inline-block align-top logo" alt="logo">
  75.                     </a>
  76.                 </div>
  77.                 <div class="col-md-3 py-3 footer-payment-icons d-flex ">
  78.                     <img src="/img/moov-money-50px.svg" alt="Moov Money" class="img-fluid">
  79.                     <img src="/img/mtn-50px.svg" alt="MTN" class="img-fluid">
  80.                     <img src="/img/orangemoney-50px.svg" alt="Orange Money" class="img-fluid">
  81.                     <img src="/img/wave-50px.svg" alt="Wave" class="img-fluid">
  82.                     <img src="/img/paypal.png" alt="PayPal" class="img-fluid">
  83.                 </div>
  84.                 <div class="col-md-6">
  85.                     <div class="row">
  86.                         <div class="col py-3">
  87.                             <h5 class="text-light">Liens</h5>
  88.                             <ul class="nav flex-column">
  89.                                 <li class="nav-item mb-2">
  90.                                     <div class="dropdown">
  91.                                         {# <a href="#" class="nav-link dropdown-toggle no-caret p-0 text-muted" data-bs-toggle="dropdown" aria-expanded="false" id="button-help"><i class="fa fa-chevron-right fa-fw me-1"></i>Aide</a> #}
  92.                                         <ul class="dropdown-menu">
  93.                                             <li><a href="" class="dropdown-item"><i class="fa fa-chevron-right fa-fw me-1"></i> Généralités</a></li>
  94.                                             <li><a href="" class="dropdown-item"><i class="fa fa-chevron-right fa-fw me-1"></i> Mon compte</a></li>
  95.                                             <li><a href="" class="dropdown-item"><i class="fa fa-chevron-right fa-fw me-1"></i> Trucs et astuces</a></li>
  96.                                         </ul>
  97.                                     </div>
  98.                                 </li>
  99.                                 <li class="nav-item mb-2"><a href="{{ path('app_contact_us_index') }}" class="nav-link p-0 {% if ('_contact_us_' in current_route) %} text-success{% else %} text-muted{% endif %}"><i class="fa fa-chevron-right fa-fw me-1"></i>Nous contacter</a></li>
  100.                             </ul>
  101.                         </div>
  102.                         <div class="col py-3">
  103.                             <h5 class="text-light">Réseaux sociaux</h5>
  104.                             <ul class="nav flex-column">
  105.                                 <li class="nav-item mb-2">
  106.                                     <a href="https://www.facebook.com/profile.php?id=100091163472284" title="Calcul-turf.com | Facebook" target="blank" class="nav-link me-1 p-0 d-inline text-muted fs-4"><i class="fab fa-square-facebook"></i></a>
  107.                                     <a href="https://twitter.com/calculturf" target="blank" class="nav-link p-0 d-inline text-muted fs-4"><i class="fab fa-square-twitter"></i></a>
  108.                                 </li>
  109.                             </ul>
  110.                         </div>
  111.                         <div class="col py-3">
  112.                             <h5 class="text-light">Autre liens</h5>
  113.                             <ul class="nav flex-column">
  114.                                 <li class="nav-item mb-2"><a href='{{ asset('./cgv.pdf') }}' class="nav-link p-0 text-muted"><i class="fa fa-chevron-right fa-fw me-1"></i>CGV</a></li>
  115.                                 {# <li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted"><i class="fa fa-chevron-right fa-fw me-1"></i>Cookies</a></li> #}
  116.                                 <li class="nav-item mb-2"><a href="{{ path('app_jeu_resp') }}" class="nav-link p-0 text-muted"><i class="fa fa-chevron-right fa-fw me-1"></i>Jeu responsable</a></li>
  117.                             </ul>
  118.                         </div>
  119.                     </div>
  120.                 </div>
  121.             </div>
  122.             <p class="text-center text-muted mt-3">© 2023 &middot; Calcul-Turf</p>
  123.         </footer>
  124.     </div>
  125. </div>
  126. <a id="to-top" class="btn btn-dark bordered border-light to-top"><i class="fas fa-chevron-up"></i></a>
  127. <div class="modal-loading">
  128.     <div class="modal-loading-body">
  129.         <div class="row">
  130.             <div class="col-md-12"></div>
  131.         </div>
  132.     </div>
  133. </div>
  134. </body>
  135. {% block javascripts %}
  136.     {% if (current_route == 'program') %}
  137.         {{ encore_entry_script_tags('app_program') }}
  138.     {% elseif (current_route == 'actualites') %}
  139.         {{ encore_entry_script_tags('app_actualites') }}
  140.     {# {% elseif (current_route == 'program_course') %}
  141.         {{ encore_entry_script_tags('app_program_course') }} #}
  142.     {% else %}
  143.         {{ encore_entry_script_tags('app') }}
  144.     {% endif %}
  145.     <script type="text/javascript">
  146.         document.addEventListener("scroll", function () {
  147.             var scrolledEl = this.documentElement.scrollTop;
  148.             if (scrolledEl > 200) document.getElementById('to-top').style.display = "block";
  149.             else document.getElementById('to-top').style.display = "none";
  150.         });
  151.         document.getElementById('to-top').addEventListener("click", function (e) {
  152.             e.preventDefault();
  153.             scrollToTop(100);
  154.         });
  155.         function scrollToTop(_timeTo) {
  156.             $([document.documentElement, document.body]).animate({
  157.                 scrollTop: 0
  158.             }, _timeTo);
  159.         }
  160.         function showLoader() {
  161.             $('.modal-loading').find('.modal-loading-body').find('.col-md-12').html("Chargement...<br>Patientez s'il vous plaît!");
  162.             $('.modal-loading').css({'display': 'flex'});
  163.         }
  164.         function hideLoader() {
  165.             $('.modal-loading').hide();
  166.             $('.modal-loading').find('.modal-loading-body').find('.col-md-12').html("");
  167.         }
  168.     </script>
  169. {% endblock %}
  170. </html>