templates/front/accueil/besoin-product-bloc/content-new.html.twig line 1

Open in your IDE?
  1. {% for category in categorys %}
  2.     <div class="bloc_besoin_product_sous_content" id="besoin_product_category{{ category.id }}">
  3.         <div class="container">
  4.             <div class="col-lg-12 pl-0 text-center">
  5.                 <h2>{{category.name | trans({}, "productTranslate")}}
  6.                     {% for file in category.iconesCategory %}
  7.                         <img src="{{ asset('imageSite/'~file.file) }}" style="margin-left: 10px;margin-top: -3px;width: 25px;">
  8.                     {% endfor %}
  9.                     {% if category.isSoon %}
  10.                         <span class="infoBulleSoon" style="position: relative;right: 0;top: -1px;margin-left: 18px;">{{ 'Soon' | trans({}, "productTranslate") }}</span>
  11.                     {% endif %}
  12.                 </h2>
  13.             </div>
  14.         </div>
  15.         {% if category.isBlockBesoinModele %}
  16.             <div class="row">
  17.                 <div class="col-md-6 col-12 p-0" style="padding-right: 15px!important;">
  18.                     <div class="global_jaune_besoin row p-0 mb-1" style="padding: 16px 16px!important;">
  19.                         <div class="col-12 p-0 h3input_besoin">
  20.                             <h4 class="mt-0 hBesoinModele" style="margin-bottom: 24px;">
  21.                                 {{ 'Choisissez vos produits à personnaliser,
  22.                                 livrés le jour même sur créneau de 30 mn' | trans({}, "productTranslate")|raw }}
  23. {#                                <img style="margin-bottom:0" src="/images/ininfoselect.svg"> #}
  24.                             </h4>
  25.                             {#<img src="{{ asset('images/img_vison1.png')}}">#}
  26.                             <form action="{{ path('product_option') }}" id="formSelectProduct">
  27.                                 <div class="input_besoin_bx">
  28.                                     <div class='selectProduct'>
  29.                                         <p class='input'>{{ 'Selectionnez votre produit' | trans({}, "productTranslate") }}</p>
  30.                                         <input type='hidden' name='product' />
  31.                                         <div class='hidden'>
  32.                                             {% for item in getProductsWithoutPapierAndNotColorLab() %}
  33.                                                 <p value='{{ item.id }}' >{{ item.titre | trans({}, "productTranslate") }}</p>
  34.                                             {% endfor %}
  35.                                         </div>
  36.                                     </div>
  37.                                     <button type="submit" style="display: none;"><img src="/images/right_next_ca.png"></button>
  38.                                 </div>
  39.                             </form>
  40.                         </div>
  41.                     </div>
  42.                 </div>
  43.                 <div class="col-md-6 col-12 p-0 desctopProductBesoinProductPage">
  44.                     <div class="product_slick_bloc01 row">
  45.                         {% set products = getAllActiveByCategoryBesoinProduct(category.id) %}
  46.                         {% for product in products %}
  47.                             {% if loop.index < 4 %}
  48.                                 <div class="text-center col-xl-4 col-lg-4 col-md-4 col-sm-4 col-6 blockBesoinProduct  marginBottomBlocBesoin50">
  49.                                     <a style="position: relative;" data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}" data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %} besoin_product_a_img"
  50.                                         {% if  product.product.id is defined  %}
  51.                                             href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  52.                                         {% else %}
  53.                                             href="{{ product.url }}"
  54.                                         {% endif%}
  55.                                     >
  56.                                         {% if product.isSoon  %}<span class="infoBulleSoon">{{ 'Soon' | trans({}, "productTranslate") }}</span>{% endif %}
  57.                                         {% if product.isDesignEnLigne  %}<span class="infoBulleVistacreate">{{ 'Design en ligne' | trans({}, "productTranslate") }} <img src="{{ asset('images/ininfoselectVistaCreateHd.svg') }}"> </span>{% endif %}
  58.                                         <img  class="" src="{{ asset('imageSite/'~product.fileBesoinProduct) }}">
  59.                                         {% if product.textHoverProduct is defined and product.textHoverProduct|length > 0 %}
  60.                                             <div class="middleBesoinProduct">
  61.                                                 <div class="textHoverBesoinProduct">
  62.                                                     {% for item in product.textHoverProduct %}
  63.                                                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  64.                                                     {% endfor %}
  65.                                                 </div>
  66.                                             </div>
  67.                                         {% endif %}
  68.                                     </a>
  69.                                     <h3>
  70.                                         <a  data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %}"
  71.                                            {% if  product.product.id is defined  %}
  72.                                                 href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  73.                                            {% else %}
  74.                                                href="{{ product.url }}"
  75.                                            {% endif%}
  76.                                         >
  77.                                             <span class="besoin_product_a_span1">{{ product.besoinProductTextPrix | trans({}, "productTranslate") }}</span>
  78.                                             <span class="besoin_product_a_span2">{{ product.besoinProductTextTitre | trans({}, "productTranslate") }}</span>
  79.                                         </a>
  80.                                     </h3>
  81.                                 </div>
  82.                             {% endif %}
  83.                         {% endfor %}
  84.                     </div>
  85.                 </div>
  86.             </div>
  87.             <div class="position-relative besoin_product_bloc desctopProductBesoinProductPage">
  88.                 <div class="product_slick_bloc01 row">
  89.                     {% set products = getAllActiveByCategoryBesoinProduct(category.id) %}
  90.                     {% for product in products %}
  91.                         {% if loop.index > 3 %}
  92.                             <div class="text-center col-xl-2 col-lg-3 col-md-4 col-sm-4 col-6 blockBesoinProduct  marginBottomBlocBesoin50">
  93.                                 <a style="position: relative;"  data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle  {% if product.isSoon  %}not_cliquable {% endif %} besoin_product_a_img"
  94.                                     {% if  product.product.id is defined  %}
  95.                                         href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  96.                                     {% else %}
  97.                                         href="{{ product.url }}"
  98.                                     {% endif%}
  99.                                 >
  100.                                     {% if product.isSoon  %}<span class="infoBulleSoon">{{ 'Soon' | trans({}, "productTranslate") }}</span>{% endif %}
  101.                                     {% if product.isDesignEnLigne  %}<span class="infoBulleVistacreate">{{ 'Design en ligne' | trans({}, "productTranslate") }} <img src="{{ asset('images/ininfoselectVistaCreateHd.svg') }}"> </span>{% endif %}
  102.                                     <img  class="" src="{{ asset('imageSite/'~product.fileBesoinProduct) }}">
  103.                                     {% if product.textHoverProduct is defined and product.textHoverProduct|length > 0 %}
  104.                                         <div class="middleBesoinProduct">
  105.                                             <div class="textHoverBesoinProduct">
  106.                                                 {% for item in product.textHoverProduct %}
  107.                                                     <p>{{ item.name | trans({}, "productTranslate") }}</p>
  108.                                                 {% endfor %}
  109.                                             </div>
  110.                                         </div>
  111.                                     {% endif %}
  112.                                 </a>
  113.                                 <h3>
  114.                                     <a  data-name="{{ product.besoinProductTextPrix }}" data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %}"
  115.                                             {% if  product.product.id is defined  %}
  116.                                                 href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  117.                                             {% else %}
  118.                                                 href="{{ product.url }}"
  119.                                             {% endif%}
  120.                                     >
  121.                                         <span class="besoin_product_a_span1">{{ product.besoinProductTextPrix | trans({}, "productTranslate") }}</span>
  122.                                         <span class="besoin_product_a_span2">{{ product.besoinProductTextTitre | trans({}, "productTranslate") }}</span>
  123.                                     </a>
  124.                                 </h3>
  125.                             </div>
  126.                         {% endif %}
  127.                     {% endfor %}
  128.                 </div>
  129.             </div>
  130.             <div class=" mobileProductBesoinProductPage">
  131.                 <div class="bloc_besoin_product_global_content product_slide">
  132.                     <div class="position-relative CreezCommuniquezBesoinProduct" style="    margin-right: 12px;">
  133.                         <div class="slick_bouton">
  134.                             <div class="slickNext2model1 slickNextBesoinProductBloc"><img src="{{ asset('images/rightfls.png')}}"></div>
  135.                             <div class="slickNext2model1 slickPrevBesoinProductBloc"><img src="{{ asset('images/leftfls.png')}}"></div>
  136.                         </div>
  137.                         <div class="mobileProductBesoinProductPageSlideGlobalProduct mobileProductBesoinProductPageSlideGlobal responsive slider">
  138.                             {% set products = getAllActiveByCategoryBesoinProduct(category.id) %}
  139.                             {% for product in products %}
  140.                                 <div class="text-center divSlick blockBesoinProductParrent" style="width: 100%;display: inline-block;">
  141.                                     <div class="text-center  blockBesoinProduct  marginBottomBlocBesoin50">
  142.                                         <a style="position: relative;"  data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle  {% if product.isSoon  %}not_cliquable {% endif %} besoin_product_a_img"
  143.                                                 {% if  product.product.id is defined  %}
  144.                                                     href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  145.                                                 {% else %}
  146.                                                     href="{{ product.url }}"
  147.                                                 {% endif%}
  148.                                         >
  149.                                             {% if product.isSoon  %}<span class="infoBulleSoon">{{ 'Soon' | trans({}, "productTranslate") }}</span>{% endif %}
  150.                                             {% if product.isDesignEnLigne  %}<span class="infoBulleVistacreate">{{ 'Design en ligne' | trans({}, "productTranslate") }} <img  class="azerty" src="{{ asset('images/ininfoselectVistaCreateHd.svg') }}"> </span>{% endif %}
  151.                                             <img  class="" src="{{ asset('imageSite/'~product.fileBesoinProduct) }}">
  152.                                             {% if product.textHoverProduct is defined and product.textHoverProduct|length > 0 %}
  153.                                                 <div class="middleBesoinProduct">
  154.                                                     <div class="textHoverBesoinProduct">
  155.                                                         {% for item in product.textHoverProduct %}
  156.                                                             <p>{{ item.name | trans({}, "productTranslate") }}</p>
  157.                                                         {% endfor %}
  158.                                                     </div>
  159.                                                 </div>
  160.                                             {% endif %}
  161.                                         </a>
  162.                                         <h3>
  163.                                             <a  data-name="{{ product.besoinProductTextPrix }}" data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %}"
  164.                                                     {% if  product.product.id is defined  %}
  165.                                                         href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  166.                                                     {% else %}
  167.                                                         href="{{ product.url }}"
  168.                                                     {% endif%}
  169.                                             >
  170.                                                 <span class="besoin_product_a_span1">{{ product.besoinProductTextPrix | trans({}, "productTranslate") }}</span>
  171.                                                 <span class="besoin_product_a_span2">{{ product.besoinProductTextTitre | trans({}, "productTranslate") }}</span>
  172.                                             </a>
  173.                                         </h3>
  174.                                     </div>
  175.                                 </div>
  176.                             {% endfor %}
  177.                         </div>
  178.                     </div>
  179.                 </div>
  180.             </div>
  181.         {% else %}
  182.             <div class="position-relative besoin_product_bloc desctopProductBesoinProductPage">
  183.                 <div class="product_slick_bloc01 row">
  184.                     {% set products = getAllActiveByCategoryBesoinProduct(category.id) %}
  185.                     {% for product in products %}
  186.                         {% if product.product.id is defined and product.product.typeProduct == constant('App\\Entity\\Product::PAPIER') %}
  187.                             <div class="text-center col-xl-2 col-lg-3 col-md-4 col-sm-4 col-6 blockBesoinProduct  marginBottomBlocBesoin50">
  188.                                 <a style="position: relative;min-height: 150px;" data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle  {% if product.isSoon  %}not_cliquable {% endif %} besoin_product_a_img"
  189.                                    href="{{ path('accueil') }}?displayProduct=1&imprimerRelier=1&souhaite_str={{ product.souhaiteStr }}">
  190.                                       {% if product.isSoon  %}<span class="infoBulleSoon">{{ 'Soon' | trans({}, "productTranslate") }}</span>{% endif %}
  191.                                     <img  class="imgMaxHeightBesoinProduct" src="{{ asset('imageSite/'~product.fileBesoinProduct) }}">
  192.                                     {% if product.textHoverProduct is defined and product.textHoverProduct|length > 0 %}
  193.                                         <div class="middleBesoinProduct">
  194.                                             <div class="textHoverBesoinProduct">
  195.                                                 {% for item in product.textHoverProduct %}
  196.                                                     <p>{{ item.name | trans({}, "productTranslate") }}</p>
  197.                                                 {% endfor %}
  198.                                             </div>
  199.                                         </div>
  200.                                     {% endif %}
  201.                                 </a>
  202.                                 <h3>
  203.                                     <a  data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %}" href="{{ path('accueil') }}?displayProduct=1&imprimerRelier=1&souhaite_str={{ product.souhaiteStr }}">
  204.                                         <span class="besoin_product_a_span1">{{ product.besoinProductTextPrix | trans({}, "productTranslate") }}</span>
  205.                                         <span class="besoin_product_a_span2">{{ product.besoinProductTextTitre | trans({}, "productTranslate") }}</span>
  206.                                     </a>
  207.                                 </h3>
  208.                             </div>
  209.                         {% else %}
  210.                             <div class="text-center col-xl-2 col-lg-3 col-md-4 col-sm-4 col-6 blockBesoinProduct  marginBottomBlocBesoin50">
  211.                                 <a style="position: relative;" data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle  {% if product.isSoon  %}not_cliquable {% endif %} besoin_product_a_img"
  212.                                     {% if  product.product.id is defined  %}
  213.                                         href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  214.                                     {% else %}
  215.                                         href="{{ product.url }}"
  216.                                     {% endif%}
  217.                                 >
  218.                                     {% if product.isSoon  %}<span class="infoBulleSoon">{{ 'Soon' | trans({}, "productTranslate") }}</span>{% endif %}
  219.                                     {% if product.isDesignEnLigne  %}<span class="infoBulleVistacreate">{{ 'Design en ligne' | trans({}, "productTranslate") }} <img src="{{ asset('images/ininfoselectVistaCreateHd.svg') }}"> </span>{% endif %}
  220.                                     <img  class="" src="{{ asset('imageSite/'~product.fileBesoinProduct) }}">
  221.                                     {% if product.textHoverProduct is defined and product.textHoverProduct|length > 0 %}
  222.                                         <div class="middleBesoinProduct">
  223.                                             <div class="textHoverBesoinProduct">
  224.                                                 {% for item in product.textHoverProduct %}
  225.                                                     <p>{{ item.name | trans({}, "productTranslate") }}</p>
  226.                                                 {% endfor %}
  227.                                             </div>
  228.                                         </div>
  229.                                     {% endif %}
  230.                                 </a>
  231.                                 <h3>
  232.                                     <a  data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %}"
  233.                                         {% if  product.product.id is defined  %}
  234.                                             href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  235.                                         {% else %}
  236.                                             href="{{ product.url }}"
  237.                                         {% endif%}
  238.                                     >
  239.                                         <span class="besoin_product_a_span1">{{ product.besoinProductTextPrix | trans({}, "productTranslate") }}</span>
  240.                                         <span class="besoin_product_a_span2">{{ product.besoinProductTextTitre | trans({}, "productTranslate") }}</span>
  241.                                     </a>
  242.                                 </h3>
  243.                             </div>
  244.                         {% endif %}
  245.                     {% endfor %}
  246.                 </div>
  247.             </div>
  248.             <div class=" mobileProductBesoinProductPage">
  249.                 <div class="bloc_besoin_product_global_content product_slide">
  250.                     <div class="position-relative CreezCommuniquezBesoinProduct" style="    margin-right: 12px;">
  251.                         <div class="slick_bouton">
  252.                             <div class="slickNext2model1 slickNextBesoinProductBloc"><img src="{{ asset('images/rightfls.png')}}"></div>
  253.                             <div class="slickNext2model1 slickPrevBesoinProductBloc"><img src="{{ asset('images/leftfls.png')}}"></div>
  254.                         </div>
  255.                         {% set products = getAllActiveByCategoryBesoinProduct(category.id) %}
  256.                         {% set classPapier = '' %}
  257.                         {% for product in products %}
  258.                             {% if product.product.id is defined and product.product.typeProduct == constant('App\\Entity\\Product::PAPIER') %}
  259.                                 {% set classPapier = 'mobileProductBesoinProductPageSlideGlobalPapier' %}
  260.                             {% endif %}
  261.                         {% endfor %}
  262.                         <div class="mobileProductBesoinProductPageSlideGlobalProduct mobileProductBesoinProductPageSlideGlobal responsive slider {{ classPapier }}">
  263.                             {% set products = getAllActiveByCategoryBesoinProduct(category.id) %}
  264.                             {% for product in products %}
  265.                                 <div class="text-center divSlick blockBesoinProductParrent" style="width: 100%;display: inline-block;">
  266.                                     <div class="text-center  blockBesoinProduct  marginBottomBlocBesoin50">
  267.                                         {% if product.product.id is defined and product.product.typeProduct == constant('App\\Entity\\Product::PAPIER') %}
  268.                                         <a style="position: relative;"  data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle  {% if product.isSoon  %}not_cliquable {% endif %} besoin_product_a_img"
  269.                                                 href="{{ path('accueil') }}?displayProduct=1&imprimerRelier=1&souhaite_str={{ product.souhaiteStr }}"
  270.                                         >
  271.                                         {% else %}
  272.                                         <a style="position: relative;"  data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle  {% if product.isSoon  %}not_cliquable {% endif %} besoin_product_a_img"
  273.                                                 {% if  product.product.id is defined  %}
  274.                                                     href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  275.                                                 {% else %}
  276.                                                     href="{{ product.url }}"
  277.                                                 {% endif%}
  278.                                         >
  279.                                         {% endif %}
  280.                                             {% if product.isSoon  %}<span class="infoBulleSoon">{{ 'Soon' | trans({}, "productTranslate") }}</span>{% endif %}
  281.                                             {% if product.isDesignEnLigne  %}<span class="infoBulleVistacreate">{{ 'Design en ligne' | trans({}, "productTranslate") }} <img  class="azerty" src="{{ asset('images/ininfoselectVistaCreateHd.svg') }}"> </span>{% endif %}
  282.                                             <img  class="" src="{{ asset('imageSite/'~product.fileBesoinProduct) }}">
  283.                                             {% if product.textHoverProduct is defined and product.textHoverProduct|length > 0 %}
  284.                                                 <div class="middleBesoinProduct">
  285.                                                     <div class="textHoverBesoinProduct">
  286.                                                         {% for item in product.textHoverProduct %}
  287.                                                             <p>{{ item.name | trans({}, "productTranslate") }}</p>
  288.                                                         {% endfor %}
  289.                                                     </div>
  290.                                                 </div>
  291.                                             {% endif %}
  292.                                         </a>
  293.                                         <h3>
  294.                                             {% if product.product.id is defined and product.product.typeProduct == constant('App\\Entity\\Product::PAPIER') %}
  295.                                                 <a data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  data-name="{{ product.besoinProductTextPrix }}" class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %}" href="{{ path('accueil') }}?displayProduct=1&imprimerRelier=1&souhaite_str={{ product.souhaiteStr }}">
  296.                                                     <span class="besoin_product_a_span1">{{ product.besoinProductTextPrix | trans({}, "productTranslate") }}</span>
  297.                                                     <span class="besoin_product_a_span2">{{ product.besoinProductTextTitre | trans({}, "productTranslate") }}</span>
  298.                                                 </a>
  299.                                             {% else %}
  300.                                                 <a  data-name="{{ product.besoinProductTextPrix }}" data-category="articles" data-id="{% if product.product.id is defined %}{{ product.product.id }}{% else %}00{{ product.id }}{% endif %}"  class="selectTagGoogle {% if product.isSoon  %}not_cliquable {% endif %}"
  301.                                                         {% if  product.product.id is defined  %}
  302.                                                             href="{{ path('product_option') }}?product={% if product.product.id is defined %}{{ product.product.id }}{% endif %}"
  303.                                                         {% else %}
  304.                                                             href="{{ product.url }}"
  305.                                                         {% endif%}
  306.                                                 >
  307.                                                     <span class="besoin_product_a_span1">{{ product.besoinProductTextPrix | trans({}, "productTranslate") }}</span>
  308.                                                     <span class="besoin_product_a_span2">{{ product.besoinProductTextTitre | trans({}, "productTranslate") }}</span>
  309.                                                 </a>
  310.                                             {% endif %}
  311.                                         </h3>
  312.                                     </div>
  313.                                 </div>
  314.                             {% endfor %}
  315.                         </div>
  316.                     </div>
  317.                 </div>
  318.             </div>
  319.         {% endif %}
  320.     </div>
  321. {% endfor %}