templates/main/site/views/Static/temoignages.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'Site' %}
  2. {% extends "main/site/views/common/base.html.twig" %}
  3. {% from ('main/site/views/Partials/icon.html.twig') import icon  %}
  4. {% block title %}
  5.     {% if page == 1 %}
  6.         {{ 'site.testimonies.pageData.title'|trans }}
  7.     {% else %}
  8.         {{ 'site.testimonies.pageData.title_p'|trans({'%start%': startItem , '%end%': endItem, '%page%': page}) }}
  9.     {% endif %}
  10. {% endblock %}
  11. {% block meta_description %}
  12.     {% if page == 1 %}
  13.         <meta name="description" content="{{ 'site.testimonies.pageData.meta.description'|trans({'%start%': startItem , '%end%': endItem, '%page%': page}) }}">
  14.     {% else %}
  15.         <meta name="description" content="{{ 'site.testimonies.pageData.meta.description_p'|trans({'%start%': startItem , '%end%': endItem, '%page%': page}) }}">
  16.     {% endif %}
  17. {% endblock %}
  18. {% block javascripts %}
  19.     {{ parent() }}
  20.     {{ GGMarketingTag('visite', app.request.locale, tracking) }}
  21. {% endblock %}
  22. {% block fb_event_tag %}
  23.     {% if tracking is defined %}
  24.         {{ getFbkEventTag(app.request.locale, tracking, 'visite') }}
  25.         {# We want only one tag per page. If no event provided, pageview will be displayed. #}
  26.     {% else %}
  27.         {{ getFbkEventTag(app.request.locale) }}
  28.     {% endif %}
  29. {% endblock %}
  30. {% block page_content %}
  31.     <div
  32.         class="content" role="main">
  33.         
  34.         {% include "main/site/views/Partials/Heroes/heroBrulafine.html.twig" with {
  35.             headerTag: "p"
  36.         } %}
  37.         {% if siteHasPackForNewUsers() %}
  38.             <div class="container-fluid mt-2">
  39.                 {{ include('main/site/views/Partials/newUserPackBanner.html.twig')}}
  40.             </div>
  41.         {% endif %}
  42.         <section class="section pt-3">
  43.             <div class="container-fluid">
  44.                 <div class="section__title">
  45.                     <h1 class="text-center underline-bottom">{{ 'site.testimonies.title'|trans }} {% if page > 1 %}{% endif %}
  46.                         {% if affiliateForLegalNotices(tracking) %}
  47.                             <sup>*</sup>
  48.                         {% endif %}
  49.                         <em style="font-size: 0.45em;vertical-align: bottom;">{{ 'site.common.page'|trans }} {{ page }}</em>
  50.                     </h1>
  51.                     {% if affiliateForLegalNotices(tracking) %}
  52.                         <p class="font-xs">
  53.                             <sup>*</sup>
  54.                             {{ 'site.testimonies.paragraph'|trans | raw}}
  55.                         </p>
  56.                     <p class="text-center">
  57.                         {{ 'site.testimonies.paragraph2'|trans | raw }} <sup>*</sup>
  58.                     </p>
  59.                     {% endif %}
  60.                     {# {% if (app.request.locale == 'fr') %} #}
  61.                         <p class="text-center">
  62.                             <a href="{{ path('brulafine_temoignage_videos')}}" class="d-inline-flex align-items-center justify-content-center" style="font-weight: bold; font-size: 1.3rem;">
  63.                                 {{ icon('video', 'mr-1') }}
  64.                                 {{ 'site.testimonies.paragraph3'|trans | raw }}
  65.                             </a>
  66.                         </p>
  67.                     {# {% endif %} #}
  68.                 </div>
  69.                 {% if testimonies and testimonies | length > 0 %}
  70.                     <div class="testimonie-list testimonie-list--border mb-2">
  71.                         {% for item in testimonies %}
  72.                             <div class="testimonie-list__item">
  73.                                 <div class="testimonie">
  74.                                     <div class="d-flex justify-content-between mb-3">
  75.                                         <div class="testimonie__rating">
  76.                                             <span class="testimonie__rating__holder">
  77.                                                 <span data-rating="{{item.rating}}"></span>
  78.                                             </span>
  79.                                         </div>
  80.                                         <div class="testimonie__meta">
  81.                                             {% if item.weightLoss %}
  82.                                                 <span>{{ item.weightLoss |round(1, 'floor') }}
  83.                                                     {{ 'site.testimonies.kgInfo'|trans }}</span>
  84.                                             {% endif %}
  85.                                         </div>
  86.                                     </div>
  87.                                     <div class="testimonie__review mb-2">
  88.                                         <p>“{{ item.message }}”
  89.                                             {% if affiliateForLegalNotices(tracking) %}*
  90.                                             {% endif %}
  91.                                         </p>
  92.                                     </div>
  93.                                     <div class="d-flex justify-content-between mt-auto">
  94.                                         <div class="testimonie__user">
  95.                                             <h2 class="h5 mb-0 mt-0">
  96.                                                 <span {% if item.country %} class="mr-1"{% endif %}>
  97.                                                     {{ item.firstname }},
  98.                                                     {{ item.city }}
  99.                                                 </span>
  100.                                                 {% if item.country %}
  101.                                                     <img src="{{ asset('/images/main/flags/' ~ item.country | upper ~ '.svg') }}" width="18" alt="{{ item.country }}">
  102.                                                 {% endif %}
  103.                                             </h2>
  104.                                             
  105.                                             <p class="mb-0 font-sm">{{ item.age }}
  106.                                                 {{ 'site.common.age'|trans }}
  107.                                                 {# - {{ item.created_at |format_datetime('medium', 'none') }} #}
  108.                                             </p>
  109.                                         </div>
  110.                                         <div class="testimonie__date">
  111.                                             <p class="font-sm">
  112.                                                 {{ item.testimonyDate|format_datetime(locale=app.request.locale ,pattern="d MMMM YYYY") }}
  113.                                             </p>
  114.                                         </div>
  115.                                     </div>
  116.                                 </div>
  117.                             </div>
  118.                         {% endfor %}
  119.                     </div>
  120.                     <div class="paging">
  121.                         {% for i in 1..nb_pages %}
  122.                             {% if i == 1 %}
  123.                                 <a href="{{path('brulafine_avis_no_page')}}" {% if page == i %} class="is-active" {% endif %}>{{ i }}</a>
  124.                             {% else %}
  125.                                 <a href="{{path('brulafine_avis', {page: i})}}" {% if page == i %} class="is-active" {% endif %}>{{ i }}</a>
  126.                             {% endif %}
  127.                         {% endfor %}
  128.                         {#
  129.                                       <span>&hellip;</span>
  130.                                       <a href="#">12</a>
  131.                                       #}
  132.                     </div>
  133.                 {% endif %}
  134.                 <hr class="invisible mt-0">
  135.                 {% if affiliateForLegalNotices(tracking) %}
  136.                     <p class="font-xs">{{ 'site.testimonies.legal'|trans }}</p>
  137.                 {% endif %}
  138.             </div>
  139.         </section>
  140.     </div>
  141. {% endblock %}