src/Resources/views/Frontend/home/home_content_pro.html.twig line 1

Open in your IDE?
  1. {% set bannerDesktop = 0 %}
  2. {% set bannerMobile = 0 %}
  3. {% if banners|length >= 1 %}
  4.     <div class="carousel-content">
  5.         <div class="owl-carousel banner-carousel marginT20 txtcenter tab-l-hide tab-p-hide m-hide">
  6.             {% for banner in banners %}
  7.                 {% if banner is not null and not(is_current_website('ecat')) %}
  8.                     {% set bannerDesktop = 1 %}
  9.                     <div>
  10.                         <a href="{{ banner.link }}" title="{{ banner.alt }}"><img src="{{ banner.image }}" alt="{{ banner.alt }}"></a>
  11.                     </div>
  12.                 {% endif %}
  13.             {% endfor %}
  14.         </div>
  15.         <div class="owl-carousel banner-carousel marginT20 txtcenter grid-hide tab-l-hide tab-p-hide m-visible">
  16.             {% for banner in banners %}
  17.                 {% if banner is not null and banner.imageMobile is not null and not(is_current_website('ecat')) %}
  18.                     {% set bannerMobile = 1 %}
  19.                     <div>
  20.                         <a href="{{ banner.link }}" title="{{ banner.alt }}"><img src="{{ banner.imageMobile }}" alt="{{ banner.alt }}"></a>
  21.                     </div>
  22.                 {% endif %}
  23.             {% endfor %}
  24.         </div>
  25.     </div>
  26. {% endif %}
  27. <div class="actuel-site
  28.     {% if bannerDesktop == 1 %}grid-hide{% else %}grid-visible{% endif %}
  29.     tab-l-visible
  30.     tab-p-visible
  31.     {% if bannerDesktop == 1 and bannerMobile == 0 %}m-visible{% endif %}">
  32.     <span class="titre01">{{ 'frontend.home_content.pro.currently_on_sale'|trans }}</span><br>
  33.     <a href="{{ path('frontend_vehicle_list') }}" title="">{{ 'frontend.home_content.pro.logged_out.block.now.button.label'|trans({'%count%': count_active_vehicles() }) }}</a>
  34. </div>
  35. <div class="home-content pro clearfix" role="main">
  36.     <div class="grid-container">
  37.         <div class="liste07 marginT30 tab-l-hide tab-p-hide m-hide">
  38.             <span><span class="sale-pro-filter active" data-filter="">{{ 'frontend.home_content.pro.logged_in.sales.type.all'|trans }}</span></span>
  39.             <span><span class="sale-pro-filter" data-filter="onlineex">{{ 'frontend.home_content.pro.logged_in.sales.type.online_exclusive'|trans }}</span></span>
  40.             <span><span class="sale-pro-filter" data-filter="onlinenex">{{ 'frontend.home_content.pro.logged_in.sales.type.online_non_exclusive'|trans }}</span></span>
  41.             <span><span class="sale-pro-filter" data-filter="physical">{{ 'frontend.home_content.pro.logged_in.sales.type.physical'|trans }} {{ 'frontend.home_content.pro.logged_in.sales.type.physical.desc'|trans }}</span></span>
  42.         </div>
  43.         <div class="sales-auto-refresh" data-url="{{ path('frontend_home_refresh_sales_list') }}">
  44.             {% include '/Frontend/home/_sales_list.html.twig' %}
  45.         </div>
  46.     </div>
  47.     {% if app.user is null and not(is_current_website('ecat')) %}
  48.     <div>
  49.         <h2 class="titre01 txtcenter">{{ 'frontend.home_content.pro.advantages.title'|trans }}</h2>
  50.         <ul class="liste01">
  51.             <li class="grid-25 tab-l-25 tab-p-50 m-100">
  52.                 <span>
  53.                     <i class="icon-avantages01"></i>
  54.                     <span>{{ 'frontend.home_content.pro.advantages.text01'|trans|raw }}</span>
  55.                 </span>
  56.             </li>
  57.             <li class="grid-25 tab-l-25 tab-p-50 m-100">
  58.                 <span>
  59.                     <i class="icon-avantages02"></i><br>
  60.                     <span>{{ 'frontend.home_content.pro.advantages.text02'|trans|raw }}</span>
  61.                 </span>
  62.             </li>
  63.             <li class="grid-25 tab-l-25 tab-p-50 m-100">
  64.                 <span>
  65.                     <i class="icon-avantages03"></i><br>
  66.                     <span>{{ 'frontend.home_content.pro.advantages.text03'|trans|raw }}</span>
  67.                 </span>
  68.             </li>
  69.             <li class="grid-25 tab-l-25 tab-p-50 m-100">
  70.                 <span>
  71.                     <i class="icon-avantages04"></i><br>
  72.                     <span>{{ 'frontend.home_content.pro.advantages.text04'|trans|raw }}</span>
  73.                 </span>
  74.             </li>
  75.         </ul>
  76.     </div>
  77.     {% endif %}
  78.     <div id="ie-banner" class="bandeau-ie none">
  79.         <div class="grid-90 txtcenter">
  80.             <p>{{ 'frontend.home_content.pro.logged_in.ie-banner.text01'|trans|raw }}</p>
  81.             <br>
  82.             <p>
  83.                 <a href="https://www.google.com/intl/fr/chrome/" target="_blank" title="" class="marginB10">{{ 'frontend.home_content.pro.logged_in.ie-banner.link01'|trans }}</a>
  84.                 <a href="https://www.mozilla.org/fr/firefox/" target="_blank" title="">{{ 'frontend.home_content.pro.logged_in.ie-banner.link02'|trans }}</a>
  85.             </p>
  86.         </div>
  87.         <div class="grid-10">
  88.             <div class="bloc-bt-close">
  89.                 <span class="bt-close">
  90.                     <span class="lignes">
  91.                         <span class="ligne1"></span>
  92.                         <span class="ligne3"></span>
  93.                     </span>
  94.                 </span>
  95.             </div>
  96.         </div>
  97.     </div>
  98. </div>
  99. {% if is_current_website('ecat') %}
  100.     <div class="ecat-bottom-banner">
  101.         <div>
  102.             {{ 'frontend.home_bottom.pro.ecat.first' | trans }}<br />
  103.             {{ 'frontend.home_bottom.pro.ecat.second' | trans }}
  104.         </div>
  105.     </div>
  106. {% endif %}
  107. <div class="menubas grid-hide tab-l-hide tab-p-hide m-visible">
  108.     {% if app.user is not null and app.user is pro %}
  109.         <ul class="liste01">
  110.             <li><a href="{{ path('homepage_pro') }}" title=""><i class="icon-accueil"></i></a></li>
  111.             <li><a href="{{ path('frontend_auction_list') }}" title=""><span class="prelative inbl">
  112.                                 <i class="icon-ordres-achat"></i>
  113.                                 {% if app.user.countLiveBids > 0 %}
  114.                                     <span class="caddy-notification">{{ app.user.countLiveBids }}</span>
  115.                                 {% endif %}
  116.                             </span></a></li>
  117.             <li><a href="{{ path('frontend_user_purchase') }}" title=""><i class="icon-commande"></i></a></li>
  118.             <li><a href="{{ path('fos_user_profile_edit') }}" title=""><i class="icon-sidentifier"></i></a></li>
  119.         </ul>
  120.     {% else %}
  121.         <ul class="liste02">
  122.             <li><a href="{{ getADUrl() }}" title="">{{ 'frontend.header.pro.link.sign_in'|trans }}</a></li>
  123.             <li><a href="{{ getADUrl() }}" title="">{{ 'frontend.header.pro.link.register'|trans }}</a></li>
  124.         </ul>
  125.     {% endif %}
  126. </div>
  127. {#% if not (is_current_website('showvroom')) %}
  128.     {% if app.user is null and not app.request.cookies.has('registration-pro-popup') %}
  129.         <div id="registration-pro-popup" class="registration-pro-popup flash tab-l-hide tab-p-hide m-hide">
  130.             <div class="block-container">
  131.                 <p class="color07"><strong>{{ 'frontend.home_content.pro.registration-pro-popup.text01'|trans }}</strong></p>
  132.                 <p>{{ 'frontend.home_content.pro.registration-pro-popup.text02'|trans }}</p>
  133.                 <p class="marginT20">
  134.                     <span class="marginR20"><a href="{{ getADUrl() }}" title="" class="lien09">{{ 'frontend.home_content.pro.registration-pro-popup.link.login'|trans }}</a></span>
  135.                     <span><a href="{{ getADUrl() }}" title="" class="lien12 inscription">{{ 'frontend.home_content.pro.registration-pro-popup.link.register'|trans }}</a></span>
  136.                 </p>
  137.                 <p class="marginT10">{{ 'frontend.home_content.pro.registration-pro-popup.text03'|trans }}</p>
  138.             </div>
  139.         </div>
  140.     {% endif %}
  141. {% endif %#}