templates/bundles/SyliusShopBundle/Product/Show/_detailproduct.html.twig line 1

Open in your IDE?
  1.         
  2.         {% if SimpleAttributes.affineur is defined %}
  3.             {% set motaffineur = SimpleAttributes.affineur %}
  4.             {% if motaffineur is not null and motaffineur is not empty %}
  5.             <p class="affineur product-details__complementary italic">
  6.                 <i class="c-red">{{ 'sylius.product.motaffineur'|trans }}</i> : « {{ motaffineur.value }} »
  7.             </p>
  8.             {% endif %}
  9.         {% endif %}
  10.         <div class="ui two column stackable grid product-details__additional-content">
  11.             <div class="column">
  12.                 {% if SimpleAttributes.typepate is defined %}
  13.                     {% set typepate = SimpleAttributes.typepate %}
  14.                     {% if typepate is not null and typepate is not empty %}
  15.                     <div class="product-details__icon typepate">
  16.                         <img src="{{ asset('assets/shop/img/cheese-red.svg') }}" alt="">
  17.                         <div>
  18.                             <strong>{{ 'sylius.product.famillefromage'|trans }}</strong> <br /><span> {{ typepate.value }}</span>
  19.                         </div>
  20.                     </div>
  21.                     {% endif %}
  22.                 {% endif %}
  23.                 {% if SimpleAttributes.typelait is defined %}
  24.                     {% set typelait = SimpleAttributes.typelait %}
  25.                     {% if typelait is not null and typelait is not empty %}
  26.                     <div class="product-details__icon famillelait">
  27.                         <img src="{{ asset('assets/shop/img/brebis-red.svg') }}" alt="">
  28.                         <div>
  29.                             <strong>{{ 'sylius.product.famillelait'|trans }}</strong> <br /><span> {{ typelait.value }}</span>
  30.                         </div>
  31.                     </div>
  32.                     {% endif %}
  33.                 {% endif %}
  34.                 {% if pays_origine is defined %}
  35.                     {% if pays_origine is not null and pays_origine is not empty %}
  36.                     <div class="product-details__icon pays_origine">
  37.                         <img src="{{ asset('assets/shop/img/france-2-red.svg') }}" alt="">
  38.                         <div>
  39.                             <strong>{{ 'sylius.product.paysorigine'|trans }}</strong> <br /><span> {{ pays_origine }}</span>
  40.                         </div>
  41.                     </div>
  42.                     {% endif %}
  43.                 {% endif %}
  44.             </div>
  45.             <div class="column">
  46.                 {% if SimpleAttributes.traitement is defined %}
  47.                     {% set traitement = SimpleAttributes.traitement %}
  48.                     {% if traitement is not null and traitement is not empty %}
  49.                     <div class="product-details__icon traitement">
  50.                         <img src="{{ asset('assets/shop/img/milk-red.svg') }}" alt="">
  51.                         <div>
  52.                             <strong>{{ 'sylius.product.typedelait'|trans }}</strong> <br /><span> {{ traitement.value }}</span>
  53.                         </div>
  54.                     </div>
  55.                     {% endif %}
  56.                 {% endif %}
  57.                 {% if SimpleAttributes.typeproduction is defined %}
  58.                     {% set typeproduction = SimpleAttributes.typeproduction %}
  59.                     {% if typeproduction is not null and typeproduction is not empty %}
  60.                     <div class="product-details__icon typeproduction">
  61.                         <img src="{{ asset('assets/shop/img/barn-red.svg') }}" alt="">
  62.                         <div>
  63.                             <strong>{{ 'sylius.product.production'|trans }}</strong> <br /><span> {{ typeproduction.value }}</span>
  64.                         </div>
  65.                     </div>
  66.                     {% endif %}
  67.                 {% endif %}
  68.                 {% if regions is not null and regions is not empty %}
  69.                 <div class="product-details__icon regions">
  70.                     <img src="{{ asset('assets/shop/img/region-red.svg') }}" alt="">
  71.                     <div>
  72.                         <strong>{{ 'sylius.product.regions'|trans }}</strong> <br /><span> {{ regions }}</span>
  73.                     </div>
  74.                 </div>
  75.                 {% endif %}
  76.             </div>
  77.         </div>