templates/baseTemplate_2.html.twig line 1

Open in your IDE?
  1. {% import 'macro.html.twig' as traiteinfo %}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5.   <meta charset="utf-8">
  6.   <meta name="viewport" content="width=device-width, initial-scale=1">
  7.   <title> {{'site.bienvenu'|trans}}  
  8.     {% if typeSite == 1 %}
  9.         {% if objetAbonne != null %}
  10.             {{objetAbonne.nom}} 
  11.         {% endif %} 
  12.     {% else %}
  13.         {% if objetGoupement != null %}
  14.             {{objetGoupement.nomGroupement}} 
  15.         {% endif %}
  16.     {% endif %}
  17.   </title>
  18.   <meta name="description" 
  19.         >
  20.   <meta name="keywords" content="free website templates, free bootstrap themes, free template, free bootstrap, free website template">
  21.   <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,300|Raleway:300,400,900,700italic,700,300,600">
  22.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/bootstrap.min.css')}}">
  23.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/font-awesome.min.css')}}">
  24.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/animate.css')}}">
  25.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/owl.carousel.css')}}">
  26.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/slick.css')}}">
  27.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/off-canvas.css')}}">
  28.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/linea-fonts.css')}}">
  29.   <link href="{{asset('css/jquery-ui-1.10.4.min.css')}}" rel="stylesheet">
  30.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/flaticon.css')}}">
  31.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/magnific-popup.css')}}">
  32.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/rsmenu-main.css')}}">
  33.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/rs-spacing.css')}}">
  34.   
  35.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/responsive.css')}}">
  36.   <link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/style.css')}}">
  37.   <!-- =======================================================
  38.     Theme Name: Baker
  39.     Theme URL: https://bootstrapmade.com/baker-free-onepage-bootstrap-theme/
  40.     Author: BootstrapMade.com
  41.     Author URL: https://bootstrapmade.com
  42.   ======================================================= -->
  43. </head>
  44.     {% block body %}
  45.     {% endblock %}
  46.       </div> 
  47. <footer id="rs-footer" class="rs-footer" style="background: #008000;">
  48.   <div class="footer-top">
  49.       <div class="container">
  50.           <div class="row">
  51.               <div class="col-lg-4 col-md-12 col-sm-12 footer-widget md-mb-50">
  52.                   
  53.                   <h4 class="widget-title"> {{'site.lien.rapide'|trans}} </h4>
  54.                     <ul class="site-map">
  55.                             <li><a href="#">{{'site.home'|trans}} </a></li>
  56.                             
  57.                             
  58.                     </ul>
  59.               </div>
  60.             
  61.               <div class="col-lg-4 col-md-12 col-sm-12 footer-widget md-mb-50">
  62.               <h4 class="widget-title">
  63.                     {% if typeSite == 1 %}
  64.                                 {% if objetAbonne != null %}
  65.                                    {{objetAbonne.nom}}
  66.                               {% endif %}
  67.                     {% else %}
  68.                         {% if objetGoupement != null %}
  69.                                 {{objetGoupement.nom}}
  70.                         {% endif %}
  71.                     {% endif %}
  72.               </h4>
  73.                 <div class="desc" style="color : #fff;">
  74.                   {#{objetGoupement.description|raw}#}
  75.                    {% if typeSite == 1 %}
  76.                                 {% if objetAbonne != null %}
  77.                                     {{objetAbonne.description|raw}}
  78.                               {% endif %}
  79.                     {% else %}
  80.                         {% if objetGoupement != null %}
  81.                        {{objetGoupement.description|raw}} 
  82.                         {% endif %}
  83.                     {% endif %}
  84.                 </div>
  85.               </div>
  86.               <div class="col-lg-4 col-md-12 col-sm-12 footer-widget">
  87.                   <h4 class="widget-title">{{'site.adresse'|trans}}</h4>
  88.                   <ul class="address-widget">
  89.                       <li>
  90.                           <i class="flaticon-location"></i>
  91.                           <div class="desc">
  92.                           
  93.                           </div>
  94.                       </li>
  95.                       <li>
  96.                           <i class="flaticon-call"></i>
  97.                           <div class="desc">
  98.                             {% if typeSite == 1 %}
  99.                                 {% if objetAbonne != null %}
  100.                                     <a href="tel:{{objetAbonne.tel1}}">{{objetAbonne.tel1}}</a> 
  101.                               {% endif %}
  102.                             {% else %}
  103.                                 {% if objetGoupement != null %}
  104.                                 <a href="{{objetGoupement.nomGroupement}}">{{objetGoupement.nomGroupement}}</a> 
  105.                               {% endif %}
  106.                             {% endif %}
  107.                           
  108.                           </div>
  109.                       </li>
  110.                       <li>
  111.                           <i class="flaticon-email"></i>
  112.                           <div class="desc">
  113.                             {% if typeSite == 1 %}
  114.                                {% if objetAbonne != null %}
  115.                                     <a href="mailto:infoname@gmail.com">{{objetAbonne.email}}</a> ,
  116.                                {% endif %} 
  117.                             {% else %}
  118.                                 {% if objetGoupement != null %}
  119.                                 
  120.                                 {% endif %}
  121.                             {% endif %}
  122.                           
  123.                              
  124.                           </div>
  125.                       </li>
  126.                   </ul>
  127.               </div>
  128.           </div>
  129.       </div>
  130.   </div>
  131.   <div class="footer-bottom" >
  132.       <div class="container">                    
  133.           <div class="row y-middle">
  134.               <div class="col-lg-4 md-mb-20">
  135.                   <div class="footer-logo md-text-center">
  136.                       <a href="index.html"><img src="assets/images/logo.png" alt=""></a>
  137.                   </div>
  138.               </div>
  139.               <div class="col-lg-4 md-mb-20">
  140.                   <div class="copyright text-center md-text-left">
  141.                       <p>&copy; 2021 -
  142.                             {% if typeSite == 1 %}
  143.                                {% if objetAbonne != null %}
  144.                                     {{objetAbonne.nom}} 
  145.                                 {% endif %} 
  146.                             {% else %}
  147.                                 {% if objetGoupement != null %}
  148.                                     {{objetGoupement.nomGroupement}} 
  149.                                 {% endif %}
  150.                             {% endif %}
  151.                       
  152.                       
  153.                       </p>
  154.                   </div>
  155.               </div>
  156.               <div class="col-lg-4 text-right md-text-left">
  157.                   <ul class="footer-social">
  158.                       <li><a href="#"><i class="fa fa-facebook"></i></a></li>
  159.                       {#<li><a href="#"><i class="fa fa-twitter"></i></a></li>
  160.                       <li><a href="#"><i class="fa fa-instagram"></i></a></li>
  161.                       <li><a href="#"><i class="fa fa-google-plus"></i></a></li>
  162.                       <li><a href="#"><i class="fa fa-pinterest-p"></i></a></li>#}
  163.                   </ul>
  164.               </div>
  165.           </div>
  166.       </div>
  167.   </div>
  168. </footer>
  169. <!-- Footer End -->
  170. <!-- start scrollUp  -->
  171. <div id="scrollUp">
  172.   <i class="fa fa-angle-up"></i>
  173. </div>
  174. <!-- End scrollUp  -->
  175. <!-- Search Modal Start -->
  176. <div aria-hidden="true" class="modal fade search-modal" role="dialog" tabindex="-1">
  177.   <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  178.     <span class="flaticon-cross"></span>
  179.   </button>
  180.   <div class="modal-dialog modal-dialog-centered">
  181.       <div class="modal-content">
  182.           <div class="search-block clearfix">
  183.               <form>
  184.                   <div class="form-group">
  185.                       <input class="form-control" placeholder="Search Here..." type="text">
  186.                   </div>
  187.               </form>
  188.           </div>
  189.       </div>
  190.   </div>
  191. </div>
  192.   <a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
  193.     {% block javascripts %}
  194.     <script type="text/javascript" src="{{asset('template_2/assets/js/modernizr-2.8.3.min.js')}}"></script>
  195.     <script type="text/javascript" src="{{asset('template_2/assets/js/jquery.min.js')}}"></script>
  196.     <script type="text/javascript" src="{{asset('template_2/assets/js/bootstrap.min.js')}}"></script>
  197.     <script type="text/javascript" src="{{asset('template_2/assets/js/rsmenu-main.js')}}"></script>
  198.     <script type="text/javascript" src="{{asset('template_2/assets/js/jquery.nav.js')}}"></script>
  199.     <script src="{{asset('template_2/assets/js/owl.carousel.min.js')}}"></script>
  200.     <script type="text/javascript" src="{{asset('template_2/assets/js/slick.min.js')}}"></script>
  201.     <script type="text/javascript" src="{{asset('template_2/assets/js/isotope.pkgd.min.js')}}"></script>
  202.     <script type="text/javascript" src="{{asset('template_2/assets/js/imagesloaded.pkgd.min.js')}}"></script>
  203.     <script type="text/javascript" src="{{asset('template_2/assets/js/wow.min.js')}}"></script>
  204.     <script type="text/javascript" src="{{asset('template_2/assets/js/skill.bars.jquery.js')}}"></script>
  205.     <script src="{{asset('template_2/assets/js/jquery.counterup.min.js')}}"></script>
  206.     <script type="text/javascript" src="{{asset('template_2/assets/js/waypoints.min.js')}}"></script>
  207.     <script type="text/javascript" src="{{asset('template_2/assets/js/jquery.mb.YTPlayer.min.js')}}"></script>
  208.     <script type="text/javascript" src="{{asset('template_2/assets/js/jquery.magnific-popup.min.js')}}"></script>
  209.     <script type="text/javascript" src="{{asset('template_2/assets/js/plugins.js')}}"></script>
  210.     <script type="text/javascript" src="{{asset('template_2/assets/js/contact.form.js')}}"></script>
  211.     <script src="{{asset('template_2/assets/js/main.js')}}"></script>
  212.     <script src="{{asset('old/js/fonction-importante.js')}}"></script> 
  213.     <script
  214.       src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC2SAs5Pj_hwbMBu1vxYsYpBhcaTOkGxUE&map_ids=be545bf72cc6e081"
  215.       
  216.     ></script>
  217.     <script type="text/javascript">
  218.         $('.btValiderCart').click(function () {
  219.             
  220.             var qteSaisie = $('.qteSaisie').val();
  221.             var prixProduct = $('.prixProduct').val();
  222.             var qteUnite = $('.qteUnite').val();
  223.             var id = $(this).attr("ids") ;
  224.             $.ajax({
  225.                 dataType: 'json',
  226.                 type: 'POST',
  227.                 url: "{{ path('cart_add') }}",
  228.                 data: "qteSaisie=" + qteSaisie + "&qteUnite=" + qteUnite+ "&id=" + id+ "&prixProduct=" + prixProduct,
  229.                 beforeSend: function () {
  230.                     //onLoadGobi();
  231.                 },
  232.                 success: function (data) {
  233.                     $('.cart-basket').html(data['panierCount'] ); 
  234.                     $('.current-price').html(data['panierTotal'] ); 
  235.                     
  236.                     var html = "";
  237.                     
  238.                     for (var j = 0; j < data['panierList'].length; j++) {   
  239.                                         
  240.                         var html = html+ " <li class=\"display-flex\">" +
  241.                                         " <div class=\"icon-cart\"> <a href=\"#\"><i class=\"fa fa-times\"></i></a></div> " +                        
  242.                                         "  <div class=\"product-info\"> " +                       
  243.                                         "   <a href=\"cart.html\">"+data['panierList'][j]['produit'][0].nomProduit+"</a><br>" +
  244.                                         "   <span class=\"quantity\">"+data['panierList'][j]['quantite']+" × 200 </span>" +
  245.                                         " </div> " +
  246.                                         " <div class=\"product-image\"> " +
  247.                                         "   <a href=\"cart.html\"><img src=\"assets/images/shop/1.jpg\" alt=\"Product Image\"></a> " +
  248.                                         " </div> " +
  249.                                         "  ";
  250.                                 +  "</li>";
  251.                     }                    
  252.                         $('.cart-icon-product-list').html(html);                    
  253.                 },
  254.                 complete: function () {
  255.                     //closeOnLoadGobi(onLoadGobi());
  256.                 }
  257.             });
  258.         });
  259.         $('.btValiderOrder').click(function () {
  260.             
  261.             var nomPrenoms = $('.nomPrenoms').val();
  262.             var tel = $('.tel').val();
  263.             $.ajax({
  264.                 dataType: 'json',
  265.                 type: 'POST',
  266.                 url: "{{ path('cart_save_order') }}",
  267.                 data: "nomPrenoms=" + nomPrenoms + "&tel=" + tel,
  268.                 beforeSend: function () {
  269.                     //onLoadGobi();
  270.                 },
  271.                 success: function (data) {
  272.                     sendWhatsapp(data['msg']);               
  273.                 },
  274.                 complete: function () {
  275.                     //closeOnLoadGobi(onLoadGobi());
  276.                 }
  277.             });
  278.         });
  279.         function sendWhatsapp(msg){
  280.             if($(".nomPrenoms").val() !="" && $(".tel").val() !="" ){
  281.                 var msgInfo= "Vous avez reçu une commande de %0A";
  282.                 var nomPrenom= "%0A *Nom et Prénom(s) :* "+" "+$(".nomPrenoms").val();
  283.                 var tel= "%0A *Tel :* "+" "+$(".tel").val();
  284.                 var adresse= "%0A *Adresse :* "+" "+$(".adresse").val()+" %0A"+" %0A"+" %0A";
  285.                 //var href = "{{"https://wa.me/"~objetAbonne.tel1~"?text="}}";
  286.                 var href = "https://wa.me/22890188159?text=";
  287.                 document.location.href = href +msgInfo+ nomPrenom+ tel+ adresse+ msg; 
  288.             }else{
  289.                 alert("Veuillez remplir les information sur votre identité ");
  290.             }
  291.         }
  292.             
  293.     </script> 
  294.     {% endblock %}
  295. </html>