{% import 'macro.html.twig' as traiteinfo %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> {{'site.bienvenu'|trans}}
{% if typeSite == 1 %}
{% if objetAbonne != null %}
{{objetAbonne.nom}}
{% endif %}
{% else %}
{% if objetGoupement != null %}
{{objetGoupement.nomGroupement}}
{% endif %}
{% endif %}
</title>
<meta name="description"
>
<meta name="keywords" content="free website templates, free bootstrap themes, free template, free bootstrap, free website template">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,300|Raleway:300,400,900,700italic,700,300,600">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/bootstrap.min.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/font-awesome.min.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/animate.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/owl.carousel.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/slick.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/off-canvas.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/linea-fonts.css')}}">
<link href="{{asset('css/jquery-ui-1.10.4.min.css')}}" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/flaticon.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/magnific-popup.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/rsmenu-main.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/rs-spacing.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/responsive.css')}}">
<link rel="stylesheet" type="text/css" href="{{asset('template_2/assets/css/style.css')}}">
<!-- =======================================================
Theme Name: Baker
Theme URL: https://bootstrapmade.com/baker-free-onepage-bootstrap-theme/
Author: BootstrapMade.com
Author URL: https://bootstrapmade.com
======================================================= -->
</head>
{% block body %}
{% endblock %}
</div>
<footer id="rs-footer" class="rs-footer" style="background: #008000;">
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-12 col-sm-12 footer-widget md-mb-50">
<h4 class="widget-title"> {{'site.lien.rapide'|trans}} </h4>
<ul class="site-map">
<li><a href="#">{{'site.home'|trans}} </a></li>
</ul>
</div>
<div class="col-lg-4 col-md-12 col-sm-12 footer-widget md-mb-50">
<h4 class="widget-title">
{% if typeSite == 1 %}
{% if objetAbonne != null %}
{{objetAbonne.nom}}
{% endif %}
{% else %}
{% if objetGoupement != null %}
{{objetGoupement.nom}}
{% endif %}
{% endif %}
</h4>
<div class="desc" style="color : #fff;">
{#{objetGoupement.description|raw}#}
{% if typeSite == 1 %}
{% if objetAbonne != null %}
{{objetAbonne.description|raw}}
{% endif %}
{% else %}
{% if objetGoupement != null %}
{{objetGoupement.description|raw}}
{% endif %}
{% endif %}
</div>
</div>
<div class="col-lg-4 col-md-12 col-sm-12 footer-widget">
<h4 class="widget-title">{{'site.adresse'|trans}}</h4>
<ul class="address-widget">
<li>
<i class="flaticon-location"></i>
<div class="desc">
</div>
</li>
<li>
<i class="flaticon-call"></i>
<div class="desc">
{% if typeSite == 1 %}
{% if objetAbonne != null %}
<a href="tel:{{objetAbonne.tel1}}">{{objetAbonne.tel1}}</a>
{% endif %}
{% else %}
{% if objetGoupement != null %}
<a href="{{objetGoupement.nomGroupement}}">{{objetGoupement.nomGroupement}}</a>
{% endif %}
{% endif %}
</div>
</li>
<li>
<i class="flaticon-email"></i>
<div class="desc">
{% if typeSite == 1 %}
{% if objetAbonne != null %}
<a href="mailto:infoname@gmail.com">{{objetAbonne.email}}</a> ,
{% endif %}
{% else %}
{% if objetGoupement != null %}
{% endif %}
{% endif %}
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="footer-bottom" >
<div class="container">
<div class="row y-middle">
<div class="col-lg-4 md-mb-20">
<div class="footer-logo md-text-center">
<a href="index.html"><img src="assets/images/logo.png" alt=""></a>
</div>
</div>
<div class="col-lg-4 md-mb-20">
<div class="copyright text-center md-text-left">
<p>© 2021 -
{% if typeSite == 1 %}
{% if objetAbonne != null %}
{{objetAbonne.nom}}
{% endif %}
{% else %}
{% if objetGoupement != null %}
{{objetGoupement.nomGroupement}}
{% endif %}
{% endif %}
</p>
</div>
</div>
<div class="col-lg-4 text-right md-text-left">
<ul class="footer-social">
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
{#<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-instagram"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#"><i class="fa fa-pinterest-p"></i></a></li>#}
</ul>
</div>
</div>
</div>
</div>
</footer>
<!-- Footer End -->
<!-- start scrollUp -->
<div id="scrollUp">
<i class="fa fa-angle-up"></i>
</div>
<!-- End scrollUp -->
<!-- Search Modal Start -->
<div aria-hidden="true" class="modal fade search-modal" role="dialog" tabindex="-1">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="flaticon-cross"></span>
</button>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="search-block clearfix">
<form>
<div class="form-group">
<input class="form-control" placeholder="Search Here..." type="text">
</div>
</form>
</div>
</div>
</div>
</div>
<a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
{% block javascripts %}
<script type="text/javascript" src="{{asset('template_2/assets/js/modernizr-2.8.3.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/jquery.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/bootstrap.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/rsmenu-main.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/jquery.nav.js')}}"></script>
<script src="{{asset('template_2/assets/js/owl.carousel.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/slick.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/isotope.pkgd.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/imagesloaded.pkgd.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/wow.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/skill.bars.jquery.js')}}"></script>
<script src="{{asset('template_2/assets/js/jquery.counterup.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/waypoints.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/jquery.mb.YTPlayer.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/jquery.magnific-popup.min.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/plugins.js')}}"></script>
<script type="text/javascript" src="{{asset('template_2/assets/js/contact.form.js')}}"></script>
<script src="{{asset('template_2/assets/js/main.js')}}"></script>
<script src="{{asset('old/js/fonction-importante.js')}}"></script>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC2SAs5Pj_hwbMBu1vxYsYpBhcaTOkGxUE&map_ids=be545bf72cc6e081"
></script>
<script type="text/javascript">
$('.btValiderCart').click(function () {
var qteSaisie = $('.qteSaisie').val();
var prixProduct = $('.prixProduct').val();
var qteUnite = $('.qteUnite').val();
var id = $(this).attr("ids") ;
$.ajax({
dataType: 'json',
type: 'POST',
url: "{{ path('cart_add') }}",
data: "qteSaisie=" + qteSaisie + "&qteUnite=" + qteUnite+ "&id=" + id+ "&prixProduct=" + prixProduct,
beforeSend: function () {
//onLoadGobi();
},
success: function (data) {
$('.cart-basket').html(data['panierCount'] );
$('.current-price').html(data['panierTotal'] );
var html = "";
for (var j = 0; j < data['panierList'].length; j++) {
var html = html+ " <li class=\"display-flex\">" +
" <div class=\"icon-cart\"> <a href=\"#\"><i class=\"fa fa-times\"></i></a></div> " +
" <div class=\"product-info\"> " +
" <a href=\"cart.html\">"+data['panierList'][j]['produit'][0].nomProduit+"</a><br>" +
" <span class=\"quantity\">"+data['panierList'][j]['quantite']+" × 200 </span>" +
" </div> " +
" <div class=\"product-image\"> " +
" <a href=\"cart.html\"><img src=\"assets/images/shop/1.jpg\" alt=\"Product Image\"></a> " +
" </div> " +
" ";
+ "</li>";
}
$('.cart-icon-product-list').html(html);
},
complete: function () {
//closeOnLoadGobi(onLoadGobi());
}
});
});
$('.btValiderOrder').click(function () {
var nomPrenoms = $('.nomPrenoms').val();
var tel = $('.tel').val();
$.ajax({
dataType: 'json',
type: 'POST',
url: "{{ path('cart_save_order') }}",
data: "nomPrenoms=" + nomPrenoms + "&tel=" + tel,
beforeSend: function () {
//onLoadGobi();
},
success: function (data) {
sendWhatsapp(data['msg']);
},
complete: function () {
//closeOnLoadGobi(onLoadGobi());
}
});
});
function sendWhatsapp(msg){
if($(".nomPrenoms").val() !="" && $(".tel").val() !="" ){
var msgInfo= "Vous avez reçu une commande de %0A";
var nomPrenom= "%0A *Nom et Prénom(s) :* "+" "+$(".nomPrenoms").val();
var tel= "%0A *Tel :* "+" "+$(".tel").val();
var adresse= "%0A *Adresse :* "+" "+$(".adresse").val()+" %0A"+" %0A"+" %0A";
//var href = "{{"https://wa.me/"~objetAbonne.tel1~"?text="}}";
var href = "https://wa.me/22890188159?text=";
document.location.href = href +msgInfo+ nomPrenom+ tel+ adresse+ msg;
}else{
alert("Veuillez remplir les information sur votre identité ");
}
}
</script>
{% endblock %}
</html>