src/Resources/views/Live/Portal/next_sales_pro.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend/frontend_pro.html.twig' %}
  2. {% block meta_robot %}
  3.     {{ parent() }}
  4.     <link rel="canonical" href="{{ url('live_portal_next_sales_pro') }}"/>
  5.     {{ source('stubs/seo/robots_noindex_nofollow.html.twig') }}
  6. {% endblock %}
  7. {% block javascripts %}
  8.     {{ parent() }}
  9.     <script type="text/javascript" src="{{ asset('bundles/vpauto/js/lib/jquery.countdown.live.min.js') }}"></script>
  10.     <script type="text/javascript" src="{{ asset('bundles/vpauto/js/frontend/live_portal.js') }}"></script>
  11. {% endblock %}
  12. {% block body_content %}
  13.     <div class="live-prochaines-vente">
  14.         <div class="landing-header">
  15.             <h1 class="titre05">
  16.             <span class="block">
  17.                 {% if app.request.locale == constant('App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE') %}
  18.                     <img src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}" alt="">
  19.                 {% else %}
  20.                     <img src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}" alt="">
  21.                 {% endif %}
  22.             </span>
  23.                 {{ 'frontend.live.next-sales-pro.header.subtitle'|trans }}
  24.             </h1>
  25.         </div>
  26.         <div class="landing-content">
  27.             <div>
  28.                 <div>
  29.                     <h2 class="titre01">{{ 'frontend.live.next-sales-pro.content.title01'|trans|raw }}</h2>
  30.                     <p class="marginT20">{{ 'frontend.live.next-sales-pro.content.text01'|trans }} <span data-o="{{ base64_encode(path('vpauto_frontend_live')) }}" class="obflink lien03" role="link">{{ 'frontend.live.next-sales-pro.content.link01'|trans }}</span> {{ 'frontend.live.next-sales-pro.content.text02'|trans }}
  31.                     </p>
  32.                     {% if not is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL')) %}
  33.                         <p class="marginT10">{{ 'frontend.live.next-sales-pro.content.text03'|trans }}</p>
  34.                     {% endif %}
  35.                 </div>
  36.                 <div class="grid-container block-bg01">
  37.                     <h2 class="titre04">
  38.                         <strong>{{ 'frontend.live.next-sales-pro.content.block01.title'|trans }}</strong></h2>
  39.                     <div class="grid-25 tab-l-25 tab-p-50 m-100 marginT20">
  40.                         <div>
  41.                             <img src="{{ asset('bundles/vpauto/frontend/images/pro/img-avantage-live01.png') }}"
  42.                                  alt="picto vehicules testés">
  43.                             <p>{{ 'frontend.live.next-sales-pro.content.block01.item01'|trans }}</p>
  44.                         </div>
  45.                     </div>
  46.                     <div class="grid-25 tab-l-25 tab-p-50 m-100 marginT20">
  47.                         <div>
  48.                             <img src="{{ asset('bundles/vpauto/frontend/images/pro/img-avantage-live02.png') }}"
  49.                                  alt="picto prix">
  50.                             <p>{{ 'frontend.live.next-sales-pro.content.block01.item02'|trans }}</p>
  51.                         </div>
  52.                     </div>
  53.                     <div class="grid-25 tab-l-25 tab-p-50 m-100 marginT20">
  54.                         <div>
  55.                             <img src="{{ asset('bundles/vpauto/frontend/images/pro/img-avantage-live03.png') }}"
  56.                                  alt="picto garantie">
  57.                             <p>{{ 'frontend.live.next-sales-pro.content.block01.item03'|trans({ '%href%': path('frontend_guarantee') })|raw }}</p>
  58.                         </div>
  59.                     </div>
  60.                     <div class="grid-25 tab-l-25 tab-p-50 m-100 marginT20">
  61.                         <div>
  62.                             <img src="{{ asset('bundles/vpauto/frontend/images/pro/img-avantage-live04.png') }}"
  63.                                  alt="picto disponibilité">
  64.                             <p>{{ 'frontend.live.next-sales-pro.content.block01.item04'|trans }}</p>
  65.                         </div>
  66.                     </div>
  67.                 </div>
  68.                 <h2 class="titre01 marginT60 txtcenter">
  69.                     <strong>{{ 'frontend.live.next-sales-pro.content.title02'|trans }}</strong></h2>
  70.                 <div class="video-container">
  71.                     {% include '/Frontend/pro/_movie_live.html.twig' %}
  72.                 </div>
  73.                 <div class="separateur"></div>
  74.                 <h2 class="titre01 marginT60 txtcenter color01">
  75.                     <strong>{{ 'frontend.live.next-sales-pro.content.next_sales'|trans }}</strong></h2>
  76.                 {% for item in todaysLive %}
  77.                     <div class="block01 marginT20">
  78.                         <p class="titre01"><strong>{{ 'frontend.live.next-sales.content.sale_ended'|trans }}</strong>
  79.                         </p>
  80.                         <p class="titre03 marginT10"><strong>{{ item.room.code|upper }}
  81.                                 - {{ item.startDate|locale_date(pattern='EEEE d LLLL', locale=app.request.locale)|capitalize }}</strong>
  82.                         </p>
  83.                     </div>
  84.                     <div class="separateur"></div>
  85.                 {% endfor %}
  86.                 <div class="marginT20">
  87.                     <div>
  88.                         {% for sale in sales %}
  89.                             <div class="txtcenter">
  90.                                 <h1 class="titre01">
  91.                                     <strong>{{ sale.room.code|upper }}
  92.                                         - {{ sale.activeVehicles|length }} {{ 'frontend.live.next-sales.content.vehicles'|trans }}</strong>
  93.                                 </h1>
  94.                                 <h2 class="date">{{ sale.startDate|locale_date(pattern='EEEE d LLLL yyyy', locale=app.request.locale) }}</h2>
  95.                                 <div class="block01">
  96.                                     <p class="titre04 opening-in">{{ 'frontend.live.next-sales.content.open_in'|trans }}</p>
  97.                                     <div class="counter must-fade fade-title clearfix"
  98.                                          data-end="{{ get_real_starting_hour(sale)|date('Y/m/d H:i:s') }}">
  99.                                         <ul class="counter-block">
  100.                                             <li class="m-hide"><i class="icon-chrono01"></i></li>
  101.                                             <li>
  102.                                                 <span class="number days">00</span>
  103.                                                 <span>{{ 'frontend.live.next-sales.content.timer.days'|trans }}</span>
  104.                                             </li>
  105.                                             <li>
  106.                                                 <span class="number hours">00</span>
  107.                                                 <span>{{ 'frontend.live.next-sales.content.timer.hours'|trans }}</span>
  108.                                             </li>
  109.                                             <li>
  110.                                                 <span class="number minutes">00</span>
  111.                                                 <span>{{ 'frontend.live.next-sales.content.timer.minutes'|trans }}</span>
  112.                                             </li>
  113.                                         </ul>
  114.                                     </div>
  115.                                 </div>
  116.                                 {% if sale.endDate|date('U') > 'now'|date('U') and get_real_starting_hour(sale)|date('U') < 'now'|date('U') %}
  117.                                     <p class="marginT10 titre04">
  118.                                         {% if app.request.locale == constant('App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE') %}
  119.                                             <img
  120.                                                 src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}"
  121.                                                 class="icon-live w-26" alt="">
  122.                                         {% else %}
  123.                                             <img
  124.                                                 src="{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}"
  125.                                                 class="icon-live w-26" alt="">
  126.                                         {% endif %}
  127.                                         {{ 'frontend.live.next-sales.content.button.running'|trans }}
  128.                                     </p>
  129.                                 {% endif %}
  130.                             </div>
  131.                             <div class="separateur"></div>
  132.                         {% endfor %}
  133.                     </div>
  134.                     <div class="clearfix"></div>
  135.                 </div>
  136.                 <p class="txtcenter"><a href="{{ path('frontend_sale_online_pro') }}" class="lien11"
  137.                                         title="">{{ 'frontend.live.next-sales-pro.content.button01.online_sale'|trans }}</a>
  138.                 </p>
  139.                 <p class="marginT10">{{ 'frontend.live.next-sales-pro.content.text04'|trans }}</p>
  140.             </div>
  141.         </div>
  142.     </div>
  143. {% endblock body_content %}