templates/Theme/Users/User/Billet/aviscarousel.html.twig line 1

Open in your IDE?
  1. <style>
  2. @import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
  3. figure.snip1139 {
  4.   font-family: 'Raleway', Arial, sans-serif;
  5.   position: relative;
  6.   overflow: hidden;
  7.   margin: 10px;
  8.   min-width: 220px;
  9.   max-width: 310px;
  10.   width: 100%;
  11.   color: #333;
  12.   text-align: left;
  13.   box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  14.   border-radius: 8px;
  15. }
  16. figure.snip1139 * {
  17.   -webkit-box-sizing: border-box;
  18.   box-sizing: border-box;
  19.   -webkit-transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  20.   transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  21. }
  22. figure.snip1139 img {
  23.   max-width: 100%;
  24.   vertical-align: middle;
  25. }
  26. figure.snip1139 blockquote {
  27.   position: relative;
  28.   background-color: #ffffff;
  29.   padding: 25px 50px 25px 50px;
  30.   font-size: 0.8em;
  31.   font-weight: 500;
  32.   text-align: left;
  33.   margin: 0;
  34.   line-height: 1.6em;
  35.   font-style: italic;
  36. }
  37. figure.snip1139 blockquote:before,
  38. figure.snip1139 blockquote:after {
  39.   font-family: 'FontAwesome';
  40.   content: "\201C";
  41.   position: absolute;
  42.   font-size: 50px;
  43.   opacity: 0.3;
  44.   font-style: normal;
  45. }
  46. figure.snip1139 blockquote:before {
  47.   top: 25px;
  48.   left: 20px;
  49. }
  50. figure.snip1139 blockquote:after {
  51.   content: "\201D";
  52.   right: 20px;
  53.   bottom: 0;
  54. }
  55. figure.snip1139 .arrow {
  56.   top: 100%;
  57.   width: 0;
  58.   height: 0;
  59.   border-left: 0 solid transparent;
  60.   border-right: 25px solid transparent;
  61.   border-top: 25px solid #ffffff;
  62.   margin: 0;
  63.   position: absolute;
  64. }
  65. figure.snip1139 .author {
  66.   position: absolute;
  67.   bottom: 0;
  68.   width: 100%;
  69.   padding: 5px 25px;
  70.   color: #000000;
  71.   background-color: #ffffff;
  72.   margin: 0;
  73.   text-transform: uppercase;
  74. }
  75. figure.snip1139 .author h5 {
  76.   opacity: 0.8;
  77.   margin: 0;
  78.   font-weight: 400;
  79. }
  80. .container-rating {
  81.   width: 100%;
  82.   margin: 0 auto;
  83.   margin-top: 0px;
  84.   background-color: #fff;
  85.   padding: 0px;
  86. }
  87. .inner {
  88.   padding: 0px;
  89.   background-color: white;
  90.   overflow: hidden;
  91.   position: relative;
  92.   -webkit-border-radius: 4px; 
  93.   -moz-border-radius: 4px; 
  94.   border-radius: 10px; 
  95. }
  96. .rating {
  97.   float: left;
  98.   width: 45%;
  99.   margin-right: 5%;
  100.   text-align: center;
  101. }
  102. .rating-num {
  103.   color: #333333;
  104.   font-size: 72px;
  105.   font-weight: 100;
  106.   line-height: 1em; 
  107. }
  108. .rating-stars {
  109.   font-size: 20px;
  110.   color: #E3E3E3;
  111.   margin-bottom: .5em;
  112. }
  113. .rating-stars .active {
  114.   color: #737373;
  115. }
  116. .rating-users {
  117.   font-size: 14px;
  118. }
  119. .histo {
  120.   float: left;
  121.   width: 50%;
  122.   font-size: 13px;
  123.   
  124. }
  125. .histo-star {
  126.   float: left;
  127.   padding: 1px;
  128.   margin-left: -20px!important;
  129. }
  130. .histo-rate {
  131.   width: 100%;
  132.   display: block;
  133.   clear: both;
  134. }
  135. .bar-block {
  136.   margin-left: 5px;
  137.   color: black;
  138.   display: block;
  139.   float: left;
  140.   width: 75%;
  141.   position: relative;
  142. }
  143. .bar {
  144.   padding: 1px;
  145.   display: block;
  146. }
  147. #bar-five {
  148.   width: 0;
  149.   background-color: #9FC05A;
  150. }
  151. #bar-four {
  152.   width: 0;
  153.   background-color: #ADD633;
  154. }
  155. #bar-three {
  156.   width: 0;
  157.   background-color: #FFD834;
  158. }
  159. #bar-two {
  160.   width: 0;
  161.   background-color: #FFB234;
  162. }
  163. #bar-one {
  164.   width: 0;
  165.   background-color: #FF8B5A;
  166. }
  167. @media (max-width: 1000px){
  168.     .carousse-size{
  169.         min-height: 620px!important;
  170.     }
  171. }
  172. @media (min-width: 1000px){
  173.     .item-caracteristique{
  174.         display: none;
  175.     }
  176.     .carousse-size{
  177.         min-height: 450px!important;
  178.     }
  179. }
  180. @media (min-width: 1200px){
  181.     .carousse-size{
  182.         min-height: 400px!important;
  183.     }
  184. }
  185. .title {
  186.   color: white;
  187.   text-align: center;
  188.   padding: 1em 0em;
  189.   text-transform: uppercase;
  190.   letter-spacing: 4px;
  191. }
  192. .box-el {
  193.   display: flex;
  194.   max-width: 1400px;
  195.   margin: 5px 0px;
  196. }
  197. .box-about {
  198.   height: 300px;
  199.   background: orange;
  200.   width: 100%;
  201.   margin: 0em .5em;
  202.   background-position: center;
  203.   background-size: cover;
  204.   position: relative;
  205. }
  206. .box-about:hover .the-content-box {
  207.   transform: translateY(0%);
  208.   background: rgba(0, 0, 0, 0.8);
  209. }
  210. .box-about:hover .the-content-box hr {
  211.   width: 20%;
  212.   transition-delay: 400ms;
  213. }
  214. .box-about:hover .the-content-box p {
  215.   opacity: 1;
  216.   transition: all 400ms ease;
  217.   transform: translateY(0%);
  218.   transition-delay: 600ms;
  219. }
  220. .box-about:hover .the-content-box a {
  221.   opacity: 1;
  222.   transform: translateX(0%);
  223.   transition-delay: 900ms;
  224. }
  225. .box-inner {
  226.   position: absolute;
  227.   height: 80%;
  228.   width: 90%;
  229.   top: 10%;
  230.   left: 5%;
  231.   overflow: hidden;
  232. }
  233. .the-content-box {
  234.   position: relative;
  235.   height: 100%;
  236.   width: 100%;
  237.   background: rgba(74, 137, 205, 0.6);
  238.   color: white;
  239.   transform: translateY(80%);
  240.   transition: all 600ms ease;
  241. }
  242. .the-content-box h1 {
  243.   padding: 0.2em 0em 0em 0em;
  244.   margin: 0;
  245. }
  246. .the-content-box hr {
  247.   background: #4A89CD;
  248.   height: 3px;
  249.   border: none;
  250.   margin: 1em 0em 0em 0em;
  251.   width: 0;
  252.   transition: all 400ms ease;
  253. }
  254. .the-content-box p {
  255.   letter-spacing: 1px;
  256.   opacity: 0;
  257.   transition: all 900ms ease;
  258.   transform: translateY(40%);
  259.   font-weight: lighter;
  260. }
  261. .the-content-box a {
  262.   display: inline-block;
  263.   background: #4A89CD;
  264.   padding: 0.5em 1em;
  265.   color: white;
  266.   text-decoration: none;
  267.   font-weight: bolder;
  268.   position: relative;
  269.   transition: all 600ms ease;
  270.   opacity: 0;
  271.   transform: translateX(20%);
  272. }
  273. .the-content-box a:hover {
  274.   background: #1B324B;
  275. }
  276. .content-box-inner {
  277.   padding: 0em 1em;
  278. }
  279. </style>
  280. <section class="clearfix">
  281.     <!--Row featured-->
  282.     <div class="row-featured row-free" style="padding-top: 30px;">
  283.         <div class="title-block clearfix carousse-size">
  284.             <div style="">
  285.             <div class="row" style="padding: 0px;">
  286.             <div class="col-md-8">
  287.             <h2>Ce que pensent les utilisateurs {{ site }}</h2>
  288.             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 !
  289.             </div>
  290.             <div class="col-md-4">
  291.             <div class="container-rating">
  292.               <div class="inner">
  293.                 <div class="rating">
  294.                   <span class="rating-num">
  295.                   {% if nbAvisTotal > 0 %}
  296.                     {{ (sommeAvisTotal/nbAvisTotal)|round(1, 'ceil') }}
  297.                   {% else %}
  298.                     4.0
  299.                   {% endif %}
  300.                   </span>
  301.                   
  302.                   <div class="rating-stars">
  303.                     <span><i class="active icon-star"></i></span>
  304.                     <span><i class="active icon-star"></i></span>
  305.                     <span><i class="active icon-star"></i></span>
  306.                     <span><i class="active icon-star"></i></span>
  307.                     <span><i class="icon-star"></i></span>
  308.                   </div>
  309.                   <div class="rating-users">
  310.                     <i class="icon-user"></i> {{ nbAvisTotal }} | total
  311.                   </div>
  312.                 </div>
  313.                 
  314.                 <div class="histo">
  315.                   <div class="five histo-rate">
  316.                     <span class="histo-star">
  317.                       <i class="active icon-star"></i> 5 
  318.                     </span>
  319.                     <span class="bar-block">
  320.                       <span id="bar-five" class="bar">
  321.                         <span>{{ nbFiveAvis }}</span>&nbsp;
  322.                         {% if nbAvisTotal > 0 %}
  323.                             {% set percentFive = ((nbFiveAvis/nbAvisTotal)|round(1))*100 %}
  324.                         {% else %}
  325.                             {% set percentFive = 1 %}
  326.                         {% endif %}
  327.                       </span> 
  328.                     </span>
  329.                   </div>
  330.                   
  331.                   <div class="four histo-rate">
  332.                     <span class="histo-star">
  333.                       <i class="active icon-star"></i> 4           
  334.                     </span>
  335.                     <span class="bar-block">
  336.                       <span id="bar-four" class="bar">
  337.                         <span>{{ nbFourAvis }}</span>&nbsp;
  338.                         {% if nbAvisTotal > 0 %}
  339.                             {% set percentFour = ((nbFourAvis/nbAvisTotal)|round(1))*100 %}
  340.                         {% else %}
  341.                             {% set percentFour = 1 %}
  342.                         {% endif %}
  343.                       </span> 
  344.                     </span>
  345.                   </div> 
  346.                   
  347.                   <div class="three histo-rate">
  348.                     <span class="histo-star">
  349.                       <i class="active icon-star"></i> 3           
  350.                     </span>
  351.                     <span class="bar-block">
  352.                       <span id="bar-three" class="bar">
  353.                         <span>{{ nbThreeAvis }}</span>&nbsp;
  354.                         {% if nbAvisTotal > 0 %}
  355.                             {% set percentThree = ((nbThreeAvis/nbAvisTotal)|round(1))*100 %}
  356.                         {% else %}
  357.                             {% set percentThree = 1 %}
  358.                         {% endif %}
  359.                       </span> 
  360.                     </span>
  361.                   </div>
  362.                   
  363.                   <div class="two histo-rate">
  364.                     <span class="histo-star">
  365.                       <i class="active icon-star"></i> 2           
  366.                     </span>
  367.                     <span class="bar-block">
  368.                       <span id="bar-two" class="bar">
  369.                         <span>{{ nbTwoAvis }}</span>&nbsp;
  370.                         {% if nbAvisTotal > 0 %}
  371.                             {% set percentTwo = ((nbTwoAvis/nbAvisTotal)|round(1))*100 %}
  372.                         {% else %}
  373.                             {% set percentTwo = 1 %}
  374.                         {% endif %}
  375.                       </span> 
  376.                     </span>
  377.                   </div>
  378.                   
  379.                   <div class="one histo-rate">
  380.                     <span class="histo-star">
  381.                       <i class="active icon-star"></i> 1           
  382.                     </span>
  383.                     <span class="bar-block">
  384.                       <span id="bar-one" class="bar">
  385.                         <span>{{ nbOneAvis }}</span>&nbsp;
  386.                         {% if nbAvisTotal > 0 %}
  387.                             {% set percentOne = ((nbOneAvis/nbAvisTotal)|round(1))*100 %}
  388.                         {% else %}
  389.                             {% set percentOne = 1 %}
  390.                         {% endif %}
  391.                       </span> 
  392.                     </span>
  393.                   </div>
  394.                 </div>
  395.               </div>
  396.             </div>
  397.             </div>
  398.             <script type="text/javascript">
  399.             $(document).ready(function() {
  400.               $('.bar span').hide();
  401.               $('#bar-five').animate({
  402.                  width: '{{ percentFive }}%'}, 1000);
  403.               $('#bar-four').animate({
  404.                  width: '{{ percentFour }}%'}, 1000);
  405.               $('#bar-three').animate({
  406.                  width: '{{ percentThree }}%'}, 1000);
  407.               $('#bar-two').animate({
  408.                  width: '{{ percentTwo }}%'}, 1000);
  409.               $('#bar-one').animate({
  410.                  width: '{{ percentOne }}%'}, 1000);
  411.               
  412.               setTimeout(function() {
  413.                 $('.bar span').fadeIn('slow');
  414.               }, 1000);
  415.               
  416.             });
  417.             </script>
  418.             <link rel="stylesheet" href="{{ asset('templatecms/carousel/css/style.css') }}"/>
  419.             </div>
  420.             <div class="clearfix"></div>
  421.             <div class="row">
  422.             <div class="col-md-12" >
  423.             <div class="resCarousel" data-items="1,3,4,4" data-slide="1" style="overflow: hidden; padding-left: 0px!important; padding-right: 0px!important;;">
  424.             <div class="resCarousel-inner">
  425.                 {% for review in liste_review %}
  426.                 <div class="item" style="border: none; padding-left: 0px; {% if loop.first %}margin-left: -7px;{% endif %}">
  427.                     <figure class="snip1139">
  428.                       <blockquote style="height: 100px; border-left: 2px solid #fff;">{{ review.description }} ..
  429.                       <a href="{{ path('produit_produit_afh_client_reviews', {'id': review.id}) }}" class="pull-right" style="margin-bottom: 10px; display: inline-block;">
  430.                         Lire la suite <span class="fa fa-chevron-right"></span>
  431.                         </a>
  432.                         <div class="arrow"></div>
  433.                       </blockquote>
  434.                       <div style="text-align: center; padding-bottom: 20px; background: #f4f4f4;">
  435.                       <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"/>
  436.                       </div>
  437.                       <div class="author">
  438.                         <h5 style="text-transform: capitalize;">{{ review.user.name(30) }}
  439.                         
  440.                         <div>
  441.                             <div class="star-ratings-css" style="margin-left: 0px; display: inline-block; float: left; width: 100px!important;">
  442.                               <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>
  443.                               <div class="star-ratings-css-bottom"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>
  444.                             </div>
  445.                         </div>
  446.                         
  447.                         <span style="float: right;">{{ review.avisuser }}</span>
  448.                         </h5>
  449.                       </div>
  450.                     </figure>
  451.                 </div>
  452.                 {% endfor %}
  453.                 
  454.                 <div class="item" style="border: none; padding-left: 0px; margin-left: -6px;">
  455.                     <a href="{{ path('produit_produit_afh_client_reviews') }}" >
  456.                     <figure class="snip1139">
  457.                       <div style="height: 100px; border-left: 2px solid #fff;">
  458.                       </div>
  459.                       <div style="text-align: center; padding-bottom: 70px; margin-top: -50px; background: #fff;">
  460.                       <img style="height: 150px;" src="{{ asset('template/images/plus.png') }}" alt="sample3"/>
  461.                       </div>
  462.                       <div class="author">
  463.                         <h5 style="text-transform: capitalize;">
  464.                         <div>
  465.                         Cliquez pour afficher la liste complète
  466.                         </div>
  467.                         </h5>
  468.                       </div>
  469.                     </figure>
  470.                     </a>
  471.                 </div>
  472.             </div>
  473.             <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>
  474.             <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>
  475.             </div>
  476.             </div>
  477.             </div>
  478.             
  479.             <div class="clearfix" style="padding: 7px; background: #fff;"></div>
  480.             <script type="text/javascript" src="{{ asset('templatecms/carousel/js/main.js') }}"></script>
  481.             </div>
  482.         </div>
  483.         
  484.     </div>
  485. </section>