<style>
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure.snip1139 {
font-family: 'Raleway', Arial, sans-serif;
position: relative;
overflow: hidden;
margin: 10px;
min-width: 220px;
max-width: 310px;
width: 100%;
color: #333;
text-align: left;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
border-radius: 8px;
}
figure.snip1139 * {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}
figure.snip1139 img {
max-width: 100%;
vertical-align: middle;
}
figure.snip1139 blockquote {
position: relative;
background-color: #ffffff;
padding: 25px 50px 25px 50px;
font-size: 0.8em;
font-weight: 500;
text-align: left;
margin: 0;
line-height: 1.6em;
font-style: italic;
}
figure.snip1139 blockquote:before,
figure.snip1139 blockquote:after {
font-family: 'FontAwesome';
content: "\201C";
position: absolute;
font-size: 50px;
opacity: 0.3;
font-style: normal;
}
figure.snip1139 blockquote:before {
top: 25px;
left: 20px;
}
figure.snip1139 blockquote:after {
content: "\201D";
right: 20px;
bottom: 0;
}
figure.snip1139 .arrow {
top: 100%;
width: 0;
height: 0;
border-left: 0 solid transparent;
border-right: 25px solid transparent;
border-top: 25px solid #ffffff;
margin: 0;
position: absolute;
}
figure.snip1139 .author {
position: absolute;
bottom: 0;
width: 100%;
padding: 5px 25px;
color: #000000;
background-color: #ffffff;
margin: 0;
text-transform: uppercase;
}
figure.snip1139 .author h5 {
opacity: 0.8;
margin: 0;
font-weight: 400;
}
.container-rating {
width: 100%;
margin: 0 auto;
margin-top: 0px;
background-color: #fff;
padding: 0px;
}
.inner {
padding: 0px;
background-color: white;
overflow: hidden;
position: relative;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 10px;
}
.rating {
float: left;
width: 45%;
margin-right: 5%;
text-align: center;
}
.rating-num {
color: #333333;
font-size: 72px;
font-weight: 100;
line-height: 1em;
}
.rating-stars {
font-size: 20px;
color: #E3E3E3;
margin-bottom: .5em;
}
.rating-stars .active {
color: #737373;
}
.rating-users {
font-size: 14px;
}
.histo {
float: left;
width: 50%;
font-size: 13px;
}
.histo-star {
float: left;
padding: 1px;
margin-left: -20px!important;
}
.histo-rate {
width: 100%;
display: block;
clear: both;
}
.bar-block {
margin-left: 5px;
color: black;
display: block;
float: left;
width: 75%;
position: relative;
}
.bar {
padding: 1px;
display: block;
}
#bar-five {
width: 0;
background-color: #9FC05A;
}
#bar-four {
width: 0;
background-color: #ADD633;
}
#bar-three {
width: 0;
background-color: #FFD834;
}
#bar-two {
width: 0;
background-color: #FFB234;
}
#bar-one {
width: 0;
background-color: #FF8B5A;
}
@media (max-width: 1000px){
.carousse-size{
min-height: 620px!important;
}
}
@media (min-width: 1000px){
.item-caracteristique{
display: none;
}
.carousse-size{
min-height: 450px!important;
}
}
@media (min-width: 1200px){
.carousse-size{
min-height: 400px!important;
}
}
.title {
color: white;
text-align: center;
padding: 1em 0em;
text-transform: uppercase;
letter-spacing: 4px;
}
.box-el {
display: flex;
max-width: 1400px;
margin: 5px 0px;
}
.box-about {
height: 300px;
background: orange;
width: 100%;
margin: 0em .5em;
background-position: center;
background-size: cover;
position: relative;
}
.box-about:hover .the-content-box {
transform: translateY(0%);
background: rgba(0, 0, 0, 0.8);
}
.box-about:hover .the-content-box hr {
width: 20%;
transition-delay: 400ms;
}
.box-about:hover .the-content-box p {
opacity: 1;
transition: all 400ms ease;
transform: translateY(0%);
transition-delay: 600ms;
}
.box-about:hover .the-content-box a {
opacity: 1;
transform: translateX(0%);
transition-delay: 900ms;
}
.box-inner {
position: absolute;
height: 80%;
width: 90%;
top: 10%;
left: 5%;
overflow: hidden;
}
.the-content-box {
position: relative;
height: 100%;
width: 100%;
background: rgba(74, 137, 205, 0.6);
color: white;
transform: translateY(80%);
transition: all 600ms ease;
}
.the-content-box h1 {
padding: 0.2em 0em 0em 0em;
margin: 0;
}
.the-content-box hr {
background: #4A89CD;
height: 3px;
border: none;
margin: 1em 0em 0em 0em;
width: 0;
transition: all 400ms ease;
}
.the-content-box p {
letter-spacing: 1px;
opacity: 0;
transition: all 900ms ease;
transform: translateY(40%);
font-weight: lighter;
}
.the-content-box a {
display: inline-block;
background: #4A89CD;
padding: 0.5em 1em;
color: white;
text-decoration: none;
font-weight: bolder;
position: relative;
transition: all 600ms ease;
opacity: 0;
transform: translateX(20%);
}
.the-content-box a:hover {
background: #1B324B;
}
.content-box-inner {
padding: 0em 1em;
}
</style>
<section class="clearfix">
<!--Row featured-->
<div class="row-featured row-free" style="padding-top: 30px;">
<div class="title-block clearfix carousse-size">
<div style="">
<div class="row" style="padding: 0px;">
<div class="col-md-8">
<h2>Ce que pensent les utilisateurs {{ site }}</h2>
Votre satisfaction est notre priorité; raison pour laquelle nous sommes toujours à l'écoute de vos suggestions et critiques pour mieux adapter nos offres à vos besoins !
</div>
<div class="col-md-4">
<div class="container-rating">
<div class="inner">
<div class="rating">
<span class="rating-num">
{% if nbAvisTotal > 0 %}
{{ (sommeAvisTotal/nbAvisTotal)|round(1, 'ceil') }}
{% else %}
4.0
{% endif %}
</span>
<div class="rating-stars">
<span><i class="active icon-star"></i></span>
<span><i class="active icon-star"></i></span>
<span><i class="active icon-star"></i></span>
<span><i class="active icon-star"></i></span>
<span><i class="icon-star"></i></span>
</div>
<div class="rating-users">
<i class="icon-user"></i> {{ nbAvisTotal }} | total
</div>
</div>
<div class="histo">
<div class="five histo-rate">
<span class="histo-star">
<i class="active icon-star"></i> 5
</span>
<span class="bar-block">
<span id="bar-five" class="bar">
<span>{{ nbFiveAvis }}</span>
{% if nbAvisTotal > 0 %}
{% set percentFive = ((nbFiveAvis/nbAvisTotal)|round(1))*100 %}
{% else %}
{% set percentFive = 1 %}
{% endif %}
</span>
</span>
</div>
<div class="four histo-rate">
<span class="histo-star">
<i class="active icon-star"></i> 4
</span>
<span class="bar-block">
<span id="bar-four" class="bar">
<span>{{ nbFourAvis }}</span>
{% if nbAvisTotal > 0 %}
{% set percentFour = ((nbFourAvis/nbAvisTotal)|round(1))*100 %}
{% else %}
{% set percentFour = 1 %}
{% endif %}
</span>
</span>
</div>
<div class="three histo-rate">
<span class="histo-star">
<i class="active icon-star"></i> 3
</span>
<span class="bar-block">
<span id="bar-three" class="bar">
<span>{{ nbThreeAvis }}</span>
{% if nbAvisTotal > 0 %}
{% set percentThree = ((nbThreeAvis/nbAvisTotal)|round(1))*100 %}
{% else %}
{% set percentThree = 1 %}
{% endif %}
</span>
</span>
</div>
<div class="two histo-rate">
<span class="histo-star">
<i class="active icon-star"></i> 2
</span>
<span class="bar-block">
<span id="bar-two" class="bar">
<span>{{ nbTwoAvis }}</span>
{% if nbAvisTotal > 0 %}
{% set percentTwo = ((nbTwoAvis/nbAvisTotal)|round(1))*100 %}
{% else %}
{% set percentTwo = 1 %}
{% endif %}
</span>
</span>
</div>
<div class="one histo-rate">
<span class="histo-star">
<i class="active icon-star"></i> 1
</span>
<span class="bar-block">
<span id="bar-one" class="bar">
<span>{{ nbOneAvis }}</span>
{% if nbAvisTotal > 0 %}
{% set percentOne = ((nbOneAvis/nbAvisTotal)|round(1))*100 %}
{% else %}
{% set percentOne = 1 %}
{% endif %}
</span>
</span>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('.bar span').hide();
$('#bar-five').animate({
width: '{{ percentFive }}%'}, 1000);
$('#bar-four').animate({
width: '{{ percentFour }}%'}, 1000);
$('#bar-three').animate({
width: '{{ percentThree }}%'}, 1000);
$('#bar-two').animate({
width: '{{ percentTwo }}%'}, 1000);
$('#bar-one').animate({
width: '{{ percentOne }}%'}, 1000);
setTimeout(function() {
$('.bar span').fadeIn('slow');
}, 1000);
});
</script>
<link rel="stylesheet" href="{{ asset('templatecms/carousel/css/style.css') }}"/>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12" >
<div class="resCarousel" data-items="1,3,4,4" data-slide="1" style="overflow: hidden; padding-left: 0px!important; padding-right: 0px!important;;">
<div class="resCarousel-inner">
{% for review in liste_review %}
<div class="item" style="border: none; padding-left: 0px; {% if loop.first %}margin-left: -7px;{% endif %}">
<figure class="snip1139">
<blockquote style="height: 100px; border-left: 2px solid #fff;">{{ review.description }} ..
<a href="{{ path('produit_produit_afh_client_reviews', {'id': review.id}) }}" class="pull-right" style="margin-bottom: 10px; display: inline-block;">
Lire la suite <span class="fa fa-chevron-right"></span>
</a>
<div class="arrow"></div>
</blockquote>
<div style="text-align: center; padding-bottom: 20px; background: #f4f4f4;">
<img style="height: 150px;" src="{% if review.user != null and review.user.imgprofil != null %}{{ asset(review.user.imgprofil.getwebpath) }}{% else %}{{ asset('template/images/projets/afrique.png') }}{% endif %}" alt="sample3"/>
</div>
<div class="author">
<h5 style="text-transform: capitalize;">{{ review.user.name(30) }}
<div>
<div class="star-ratings-css" style="margin-left: 0px; display: inline-block; float: left; width: 100px!important;">
<div class="star-ratings-css-top" style="width: {{ ((review.avisuser/5)|round(2, 'ceil'))*100 }}%"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
<div class="star-ratings-css-bottom"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
</div>
</div>
<span style="float: right;">{{ review.avisuser }}</span>
</h5>
</div>
</figure>
</div>
{% endfor %}
<div class="item" style="border: none; padding-left: 0px; margin-left: -6px;">
<a href="{{ path('produit_produit_afh_client_reviews') }}" >
<figure class="snip1139">
<div style="height: 100px; border-left: 2px solid #fff;">
</div>
<div style="text-align: center; padding-bottom: 70px; margin-top: -50px; background: #fff;">
<img style="height: 150px;" src="{{ asset('template/images/plus.png') }}" alt="sample3"/>
</div>
<div class="author">
<h5 style="text-transform: capitalize;">
<div>
Cliquez pour afficher la liste complète
</div>
</h5>
</div>
</figure>
</a>
</div>
</div>
<button class="btn btn-default leftLst pull-left" style="position: relative; margin-top: -200px; background: #fff; color: #333;"><i class="fa fa-fw fa-angle-left"></i></button>
<button class="btn btn-default rightLst pull-right" style="position: relative; margin-top: -200px; background: #fff; color: #333;"><i class="fa fa-fw fa-angle-right"></i></button>
</div>
</div>
</div>
<div class="clearfix" style="padding: 7px; background: #fff;"></div>
<script type="text/javascript" src="{{ asset('templatecms/carousel/js/main.js') }}"></script>
</div>
</div>
</div>
</section>