templates/front/accueil/besoin-product-bloc/text-hover.html.twig line 1

Open in your IDE?
  1. {% if isProduct == 1 %}
  2.     {% if nbrProduct is defined and nbrProduct == 1 %}
  3.         {% if object.textHoverProduct1 is defined and object.textHoverProduct1|length > 0 %}
  4.             <div class="middleBesoinProduct">
  5.                 <div class="textHoverBesoinProduct">
  6.                     {% for item in object.textHoverProduct1 %}
  7.                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  8.                     {% endfor %}
  9.                 </div>
  10.             </div>
  11.         {% endif %}
  12.     {% elseif nbrProduct is defined and nbrProduct == 2 %}
  13.         {% if object.textHoverProduct2 is defined and object.textHoverProduct2|length > 0 %}
  14.             <div class="middleBesoinProduct">
  15.                 <div class="textHoverBesoinProduct">
  16.                     {% for item in object.textHoverProduct2 %}
  17.                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  18.                     {% endfor %}
  19.                 </div>
  20.             </div>
  21.         {% endif %}
  22.     {% elseif nbrProduct is defined and nbrProduct == 3 %}
  23.         {% if object.textHoverProduct3 is defined and object.textHoverProduct3|length > 0 %}
  24.             <div class="middleBesoinProduct">
  25.                 <div class="textHoverBesoinProduct">
  26.                     {% for item in object.textHoverProduct3 %}
  27.                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  28.                     {% endfor %}
  29.                 </div>
  30.             </div>
  31.         {% endif %}
  32.     {% elseif nbrProduct is defined and nbrProduct == 4 %}
  33.         {% if object.textHoverProduct4 is defined and object.textHoverProduct4|length > 0 %}
  34.             <div class="middleBesoinProduct">
  35.                 <div class="textHoverBesoinProduct">
  36.                     {% for item in object.textHoverProduct4 %}
  37.                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  38.                     {% endfor %}
  39.                 </div>
  40.             </div>
  41.         {% endif %}
  42.     {% elseif nbrProduct is defined and nbrProduct == 5 %}
  43.         {% if object.textHoverProduct5 is defined and object.textHoverProduct5|length > 0 %}
  44.             <div class="middleBesoinProduct">
  45.                 <div class="textHoverBesoinProduct">
  46.                     {% for item in object.textHoverProduct5 %}
  47.                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  48.                     {% endfor %}
  49.                 </div>
  50.             </div>
  51.         {% endif %}
  52.     {% elseif nbrProduct is defined and nbrProduct == 6 %}
  53.         {% if object.textHoverProduct6 is defined and object.textHoverProduct6|length > 0 %}
  54.             <div class="middleBesoinProduct">
  55.                 <div class="textHoverBesoinProduct">
  56.                     {% for item in object.textHoverProduct6 %}
  57.                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  58.                     {% endfor %}
  59.                 </div>
  60.             </div>
  61.         {% endif %}
  62.     {% elseif nbrProduct is defined and nbrProduct == 7 %}
  63.         {% if object.textHoverProduct7 is defined and object.textHoverProduct7|length > 0 %}
  64.             <div class="middleBesoinProduct">
  65.                 <div class="textHoverBesoinProduct">
  66.                     {% for item in object.textHoverProduct7 %}
  67.                         <p>{{ item.name | trans({}, "productTranslate") }}</p>
  68.                     {% endfor %}
  69.                 </div>
  70.             </div>
  71.         {% endif %}
  72.     {% else %}
  73.         {% if object.textHoverProduct is defined and object.textHoverProduct|length > 0 %}
  74.             <div class="middleBesoinProduct">
  75.                 <div class="textHoverBesoinProduct">
  76.                 {% for item in object.textHoverProduct %}
  77.                     <p>{{ item.name | trans({}, "productTranslate") }}</p>
  78.                 {% endfor %}
  79.                 </div>
  80.             </div>
  81.         {% endif %}
  82.     {% endif %}
  83. {% else %}
  84.     {% if object.textHoverAttribut is defined and  object.textHoverAttribut|length > 0 %}
  85.         <div class="middleBesoinProduct">
  86.             <div class="textHoverBesoinProduct">
  87.                 {% for item in object.textHoverAttribut %}
  88.                     <p>{{ item.name | trans({}, "productTranslate") }}</p>
  89.                 {% endfor %}
  90.             </div>
  91.         </div>
  92.     {% endif %}
  93. {% endif %}