{% set menudisplay = 0 %}
{% extends "Theme/Users/User/layoutuser.html.twig" %}
{% block meta %}
{{ parent() }}
<meta name="keywords" content="{{ site }}, Business, Innovation,Administration"/>
<meta name="author" content="Noel Kenfack"/>
<meta name="description" content="{{ site }} | Inscription | Cameroun | {{ metier }}"/>
{% endblock %}
{% block title %}
{{ parent() }} | Accueil
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
.box-slide-top{
height: 120px; border: 1px solid #ddd; margin: 2px 0px;
padding: 3px;
border-radius: 5px;
background: #fff;
}
.controls{
background: #fff;
margin-top: 2px;
padding: 2px;
border-radius: 0px 0px 5px 5px;
}
.controls a{
background: #f5f5f5;
padding: 1px 5px;
border-radius: 5px;
display: inline-block;
font-size: 10px;
}
.box-slide-top:hover{
background: #f7f7f7;
border: 1px solid green;
}
.carousel-link{
display: block!important;
}
.carousel-link img:hover{
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
</style>
{% endblock %}
{% block userblog_body %}
<!-- Slider Area -->
<section class="hero-slider" style="background-image: url('https://via.placeholder.com/1900x700');">
<!-- Single Slider -->
<div class="single-slider">
<div class="container">
<div class="row no-gutters">
<div class="col-lg-6 offset-lg-3 col-12" style="padding: 0px;">
<div class="text-inner" style="background: #fff; min-height: 482px; margin: 16px 3px 0px 3px; border-radius: 5px; padding-top: 20px;">
<div id="carouselIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
{% for silde in liste_slide %}
<li data-target="#carouselIndicators" data-slide-to="{{ loop.index0 }}" class="{% if loop.first %}active{% endif %}"></li>
{% endfor %}
</ol>
<div class="carousel-inner">
{% for silde in liste_slide %}
<div class="carousel-item {% if loop.first %}active{% endif %}">
<a href="#!" class="carousel-link">
<img src="{% if silde.src != null %}{{ asset(silde.getwebpath) }}{% else %}{{ asset('template/images/tresorerie.jpg') }}{% endif %}" alt="First slide" style="width: 100%; height: 445px;">
<div class="carousel-caption text-center">
<h2 class="white-text-shadow">{{ silde.titre }}</h2>
</div>
</a>
</div>
{% endfor %}
</div>
<a class="carousel-control-prev" data-target="#carouselIndicators" href="#!" role="button" data-slide="prev">
<img src="{{ asset('template/images/arrow-left-acc.svg') }}" class="indicateur-carousel"/>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" data-target="#carouselIndicators" href="#!" role="button" data-slide="next">
<img src="{{ asset('template/images/arrow-right-acc.svg') }}" class="indicateur-carousel"/>
<span class="sr-only">Next</span>
</a>
</div>
<!--div class="row">
<div class="col-lg-12 col-12">
<div class="hero-text">
<h1><span>UP TO 50% OFF </span>Shirt For Man</h1>
<p>Maboriosam in a nesciung eget magnae <br> dapibus disting tloctio in the find it pereri <br> odiy maboriosm.</p>
<div class="button">
<a href="#" class="btn">Shop Now!</a>
</div>
</div>
</div>
</div-->
</div>
</div>
<div class="col-lg-3 col-12">
<div class="text-inner" style="height: 510px; margin-top: 15px;">
<ul class="newsticker" style="height: 450px; bottom: 0px;">
{% for offre in liste_offre|slice(0,8) %}
<li class="box-slide-top">
<a href="{% if offre.link != null %}{{ offre.link }}{% else %}{{ path('produit_produit_tous_produits_souscategorie_binplace_market', {'id': offre.projet.id, 'scat': offre.souscategorie.id }) }}{% endif %}" style="display: inline-block!important; height: 100%!important; width: 100%!important; position: sticky;">
<div class="row" style="padding: 4px 2px;">
<div style="width: 35%!important; padding: 0px 7px;">
<img src="{% if offre.src != 'source' %}{{ asset(offre.getwebpath) }}{% else %}{{ asset('template/images/assistance-bg.jpg') }}{% endif %}" style="height: 90%!important; width: 100%!important; display: inline-block;"/>
</div>
<div style="width: 65%!important; padding: 0px 7px;">
<strong class="coustom-my-text" style="display: block;">{{ offre.projet.name(30) }}</strong>
{{ offre.titre }}
</div>
</div>
<span style="position: absolute; right: 7px; bottom: 15px; padding: 2px; border-radius: 5px; background: #f4f4f4;">Consulter</span>
</a>
</li>
{% endfor %}
</ul>
<div class="controls" style="text-align: right!important; padding-left: 5px; padding-right: 5px;"><a href="{{ path('produit_produit_speciales_offres') }}" style="float: left;"><i class="ti-thought"></i> Offres spéciales</a> <a class="prev-button" href="#!" title="Précédent"><span class="fa fa-arrow-circle-left"></span></a> | <a class="next-button" href="#!" title="Suivant"><span class="fa fa-arrow-circle-right"></span></a> | <a class="stop-button" href="#!" title="Pause"><span class="fa fa-stop"></span></a> | <a class="start-button" href="#!" title="Arrêter/Jouer"><span class="fa fa-play"></span></a> </div>
</div>
</div>
</div>
</div>
</div>
<!--/ End Single Slider -->
</section>
<script type="text/javascript">
var multilines = $('.newsticker').newsTicker({
row_height: 150,
speed: 50,
prevButton: $('.prev-button'),
nextButton: $('.next-button'),
stopButton: $('.stop-button'),
startButton: $('.start-button'),
});
</script>
<style>
.box-hover {
position:relative;
width: 100%;
height: 100%;
background:#000;
box-sizing:border-box;
overflow:hidden;
box-shadow:0 5px 10px rgba(0,0,0,.8);
}
.box-hover:before {
content:'';
position:absolute;
top:10px;
left:10px;
right:10px;
bottom:10px;
border-top:1px solid #fff;
border-bottom:1px solid #fff;
box-sizing:border-box;
transition:0.5s;
transform: scaleX(0);
opacity:0;
}
.box-hover:hover:before {
transform:scaleX(1);
opacity:1;
}
.box-hover:after {
content:'';
position:absolute;
top:10px;
left:10px;
right:10px;
bottom:10px;
border-left:1px solid #fff;
border-right:1px solid #fff;
box-sizing:border-box;
transition:0.5s;
transform: scaleY(0);
opacity:0;
}
.box-hover:hover:after {
transform:scaleY(1);
opacity:1;
}
.box-hover .imgBox {
position:relative;
}
.box-hover .imgBox img {
width:100%;
transition:0.5s;
}
.box-hover:hover .imgBox img {
opacity:.2;
transform:scale(1.2);
}
.box-hover .content {
position:absolute;
width:100%;
top:40%;
transform:translateY(-50%);
z-index:2;
padding:20px;
box-sizing:border-box;
text-align:center;
}
.box-hover .content h2 {
margin: 0 0 10px;
padding:0;
color:#fff;
transition:0.5s;
transform:translateY(-50px);
opacity:0;
visibility:hidden;
}
.box-hover .content p {
margin:0;
padding:0;
color:#fff;
transform:translateY(50px);
opacity:0;
visibility:hidden;
}
.box-hover:hover .content h2,
.box-hover:hover .content P {
opacity:1;
visibility:visible;
transform:translateY(0px);
}
</style>
<section>
<div class="container">
<div class="row">
<div class="col-md-12" >
<section class="logo-partner" style="background: #f2f2f2;">
<div class="my-container">
<div class="cover-wrapper" style="height: 120px;">
<div id="client-logos" class="owl-carousel text-center">
{% for marque in liste_marque %}
<div class="item" style="padding: 0px!important;">
<a href="{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idmarque': marque.id }) }}" value="{{ marque.id }}" class="box-hover open_scat_catalogue" style="display: inline-block;">
<div class="imgBox">
<img src="{% if marque.src != null %}{{ asset(marque.getwebpath) }}{% else %}{{ asset('template/images/logo-afh.png') }}{% endif %}" style="width: 100%!important; height: auto;">
</div>
<div class="content">
<p>
<strong>{{ marque.nom }}</strong></br>
{% set nbproduits = marque.produits|length %}
<span>{{ nbproduits }} produit(s)</span>
</p>
</div>
</a>
</div>
{% else %}
<!-- div class="item">
<a href="" style="display: block;" >
<img src="{{ asset('template/images/domainebox.png') }}" alt=""/>
<div>Une Bonne No</div>
</a>
</div>
<div class="item">
<a href="" style="display: block;">
<img src="{{ asset('template/images/i-web.png') }}" alt=""/>
<div>Une Bonne No</div>
</a>
</div>
<div class="item">
<a href="" style="display: block;">
<img src="{{ asset('template/images/logo-afh.png') }}" alt=""/>
<div>Une Bonne No</div>
</a>
</div>
<div class="item">
<a href="" style="display: block;">
<img src="{{ asset('template/images/ovh-host.png') }}" alt=""/>
<div>Une Bonne No</div>
</a>
</div>
<div class="item">
<a href="" style="display: block;">
<img src="{{ asset('template/images/france-dns.png') }}" alt=""/>
<div>Une Bonne No</div>
</a>
</div>
<div class="item">
<a href="" style="display: block;">
<img src="{{ asset('template/images/logo-cpanel.png') }}" alt=""/>
<div>Une Bonne No</div>
</a>
</div>
<div class="item">
<a href="" style="display: block;">
<img src="{{ asset('template/images/logo-oj.png') }}" alt=""/>
<div>Une Bonne No</div>
</a>
</div -->
<div class="item" style="padding: 0px!important;">
<a href="#!" class="box-hover open_scat_catalogue" style="display: inline-block;">
<div class="imgBox">
<img src="{{ asset('template/images/part01.jpeg') }}" style="height: 100px;">
</div>
<div class="content">
<p>
<strong>Nom structure</strong></br>
<span>Partenaires</span>
</p>
</div>
</a>
</div>
<div class="item" style="padding: 0px!important;">
<a href="#!" class="box-hover open_scat_catalogue" style="display: inline-block;">
<div class="imgBox">
<img src="{{ asset('template/images/part02.jpeg') }}" style="height: 100px;">
</div>
<div class="content">
<p>
<strong>Nom structure</strong></br>
<span>Partenaires</span>
</p>
</div>
</a>
</div>
<div class="item" style="padding: 0px!important;">
<a href="#!" class="box-hover open_scat_catalogue" style="display: inline-block;">
<div class="imgBox">
<img src="{{ asset('template/images/part03.jpeg') }}" style="height: 100px;">
</div>
<div class="content">
<p>
<strong>Nom structure</strong></br>
<span>Partenaires</span>
</p>
</div>
</a>
</div>
<div class="item" style="padding: 0px!important;">
<a href="#!" class="box-hover open_scat_catalogue" style="display: inline-block;">
<div class="imgBox">
<img src="{{ asset('template/images/part04.jpeg') }}" style=" height: 100px;">
</div>
<div class="content">
<p>
<strong>Nom structure</strong></br>
<span>Partenaires</span>
</p>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
<script type="text/javascript">
$('#client-logos').owlCarousel({
loop:true,
margin:15,
nav:true,
responsive:{
0:{
items:2
},
600:{
items:4
},
1000:{
items:6
}
},
navText: ["<img src='{{ asset('template/images/av8a49a4f81c3318dc69d.png') }}'/>","<img src='{{ asset('template/images/avcc910c4ee5888b858fe.png') }}'/>"]
});
</script>
</div>
</div>
</div>
</section>
<!--/ End Slider Area -->
<style>
.card-view{
-webkit-box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);
box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);
border-radius: 4px;
padding: 22px;
margin-bottom: 20px;
background: #fff;
max-width: 100%;
border-right: 3px solid green;
}
.card-view:hover {
box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.01);
background: #f9f9f9;
cursor: pointer;
border-right: 3px solid blue;
}
.flex-row {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.spacer {
padding-top: 50px;
padding-bottom: 50px;
}
.bg-gray{
background: #F8F8F8;
}
.no-margin{
margin: 0 !important;
}
.flex-row .flex-col{
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
position: relative;
width: 100%;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
.r-layout {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
position: relative;
}
.r-layout .r-img {
position: relative;
width: 199px;
height: 192px;
margin-right: 20px;
}
.cm-sm {
width: 154px !important;
height: 156px !important;
}
.r-layout .r-img img {
width: 100%;
height: 100%;
border-radius: 3px;
-o-object-fit: cover;
object-fit: cover;
}
.r-layout .s-tag {
position: absolute;
top: 0;
right: 0;
font-weight: 500;
margin-right: 0;
}
.s-tag {
width: 41px;
height: 36px;
background: transparent;
color: #ed6e11;
border-radius: 3px;
background: var(--theme-color1);
text-align: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
font-weight: bold;
margin-right: 10px;
margin-top: -25px;
}
.card-sm-content .r-layout .r-content .title {
font-size: 17px;
}
.r-layout .r-content .title {
font-size: 22px;
font-weight: 600;
color: #212121;
margin: 0;
}
.title {
font-size: 28px;
font-weight: bold;
margin: 0;
}
.r-layout .r-content p {
font-size: 14px;
color: #666666;
margin: 0;
margin-bottom: 10px;
}
.taglist {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-bottom: 10px;
}
.taglist .tag:first-child {
margin-left: 0;
}
.taglist .tag {
margin-left: 10px;
}
.tag {
height: 26px;
border-radius: 2px;
background-color: #e4e4e4;
font-size: 14px;
color: #666666;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
padding-left: 4px;
padding-right: 4px;
}
.r-layout .r-content p {
font-size: 14px;
color: #666666;
margin: 0;
margin-bottom: 10px;
}
.r-layout .r-content .color-text {
font-weight: 600;
color: #00796b;
}
.r-layout .r-content p {
font-size: 14px;
color: #666666;
margin: 0;
margin-bottom: 10px;
}
/* common css up */
.h3-titlte {
font-size: 20px;
font-weight: 600;
color: #212121;
margin-top: 30px;
margin-bottom: 15px;
}
.panel-detail-top{
background: #fff!important;
}
.section-tabs {
display: none;
padding: 20px 0 0;
border-top: 1px solid #ddd;
}
.input-tabs {
display: none!important;
}
.label-tab{
display: inline-block;
margin: 0 0 -1px;
padding: 15px 10px;
font-weight: 600;
text-align: center;
color: #bbb;
border: 1px solid transparent;
font-size: 14px!important;
height: 50px!important;
}
.label-tab:after{
border: 2px solid transparent!important;
display: none;
}
.label-tab:before{
border: 2px solid transparent!important;
padding-top: 7px!important;
margin-left: 7px!important;
}
.label-tab:before{
font-family: fontawesome;
font-weight: normal;
margin-right: 10px;
}
.label-tab[for*='1']:before {
content: '\f1cb';
}
.label-tab[for*='2']:before {
content: '\f17d';
}
.label-tab[for*='3']:before {
content: '\f16b';
}
.label-tab[for*='4']:before {
content: '\f1a9';
}
.label-tab:hover {
color: #888;
cursor: pointer;
}
.input-tabs:checked + .label-tab {
color: #555;
border: 1px solid #ddd;
border-top: 2px solid #092759;
border-bottom: 1px solid #fff;
}
#tab-1:checked ~ #content1,
#tab-2:checked ~ #content2,
#tab-3:checked ~ #content3,
#tab-4:checked ~ #content4 {
display: block;
}#tab-5:checked ~ #content5 {
display: block;
}
@media screen and (max-width: 650px) {
.label-tab {
font-size: 0;
}
.label-tab:before {
margin: 0;
font-size: 18px;
}
}
@media screen and (max-width: 400px) {
.label-tab {
padding: 15px;
}
}
.tab-label{
font-family: 'Montserrat', sans-serif!important;
}
/* mixin for multiline */
.card2 {
border: 0;
border-radius: 0;
background-color: #f4f4f4;
margin-top: -20px;
}
.card-img-top {
position: relative;
padding: 15px;
width: 100%;
height: 250px;
-o-object-fit: contain;
object-fit: contain;
}
.card-body {
border-radius: 15px 15px 0px 0px;
padding-top: 100px;
background-color: #fff;
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
height: 280px;
}
.card-text {
display: block;
overflow: hidden;
font-size: 16px;
line-height: 1.5;
max-height: 72px;
}
</style>
<section class="theme-bg-light" style="background: #f4f4f4; padding: 20px 0px;">
<div class="container">
<style>
div.demotabs {
border: 2px dashed #e6e6e6;
border-radius: .8125rem;
box-shadow: inset 0px 0px 1.625rem rgba(0, 0, 0, 0.05);
margin-top: 1.625rem;
padding: 15px;
background: #fff;
}
.demotabs:hover .owl-next img, .demotabs:hover .owl-prev img{
background: #fff!important;
display: inline-block!important;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
cursor: pointer;
}
.demotabs .owl-next img, .demotabs .owl-prev img{
top: 150px!important;
display: none;
height: 50px;
width: 50px;
padding: 15px;
}
.demotabs .owl-next img:hover, .demotabs .owl-prev img:hover{
background: #f2f2f2;
border: 1px solid red;
}
.default-item{
font-weight: nomal; font-size: 15px;
}
.default-item .diviser-item{
width: 120px; height: 7px; background: #fff; margin-top: 15px;
}
.active-item{
font-weight: bold; font-size: 25px;
}
.active-item .diviser-item{
width: 120px; height: 7px; margin-top: 15px;
background-color: var(--bg-principal)!important;
}
#produits-enregistres, #produits-nouveaux{
display: none;
}
</style>
<div class="demotabs">
<div class="tabs-container" style="padding-top: 15px; border: none;">
<div class="row" style="margin-bottom: 30px;">
<div class="col-md-4">
<div class="default-item active-item" value="1">
<a href="#!">Recommandations</a>
<div class="diviser-item"></div>
</div>
</div>
<div class="col-md-4">
<div class="default-item" value="2">
<a href="#!">Enregistrements</a>
<div class="diviser-item"></div>
</div>
</div>
<div class="col-md-4">
<div class="default-item" value="3">
<a href="#!">Nouveaux Produits</a>
<div class="diviser-item"></div>
</div>
</div>
</div>
<script type="text/javascript">
$('.default-item').click(function(){
$('.default-item').removeClass('active-item');
$(this).addClass('active-item');
$('.carousel-product').hide();
if($(this).attr('value') == 1)
{
$('#produits-recommandes').show();
}else if($(this).attr('value') == 2){
$('#produits-enregistres').show();
}else{
$('#produits-nouveaux').show();
}
});
</script>
<div id="produits-recommandes" class="owl-carousel text-center carousel-product">
{% for produit in produit_recommander %}
{% if produit.ancienPrixProduit > 0 %}
{% set taux = (produit.newprise - produit.ancienPrixProduit)/produit.ancienPrixProduit %}
{% else %}
{% set taux = 0 %}
{% endif %}
{% set taux = taux*100 %}
{% set img = produit.getBestProduit %}
<div class="item-2">
<div class="card2">
<img src="{% if img != null %}{{ asset(img.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}" class="card-img-top" style="margin-bottom: -15px; position: relative; z-index: 1;"/>
<div class="card-body" style="position: relative; z-index: 2;">
<h5 class="card-title"><a href="{{ path('produit_produit_detail_produit_market', {'id': produit.id }) }}">{{ produit.nom }}</a></h5>
<p class="card-text">{{ produit.description }}</p>
<div class="text-center" style="margin-top: 7px;">
<a href="#!" class="open-modal-souscription-offert" value="{{ produit.id }}" name="0"><button type="button" class="button-hover" name="button"> Ajouter <span class="fa fa-plus"></span></button></a>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<script type="text/javascript">
$('#produits-recommandes').owlCarousel({
loop:true,
margin:15,
nav:true,
responsive:{
0:{
items: 1
},
600:{
items: 3
},
1000:{
items: 4
}
},
navText: ["<img src='{{ asset('template/images/av8a49a4f81c3318dc69d.png') }}'/>","<img src='{{ asset('template/images/avcc910c4ee5888b858fe.png') }}'/>"]
});
</script>
<div id="produits-enregistres" class="owl-carousel text-center carousel-product">
{% for enregistrement in liste_enregistrement %}
{% set produit = enregistrement.produit %}
{% if produit.ancienPrixProduit > 0 %}
{% set taux = (produit.newprise - produit.ancienPrixProduit)/produit.ancienPrixProduit %}
{% else %}
{% set taux = 0 %}
{% endif %}
{% set taux = taux*100 %}
{% set img = produit.getBestProduit %}
<div class="item-2">
<div class="card2">
<img src="{% if img != null %}{{ asset(img.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}" class="card-img-top" style="margin-bottom: -15px; position: relative; z-index: 1;"/>
<div class="card-body" style="position: relative; z-index: 2;">
<h5 class="card-title"><a href="{{ path('produit_produit_detail_produit_market', {'id': produit.id }) }}">{{ produit.nom }}</a></h5>
<p class="card-text">{{ produit.contenu }}</p>
<div class="text-center" style="margin-top: 7px;">
<a href="#!" class="open-modal-souscription-offert" value="{{ produit.id }}" name="0"><button type="button" class="button-hover" name="button"> Ajouter <span class="fa fa-plus"></span></button></a>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<script type="text/javascript">
$('#produits-enregistres').owlCarousel({
loop:true,
margin:15,
nav:true,
responsive:{
0:{
items: 1
},
600:{
items: 3
},
1000:{
items: 4
}
},
navText: ["<img src='{{ asset('template/images/av8a49a4f81c3318dc69d.png') }}'/>","<img src='{{ asset('template/images/avcc910c4ee5888b858fe.png') }}'/>"]
});
</script>
<div id="produits-nouveaux" class="owl-carousel text-center carousel-product">
{% for i in range(1, 6) %}
<div class="item-2">
<div class="card2">
<img src="https://consumer-img.huawei.com/content/dam/huawei-cbg-site/common/mkt/list-image/wearables/watch-gt/watch-gt-listimage-black.png" class="card-img-top" style="margin-bottom: -15px; position: relative; z-index: 1;"/>
<div class="card-body" style="position: relative; z-index: 2;">
<h5 class="card-title">nouveaux</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<div class="text-center" style="margin-top: 7px;">
<a href="#!" class="open-modal-souscription-offert" value="1" name="0"><button type="button" class="button-hover" name="button"> Ajouter <span class="fa fa-plus"></span></button></a>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<script type="text/javascript">
$('#produits-nouveaux').owlCarousel({
loop:true,
margin:15,
nav:true,
responsive:{
0:{
items: 1
},
600:{
items: 3
},
1000:{
items: 4
}
},
navText: ["<img src='{{ asset('template/images/av8a49a4f81c3318dc69d.png') }}'/>","<img src='{{ asset('template/images/avcc910c4ee5888b858fe.png') }}'/>"]
});
</script>
{#
<h2 class="tab-label">Recommandations</h2>
<p style="margin: 0px; ">
<div class="row" style="margin: 0px; ">
{% for produit in produit_recommander %}
{% if produit.ancienPrixProduit > 0 %}
{% set taux = (produit.newprise - produit.ancienPrixProduit)/produit.ancienPrixProduit %}
{% else %}
{% set taux = 0 %}
{% endif %}
{% set taux = taux*100 %}
<div class="col-md-4 grid-margin grid-margin-md-0">
<a href="{{ path('produit_produit_detail_produit_market', {'id': produit.id }) }}" class="card-view" style="display: inline-block!important; text-decoration: none;">
<div class="r-layout">
<div class="r-img cm-sm">
{% set img = produit.getBestProduit %}
<img src="{% if img != null %}{{ asset(img.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}">
</div>
<div class="r-content">
<div class="s-tag"><span class="mdi-action-stars"></span></div>
<h4 class="title">{{ produit.nom }}</h4>
<p>
{{ produit.souscategorie.nom }}
</p>
<div class="taglist">
<div class="tag" style="text-decoration: line-through">{{ produit.lastprise }}{{ devise }}</div>
<div class="tag">{{ produit.newprise }}{{ devise }}</div>
<div class="tag">NIRF</div>
</div>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
</p>
<h2 class="tab-label collapsed">Mes enregistrements</h2>
<p>
<div class="row" style="margin: 20px 0px; ">
{% for enregistrement in liste_enregistrement %}
{% set produit = enregistrement.produit %}
{% if produit.ancienPrixProduit > 0 %}
{% set taux = (produit.newprise - produit.ancienPrixProduit)/produit.ancienPrixProduit %}
{% else %}
{% set taux = 0 %}
{% endif %}
{% set taux = taux*100 %}
<div class="col-md-4 grid-margin grid-margin-md-0">
<a href="{{ path('produit_produit_detail_produit_market', {'id': produit.id }) }}" class="card-view" style="display: inline-block!important; text-decoration: none;">
<div class="r-layout">
<div class="r-img cm-sm">
{% set img = produit.getBestProduit %}
<img src="{% if img != null %}{{ asset(img.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}">
</div>
<div class="r-content">
<div class="s-tag"><span class="mdi-action-stars"></span></div>
<h4 class="title">{{ produit.nom }}</h4>
<p>
{{ produit.souscategorie.nom }}
</p>
<div class="taglist">
<div class="tag" style="text-decoration: line-through">{{ produit.lastprise }}{{ devise }}</div>
<div class="tag">{{ produit.newprise }}{{ devise }}</div>
<div class="tag">NIRF</div>
</div>
<p>
{{ produit.description }}
</p>
<p class="color-text">
{% if taux > 0 %}Augmentation de{% else %}Réduction de {% endif %}{{ taux|round }}% sur ce produit.
</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
</p>
<h2 class="tab-label collapsed">Commandes en cours ...</h2>
<p>
<div class="row" style="margin: 20px 0px; ">
<div class="col-md-4">
<div class="card-view" style="min-height: 200px; padding: 15px; line-height: 15px; -webkit-box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);">
<div class="row">
<div class="col-md-3">
<img class="img-md rounded" src="{{ asset('template/images/icons8-buying-100.png') }}" alt="" style="width: 100%;"/>
</div>
<div class="col-md-9">
<h2 style="font-size: 20px;">Etat de votre panier</h2>
<div style="width: 100px; margin-top: 15px;"><span class="tag">{{ prod_panier|length }} produit(s)</span></div><br/>
{% if prod_panier|length > 0 %}
<a href="{{ path('produit_produit_reglement_commande_du_panier', {'id': oldpanier.id}) }}" class="btn bg-struct">Passer à la caisse</a>
{% else %}
<a href="{{ path('produit_produit_acceuil_sousdomaine_type_market_place') }}" class="btn bg-struct">Passer à la caisse</a>
{% endif %}
</div>
</div>
</div>
</div>
{% for propan in prod_panier|slice(0,2) %}
{% if propan.produit.ancienPrixProduit > 0 %}
{% set taux = (propan.produit.newprise - propan.produit.ancienPrixProduit)/propan.produit.ancienPrixProduit %}
{% else %}
{% set taux = 0 %}
{% endif %}
{% set taux = taux*100 %}
<div class="col-md-4 grid-margin grid-margin-md-0">
<a href="{{ path('produit_produit_detail_produit_market', {'id': propan.produit.id }) }}" class="card-view" style="display: inline-block!important; text-decoration: none;">
<div class="r-layout">
<div class="r-img cm-sm">
{% set img = propan.produit.getBestProduit %}
<img src="{% if img != null %}{{ asset(img.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}">
</div>
<div class="r-content">
<div class="s-tag"><span class="mdi-action-stars"></span></div>
<h4 class="title">{{ propan.produit.nom }}</h4>
<p>
{{ propan.produit.souscategorie.nom }}
</p>
<div class="taglist">
<div class="tag" style="text-decoration: line-through">{{ propan.produit.lastprise }}{{ devise }}</div>
<div class="tag">{{ propan.produit.newprise }}{{ devise }}</div>
<div class="tag">NIRF</div>
</div>
<p>
{{ propan.produit.description }}
</p>
<p class="color-text">
{% if taux > 0 %}Augmentation de{% else %}Réduction de {% endif %}{{ taux|round }}% sur ce produit.
</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
</p>
<h2>Votre partenaire idéal</h2>
{% if aproposaccueil != null %}
<p>{{ aproposaccueil.valeur }} {% if aproposaccueil.link != null %}<a href="{{ aproposaccueil.link }}" style="color: green;">En savoir plus <span class="fa fa-angle-right"></span></a>{% endif %}</p>
{% else %}
<p>Aucun article trouvé pour cette section</p>
{% endif %}
#}
</div>
</div>
</div>
</section>
<style>
.ux-card {
-webkit-box-shadow: 0 1px 6px 0 rgba(117,117,117,.25);
box-shadow: 0 1px 6px 0 rgba(117,117,117,.25);
margin: 0 0 20px;
color: #444;
border: 0;
border-radius: 6px;
background: #fff;
cursor: pointer;
text-align: center!important;
height: 400px!important;
width: 100%;
}
.ux-card:hover{
box-shadow: -10px -10px 25px 0px rgba(0,0,0,0.3);
}
/**
* Helper Styles
*/
.ir {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
/**
* Gallery Styles
* 1. Enable fluid images
*/
.gallery {
overflow: hidden;
}
.gallery__hero {
overflow: hidden;
position: relative;
padding: 2em;
margin: 0 0 0.3333333333em;
background: #fff;
}
.is-zoomed .gallery__hero {
cursor: move;
}
.is-zoomed .gallery__hero img {
max-width: none;
position: absolute;
z-index: 0;
top: -50%;
left: -50%;
}
.gallery__hero-enlarge {
position: absolute;
right: 0.5em;
bottom: 0.5em;
z-index: 1;
width: 30px;
height: 30px;
opacity: 0.5;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iNS4wIC0xMC4wIDEwMC4wIDEzNS4wIiBmaWxsPSIjMzRCZjQ5Ij48cGF0aCBkPSJNOTMuNTkzIDg2LjgxNkw3Ny4wNDUgNzAuMjY4YzUuNDEzLTYuODczIDguNjQyLTE1LjUyNiA4LjY0Mi0yNC45MTRDODUuNjg3IDIzLjEwNCA2Ny41OTMgNSA0NS4zNDMgNVM1IDIzLjEwNCA1IDQ1LjM1NGMwIDIyLjI0IDE4LjA5NCA0MC4zNDMgNDAuMzQzIDQwLjM0MyA5LjQgMCAxOC4wNjItMy4yNCAyNC45MjQtOC42NTNsMTYuNTUgMTYuNTZjLjkzNy45MjcgMi4xNjIgMS4zOTYgMy4zODggMS4zOTYgMS4yMjUgMCAyLjQ1LS40NyAzLjM5LTEuMzk2IDEuODc0LTEuODc1IDEuODc0LTQuOTEyLS4wMDItNi43ODh6bS00OC4yNS0xMC43MWMtMTYuOTU0IDAtMzAuNzUzLTEzLjc5OC0zMC43NTMtMzAuNzUyIDAtMTYuOTY0IDEzLjgtMzAuNzY0IDMwLjc1My0zMC43NjQgMTYuOTY0IDAgMzAuNzUzIDEzLjggMzAuNzUzIDMwLjc2NCAwIDE2Ljk1NC0xMy43ODggMzAuNzUzLTMwLjc1MyAzMC43NTN6TTYzLjAzMiA0NS4zNTRjMCAyLjM0NC0xLjkwNyA0LjI2Mi00LjI2MiA0LjI2MmgtOS4xNjR2OS4xNjRjMCAyLjM0NC0xLjkwNyA0LjI2Mi00LjI2MiA0LjI2Mi0yLjM1NSAwLTQuMjYyLTEuOTE4LTQuMjYyLTQuMjYydi05LjE2NGgtOS4xNjRjLTIuMzU1IDAtNC4yNjItMS45MTgtNC4yNjItNC4yNjIgMC0yLjM1NSAxLjkwNy00LjI2MiA0LjI2Mi00LjI2Mmg5LjE2NHYtOS4xNzVjMC0yLjM0NCAxLjkwNy00LjI2MiA0LjI2Mi00LjI2MiAyLjM1NSAwIDQuMjYyIDEuOTE4IDQuMjYyIDQuMjYydjkuMTc1aDkuMTY0YzIuMzU1IDAgNC4yNjIgMS45MDcgNC4yNjIgNC4yNjJ6Ii8+PC9zdmc+);
background-repeat: no-repeat;
transition: opacity 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.gallery__hero-enlarge:hover {
opacity: 1;
}
.is-zoomed .gallery__hero-enlarge {
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iNS4wIC0xMC4wIDEwMC4wIDEzNS4wIiBmaWxsPSIjMzRCZjQ5Ij48cGF0aCBkPSJNOTMuNTkzIDg2LjgxNkw3Ny4wNDUgNzAuMjY4YzUuNDEzLTYuODczIDguNjQyLTE1LjUyNiA4LjY0Mi0yNC45MTRDODUuNjg3IDIzLjEwNCA2Ny41OTMgNSA0NS4zNDMgNVM1IDIzLjEwNCA1IDQ1LjM1NGMwIDIyLjI0IDE4LjA5NCA0MC4zNDMgNDAuMzQzIDQwLjM0MyA5LjQgMCAxOC4wNjItMy4yNCAyNC45MjQtOC42NTNsMTYuNTUgMTYuNTZjLjkzNy45MjcgMi4xNjIgMS4zOTYgMy4zODggMS4zOTYgMS4yMjUgMCAyLjQ1LS40NyAzLjM5LTEuMzk2IDEuODc0LTEuODc1IDEuODc0LTQuOTEyLS4wMDItNi43ODh6TTE0LjU5IDQ1LjM1NGMwLTE2Ljk2NCAxMy44LTMwLjc2NCAzMC43NTMtMzAuNzY0IDE2Ljk2NCAwIDMwLjc1MyAxMy44IDMwLjc1MyAzMC43NjQgMCAxNi45NTQtMTMuNzkgMzAuNzUzLTMwLjc1MyAzMC43NTMtMTYuOTUzIDAtMzAuNzUzLTEzLjgtMzAuNzUzLTMwLjc1M3pNNTguNzcyIDQ5LjYxSDMxLjkyYy0yLjM1NSAwLTQuMjYzLTEuOTA3LTQuMjYzLTQuMjZzMS45MDgtNC4yNjMgNC4yNjItNC4yNjNINTguNzdjMi4zNTQgMCA0LjI2MiAxLjkwOCA0LjI2MiA0LjI2MnMtMS45MSA0LjI2LTQuMjYyIDQuMjZ6Ii8+PC9zdmc+);
}
.gallery__thumbs {
text-align: center;
background: #fff;
}
.gallery__thumbs a {
display: inline-block;
width: 20%;
padding: 0.5em;
opacity: 0.75;
transition: opacity 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.gallery__thumbs a:hover {
opacity: 1;
}
.gallery__thumbs a.is-active {
opacity: 0.2;
}
figure.snip1321{
font-family: 'Raleway', Arial, sans-serif;
position: relative;
overflow: hidden;
width: 100%;
color: #000000;
text-align: center;
-webkit-perspective: 50em;
perspective: 50em;
}
figure.snip1321 * {
-webkit-box-sizing: padding-box;
box-sizing: padding-box;
-webkit-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
figure.snip1321 img {
max-width: 100%;
vertical-align: top;
}
figure.snip1321 figcaption {
top: 50%;
left: 20px;
right: 20px;
position: absolute;
opacity: 0;
z-index: 1;
}
figure.snip1321 h2,
figure.snip1321 h4 {
margin: 0;
}
figure.snip1321 h2 {
font-weight: 600;
}
figure.snip1321 h4 {
font-weight: 400;
text-transform: uppercase;
}
figure.snip1321 i {
font-size: 32px;
}
figure.snip1321:after {
background-color: #ffffff;
position: absolute;
content: "";
display: block;
top: 20px;
left: 20px;
right: 20px;
bottom: 20px;
-webkit-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
-webkit-transform: rotateX(-90deg);
transform: rotateX(-90deg);
-webkit-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%;
opacity: 0;
}
figure.snip1321 a {
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
z-index: 1;
}
figure.snip1321:hover figcaption,
figure.snip1321.hover figcaption {
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
opacity: 1;
-webkit-transition-delay: 0.2s;
transition-delay: 0.2s;
}
figure.snip1321:hover:after,
figure.snip1321.hover:after {
-webkit-transform: rotateX(0);
transform: rotateX(0);
opacity: 0.9;
}
.item{
background: #fff;
border: 1px solid #fff;
}
.item:hover{
background: #f7f7f7;
cursor: pointer;
box-shadow: 0 4px 10px -6px #0005;
border: none;
}
</style>
<div style="background: #f5f7f8; padding-top: 20px;">
<div class="container">
<div class="row" style="margin: 0px 0px 15px 0px; background: #fafafa;">
<div class="col-md-12">
<h3 class="breadcrumbs-title">
Meilleures ventes {{ site }}
<a href="{{ path('produit_produit_acceuil_sousdomaine_type_market_place') }}" class="flat-busness pull-right" style="margin-top: -7px;">Afficher plus</a>
</h3>
<hr>
</div>
<div class="col-md-12">
<div style="overflow: hidden; height: 500px;">
<link rel="stylesheet" href="{{ asset('template/carousel/css/style.css') }}"/>
<div class="resCarousel" data-items="1,3,4,4" data-slide="1" style="overflow: visible; padding-left: 0px; padding-right: 0px;">
<div class="resCarousel-inner">
{% for prod in top_produit %}
{% if prod.ancienPrixProduit > 0 %}
{% set taux = (prod.newprise - prod.ancienPrixProduit)/prod.ancienPrixProduit %}
{% else %}
{% set taux = 0 %}
{% endif %}
{% set taux = taux*100 %}
<div class="item">
<div style="background: #fff; margin-bottom: 5px; padding: 5px;">
<h5><a href="{{ path('produit_produit_detail_produit_market', {'id': prod.id }) }}">{{ prod.name(50) }}</a> </h5>
<div style="margin-top: 5px;"><span style="text-decoration: line-through; font-size: 12px;">{{ prod.ancienPrixProduit }}</span>{{ devise }} <span>{{ prod.newprise }}</span></div>
</div>
<div id="" class="js-gallery gallery" style="border: 1px solid #ddd;">
<!--Gallery Hero-->
<div class="gallery__hero">
<span style="background: yellow; color: green; padding: 5px; display: inline-block;">{% if taux > 0 %}+{% else %}-{% endif %}{{ taux|round }}%</span>
<a href="#!" class="btn bg-struct open-modal-souscription-offert" value="{{ prod.id }}" name="0" style="font-size: 10px; padding: 4px 7px!important; height: 25px; line-height: 15px; border-radius: 7px; float: right; text-transform: capitalize;"><span class="mdi-action-add-shopping-cart" style="font-size: 8px;"></span> Ajouter</a>
<a href="{{ path('produit_produit_detail_produit_market', {'id': prod.id }) }}" class="gallery__hero-enlarge ir"></a>
{% set img = prod.getBestProduit %}
<img src="{% if img != null %}{{ asset(img.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}" style="height: 200px;">
</div>
<!--Gallery Hero-->
<!--Gallery Thumbs-->
<div class="gallery__thumbs">
{% for imge in prod.imgproduits|slice(0,4) %}
<a href="{% if imge != null %}{{ asset(imge.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}" data-gallery="thumb" class="item-image-ca">
<img src="{% if imge != null %}{{ asset(imge.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}" style="height: 40px; width: 40px;">
</a>
{% endfor %}
</div>
<!--Gallery Thumbs-->
</div>
</div>
{% endfor %}
</div>
<button class="btn btn-default leftLst pull-left" style="position: relative; margin-top: -250px; background: #fff; color: #333; padding: 0px;"><i class="fa fa-fw fa-angle-left"></i></button>
<button class="btn btn-default rightLst pull-right" style="position: relative; margin-top: -250px; background: #fff; color: #333; padding: 0px;"><i class="fa fa-fw fa-angle-right"></i></button>
</div>
</div>
<script type="text/javascript" src="{{ asset('template/carousel/js/main.js') }}"></script>
</div>
</div>
</div>
</div>
<section style="padding-top: 20px;">
<div class="container">
<h3>Offres spéciales</h3>
<div class="kapsayici">
<div class="row">
{% for offre in liste_offre %}
<div class="col-md-4 panel-offer text-right">
<div class="slid3">
<!-- <span class="emoji"><img src="{{ asset('template/images/smile.png') }}"> <img src="{{ asset('template/images/hearteye.png') }}"></span> -->
<a href="{% if offre.link != null %}{{ offre.link }}{% else %}{{ path('produit_produit_tous_produits_souscategorie_binplace_market', {'id': offre.projet.id, 'scat': offre.souscategorie.id }) }}{% endif %}">
<div class="resim3">
<img src="{% if offre.src != 'source' %}{{ asset(offre.getwebpath) }}{% else %}{{ asset('template/images/assistance-bg.jpg') }}{% endif %}"/>
<h2>{{ offre.titre }}</h2>
<p>{{ offre.projet.name(30) }}</p>
</div>
</a>
</div>
</div>
{% else %}
<div class="col-md-12">
<div class="text-center" style="height: 400px; padding-top: 100px; background: #fff; display: block; width: 100%!important; border: 1px solid #f4f4f4; border-radius: 5px;">
<span class="fa fa-frown-o"></span> Aucune données disponible pour cette requête.</br>
<hr style="width: 100px; border-bottom: 1px solid red; display: inline-block;">
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
<style>
.owl-theme .owl-nav {
text-align: center;
-webkit-tap-highlight-color: transparent;
position: absolute;
top: -40px;
right: 0px;
}
</style>
<section style="position: sticky;">
<div class="container" style="margin-bottom: -20px;">
<div class="row">
<div class="col-md-12">
<div class="text-left" style="margin-bottom: -10px;margin-top: 20px;">
<h2>Appréciés en ce moment</h2>
<p>Consultez les produits les plus appréciés en ce moment dans notre plateforme</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="owl-carousel staff-list" style="padding-top: 10px;">
{% for produit in top_produit %}
{% include 'Theme/Produit/Produit/Produit/slideproduitdescript.html.twig' %}
{% endfor %}
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".staff-list").owlCarousel({
items:4,
autoplay:false,
margin:30,
loop:true,
nav:true,
responsive:{
0:{
items:1,
nav:true
},
600:{
items:3,
nav:false
},
1000:{
items:4,
nav:true,
loop:false
}
},
navText:["<i class='fa fa-arrow-left'></i>","<i class='fa fa-arrow-right'></i>" ]
});
});
</script>
</div>
</section>
<style>
figure.snip1321{
font-family: 'Raleway', Arial, sans-serif;
position: relative;
overflow: hidden;
width: 100%;
color: #000000;
text-align: center;
-webkit-perspective: 50em;
perspective: 50em;
}
figure.snip1321 * {
-webkit-box-sizing: padding-box;
box-sizing: padding-box;
-webkit-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
figure.snip1321 img {
max-width: 100%;
vertical-align: top;
}
figure.snip1321 figcaption {
top: 50%;
left: 20px;
right: 20px;
position: absolute;
opacity: 0;
z-index: 1;
}
figure.snip1321 h2,
figure.snip1321 h4 {
margin: 0;
}
figure.snip1321 h2 {
font-weight: 600;
}
figure.snip1321 h4 {
font-weight: 400;
text-transform: uppercase;
}
figure.snip1321 i {
font-size: 32px;
}
figure.snip1321:after {
background-color: #ffffff;
position: absolute;
content: "";
display: block;
top: 20px;
left: 20px;
right: 20px;
bottom: 20px;
-webkit-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
-webkit-transform: rotateX(-90deg);
transform: rotateX(-90deg);
-webkit-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%;
opacity: 0;
}
figure.snip1321 a {
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
z-index: 1;
}
figure.snip1321:hover figcaption,
figure.snip1321.hover figcaption {
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
opacity: 1;
-webkit-transition-delay: 0.2s;
transition-delay: 0.2s;
}
figure.snip1321:hover:after,
figure.snip1321.hover:after {
-webkit-transform: rotateX(0);
transform: rotateX(0);
opacity: 0.9;
}
.item{
background: #fff;
border: 1px solid #fff;
}
.item:hover{
border: 1px solid #ddd;
background: #f7f7f7;
cursor: pointer;
}
</style>
<section style="background: #f4f4f4; padding: 20px 0px;">
<div class="container">
<div class="row" style="background: #fafafa; padding: 15px 0px;">
<div class="col-md-12">
<h3 class="breadcrumbs-title">
Catalogue {{ site }}
<a href="{{ path('produit_produit_catalogue_produits') }}" class="flat-busness" style="margin-top: -7px; float: right;">Afficher plus</a>
</h3>
<hr style="margin: 0px; "/>
</div>
{% for scat in top_scat|slice(0,8) %}
<div class="col-md-3" style="border-top: 1px solid #f7f7f7; border-left: 1px solid #f7f7f7; border-right: 1px solid #f7f7f7; padding-top: 7px; padding-bottom: 7px;">
<a href="{{ path('produit_produit_acceuil_sousdomaine_type_market_place', {'idscat': scat.id }) }}" style="display: block;">
<figure class="snip1321">
<div style="text-align: center;">
<img src="{% if scat.src != null %}{{ asset(scat.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}" alt="sq-sample26" style="height: 150px; max-width: 100%;"/>
</div>
<figcaption><i class="ion-upload"></i>
<div>{{ scat.nbproduit }}</div>
<div>Produits</div>
</figcaption>
</figure>
<div style="text-align: center; margin-top: -10px; text-decoration: underline;">
{{ scat.nom }}
</div>
</a>
</div>
{% endfor %}
</div>
</div>
</section>
<style>
/*** START BS OVERRIDES ***/
.features {
padding: 50px 0;
}
.features.light-brown {
background-color: #fff;
padding: 7px;
}
.features h2.section-title {
color: #333333;
font-size: 22px;
margin: 0;
text-align: center;
}
.features .v-tabs .v-tab-head a,
.features .v-tabs a.v-tab-head {
color: #292929;
cursor: pointer;
display: block;
padding: 15px 30px 15px 15px;
border-right: 1px solid #33cc66;
margin: 0;
text-align: right;
font: 20px "Raleway", "franklin-gothic-urw", "Helvectica Neue", helvetica, clean, sans-serif;
}
.features .v-tabs .v-tab-head a.active, .features .v-tabs .v-tab-head a:hover,
.features .v-tabs a.v-tab-head.active,
.features .v-tabs a.v-tab-head:hover {
font-weight: bold;
text-decoration: none;
}
.features .v-tabs .v-tab-head a {
position: relative;
display: block;
}
.features .v-tabs .v-tab-head a.active::after, .features .v-tabs .v-tab-head a.active::before {
content: "";
border-style: solid;
border-width: 15px;
position: absolute;
right: 0;
top: 15px;
transform: rotate(90deg);
-ms-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
-o-transform: rotate(90deg);
-moz-transform: rotate(90deg);
}
.features .v-tabs .v-tab-head a.active::before {
border-color: #3fcf6e transparent transparent;
}
.features .v-tabs .v-tab-head a.active::after {
margin-right: -1px;
border-color: #faf8f5 transparent transparent;
}
.features .v-tabs a.v-tab-head {
border: none;
padding: 15px 0;
text-align: left;
position: relative;
}
.features .v-tabs a.v-tab-head:after {
color: #e2dcd6;
content: "\f054";
font-family: FontAwesome;
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-o-transform: translateY(-50%);
}
.features .v-tabs a.v-tab-head.active::after {
color: #3c6;
content: "\f078";
}
.features .v-tabs .v-tab-pane {
padding: 0 15px;
}
.features .v-tabs .v-tab-pane ul {
list-style: outside none none;
margin: 0;
padding: 0;
}
.features .v-tabs .v-tab-pane ul li {
border-bottom: 1px solid #e2dcd6;
color: #292929;
font-size: 16px;
padding: 15px 0;
}
.features .v-tabs .v-tab-pane ul li i {
color: #4c81b6;
cursor: pointer;
font-size: 14px;
}
.features .v-tabs .v-tab-pane .in {
border-top: none;
padding-top: 0;
}
.features .v-tabs .v-tab-pane .popover {
border: 1px solid #014d7e !important;
border-radius: 0;
width: auto;
margin: 10px 0 0 0;
max-width: 276px;
left: auto;
box-shadow: none;
}
.features .v-tabs .v-tab-pane .popover.bottom .arrow {
border-bottom-color: #014d7e;
}
.features .v-tabs .v-tab-pane .popover .popover-content {
font-size: 14px;
padding: 15px;
text-align: center;
}
@media screen and (max-width: 768px) {
.features.light-brown {
border-top: 0 none;
}
.features h2.section-title {
font-size: 32px;
}
.features .v-tabs .v-tab-pane .in {
border-top: 1px solid #ddd;
border-bottom: 2px solid #ddd;
}
.features .popover {
margin: 10px 5% 0;
max-width: none;
width: 90%;
}
}
</style>
<link rel="stylesheet" href="{{ asset('template/css/bootstrap-3-3-7.css') }}" />
<section class="benefits-section">
<div class="container light-brown features" id="features">
<div class="row">
<div class="col-xs-12 col-md-12 text-center" style="margin-top: 15px;">
<h4 style="display: block!important; width: 100%;"> Produits et points de livraison </h4>
<p style="display: block;"> Découvrez nos zones d'exercice et les coûts de livraison dans ces localités. </p>
</div>
</div>
<div class="row v-tabs" style="padding: 15px 0px!important; margin: 15px!important -15px!important; border-radius: 5px;">
<div class="col-md-4">
<div class="text-inner" style="height: 510px; margin-top: 15px;">
<ul class="newstickerprod" style="height: 450px; bottom: 0px;">
{% for livraison in points_livraison|slice(0,4) %}
{% set img = livraison.produitboutique.produit.getBestProduit %}
<li class="box-slide-top">
<a href="{{ path('produit_produit_detail_produit_market', {'id': livraison.produitboutique.produit.id }) }}" style="display: inline-block!important; height: 100%!important; width: 100%!important; position: sticky;">
<div class="row" style="padding: 4px 2px;">
<div style="width: 35%!important; padding: 0px 7px;">
<img src="{% if img != null %}{{ asset(img.getwebpath) }}{% else %}{{ asset('template/images/test.png') }}{% endif %}" style="height: 90%!important; width: 100%!important; display: inline-block;"/>
</div>
<div style="width: 65%!important; padding: 0px 7px;">
<strong class="coustom-my-text" style="display: block;">{% if livraison.produitboutique.nom != null %}{{ livraison.produitboutique.nom }}{% else %}{{ livraison.produitboutique.produit.nom }}{% endif %}</strong>
<strong>{% if livraison.produitboutique.newprise != null %}{{ livraison.produitboutique.newprise }}{% else %}{{ livraison.produitboutique.produit.newprise }}{% endif %}{{ devise }}</strong> - Livraison: {{ livraison.montant }} {{ devise }}<br/>
{% if livraison.ville != null %}{{ livraison.ville.nom }} <span class="fa fa-angle-right"></span> {% endif %}{{ livraison.quartiertext }}
</div>
</div>
<span style="position: absolute; right: 7px; bottom: 15px; padding: 2px; border-radius: 5px; background: #f4f4f4;">Consulter</span>
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-sm-3 v-tab-head hidden-xs">
{% for ville in liste_ville %}
<a class="v-tab-link text-left {% if loop.first %}active{% endif %}" data-target="#coreFeatures-service-{{ ville.id }}">
<img src="{% if ville.src != null %}{{ asset(ville.getwebpath) }}{% else %}{{ asset('template/images/logomarket.png') }}{% endif %}" alt="" class="img-thumbnail" style="height: 40px; float: left; margin-right: 7px;"/>
{{ ville.nom }}
<div style="font-size: 12px; font-weight: normal;">{% if ville.pays != null %}{{ ville.pays.nom }}{% else %}Pays non indiqué{% endif %}</div>
</a>
{% endfor %}
</div>
<div class="col-sm-5 v-tab-pane">
{% for ville in liste_ville %}
<a class="v-tab-head v-tab-link visible-xs {% if loop.first %}active{% endif %}" data-target="#coreFeatures-service-{{ ville.id }}">
{{ ville.nom }}
</a>
<div id="coreFeatures-service-{{ ville.id }}" class="collapse fade {% if loop.first %}in{% endif %}">
<ul>
{% for livraison in ville.coutlivraisons|slice(0,9) %}
<li> {{ livraison.produitboutique.produit.nom }} <i data-toggle="popover" data-placement="bottom" data-content="{{ livraison.produitboutique.produit.nom }}" class="fa fa-question-circle" data-original-title="" title=""></i><a class="pull-right" href="{{ path('produit_produit_detail_produit_market', {'id': livraison.produitboutique.produit.id }) }}">Consulter</a></li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<div style="display:flex; justify-content: center; margin-top: 5px; margin-bottom: 20px;">
<a href="{{ path('produit_produit_localisation_popular_points') }}"><button type="button" class="button-hover" name="button">Liste complète <span class="fa fa-angle-right"></span></button></a>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('[data-toggle="popover"]').popover({trigger: 'click'});
$('.v-tab-head .v-tab-link').mouseover(tabHandler);
$('.v-tab-head.v-tab-link').click(tabHandler);
});
var tabHandler = function(e) {
e.preventDefault();
var target = $($(this).data('target')),
tabLink = $('.v-tab-link[data-target="' + $(this).data('target') + '"]');
tabPanelToShow(tabLink);
tabLinkToActivate(target);
};
var tabPanelToShow = function(elem) {
$('.v-tab-link').removeClass('active').parent().find(elem).addClass('active');
};
var tabLinkToActivate = function(elem) {
$('.v-tab-pane').children('div').removeClass('in').parent().find(elem).addClass('in');
};
</script>
</div>
</section>
<style>
.card-code {
position: relative;
cursor: pointer;
height: 170px;
background: url("https://image.freepik.com/free-vector/colorful-gradient-liquid-shapes-background_23-2148250143.jpg"),
#ffffff;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: 25px;
margin: 10px;
transition: 0.25s ease-in;
}
.card-code .overlay-code {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
height: 170px;
background: linear-gradient(
120.55deg,
rgba(39, 39, 39, 0.38) 0%,
rgba(39, 39, 39, 0.2394) 100%
);
border-radius: 25px;
}
.card-code .content-code {
position: absolute;
bottom: 10px;
left: 25px;
}
.card-code .content-code h4 {
font-family: Ubuntu;
font-style: normal;
font-weight: bold;
font-size: 18px;
color: #f2f2f2;
margin-bottom: 10px;
margin-top: 0;
}
.card-code .content-code h6 {
font-family: Ubuntu;
font-style: normal;
font-weight: 500;
font-size: 14px;
color: #f2f2f2;
margin-bottom: 10px;
margin-top: 0;
}
.card-code .fav {
position: absolute;
top: 25px;
right: 25px;
cursor: pointer;
}
.card-code .fav i {
color: white;
}
.card-code:hover {
transform: scale(1.05);
}
.card-code:hover {
background-position: top;
}
</style>
<section style="padding: 20px 0px; margin-bottom: 15px;">
<div class="container">
<div style="background: #f4f4f4; padding: 15px; border-radius: 7px;">
{% if aproposaccueil != null %}
<h5>{{ aproposaccueil.valeur }}</h5>
<div>
{{ aproposaccueil.link|raw }}
</div>
{% else %}
<h2>À propos {{ site }}</h2>
{% endif %}
</div>
</div>
</section>
{#
<section style="margin: 15px 0px 30px 0px;">
<div class="container">
<h3>Coupons de réductions</h3>
<div class="row">
{% for i in range(1,6) %}
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="card-code">
<div style="font-size: 20px; position: absolute; top: 15px; left: 15px; color: #fff;">-25000 XAF</div>
<div class="overlay-code"></div>
<div class="content-code">
<h4>UI DESIGN COURSE</h4>
<h6>4 Réservations | 13 Places</h6>
</div>
<div class="fav">
<i class="fa fa-heart"></i>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
#}
<script type="text/javascript">
var App = (function () {
//=== Use Strict ===//
'use strict';
//=== Private Variables ===//
var gallery = $('.js-gallery');
//=== Gallery Object ===//
var Gallery = {
zoom: function(imgContainer, img) {
var containerHeight = imgContainer.outerHeight(),
src = img.attr('src');
if ( src.indexOf('/products/normal/') != -1 ) {
// Set height of container
imgContainer.css( "height", containerHeight );
// Switch hero image src with large version
img.attr('src', src.replace('/products/normal/', '/products/zoom/') );
// Add zoomed class to gallery container
gallery.addClass('is-zoomed');
// Enable image to be draggable
img.draggable({
drag: function( event, ui ) {
ui.position.left = Math.min( 100, ui.position.left );
ui.position.top = Math.min( 100, ui.position.top );
}
});
} else {
// Ensure height of container fits image
imgContainer.css( "height", "auto" );
// Switch hero image src with normal version
img.attr('src', src.replace('/products/zoom/', '/products/normal/') );
// Remove zoomed class to gallery container
gallery.removeClass('is-zoomed');
}
},
switch: function(trigger, imgContainer) {
var src = trigger.attr('href'),
thumbs = trigger.siblings(),
img = trigger.parent().prev().children();
// Add active class to thumb
trigger.addClass('is-active');
// Remove active class from thumbs
thumbs.each(function() {
if( $(this).hasClass('is-active') ) {
$(this).removeClass('is-active');
}
});
// Reset container if in zoom state
if ( gallery.hasClass('is-zoomed') ) {
gallery.removeClass('is-zoomed');
imgContainer.css( "height", "auto" );
}
// Switch image source
img.attr('src', src);
}
};
//=== Public Methods ===//
function init() {
// Listen for clicks on anchors within gallery
gallery.delegate('.item-image-ca', 'click', function(event) {
var trigger = $(this);
var triggerData = trigger.data("gallery");
if ( triggerData === 'zoom') {
var imgContainer = trigger.parent(),
img = trigger.siblings();
Gallery.zoom(imgContainer, img);
} else if ( triggerData === 'thumb') {
var imgContainer = trigger.parent().siblings();
Gallery.switch(trigger, imgContainer);
} else {
return;
}
event.preventDefault();
});
}
//=== Make Methods Public ===//
return {
init: init
};
})();
App.init();
</script>
{% endblock %}
{% block javascripttemplate %}
$(function(){
{% for infos in app.session.flashbag.get('information') %}
{% if loop.first %}
resetNotif();
alertify.alert("{{ infos }}");
{% endif %}
{% endfor %}
$('.open-modal-souscription-offert').click(function(){
$('#modal-souscription-offert').modal('show');
var id = $(this).attr('value');
if($(this).attr('name') == 0)
{
$(this).attr('name', 1);
$('.wait-chargement-content-module').show();
$('.content-module-loading').hide();
$.post('{{ path('produit_produit_personnaliser_produit_pour_commande') }}',{id: id}, function(data){
$('.wait-chargement-content-module').hide();
$('.content-module-loading').html(data);
$('.content-module-loading').show();
$('.open-modal-souscription-offert').attr('name', 0);
});
}
});
});
{% endblock %}