templates/bundles/SyliusShopBundle/Product/Show/Tabs/_details.html.twig line 1

Open in your IDE?
  1. <div class="ui bottom attached tab segment active" data-tab="details">
  2. <div class="ui two column stackable grid">
  3.     <div class="column">
  4.         {% if product.description is defined %}
  5.             {% if product.description is not empty %}
  6.                 <h3 class="product-details__description-title h4">Description complémentaire</h3>
  7.                 <div class="product-details__description-content">{{ product.description | raw }}</div>
  8.             {% else %}
  9.                 {{ 'sylius.ui.no_description'|trans }}.
  10.             {% endif %}
  11.         {% endif %}
  12.         <div class="product-details__additional-description background-darker">
  13.             {% if SimpleAttributes.biere is defined %}
  14.                 {% set biere = SimpleAttributes.biere %}
  15.                 {% if biere is not null and biere is not empty %}
  16.                 <div class="product-details__icon biere">
  17.                     <img src="{{ asset('assets/shop/img/beer-red.svg') }}" alt="">
  18.                     <div>
  19.                         <strong>{{ 'sylius.ui.accordbieres'|trans }}</strong> <br > <span>{{ biere.value }}</span>
  20.                     </div>
  21.                 </div>
  22.                 {% endif %}
  23.             {% endif %}
  24.             {% if SimpleAttributes.vin is defined %}
  25.                 {% set vin = SimpleAttributes.vin %}
  26.                 {% if vin is not null and vin is not empty %}
  27.                 <div class="product-details__icon vin">
  28.                     <img src="{{ asset('assets/shop/img/wine-red.svg') }}" alt="">
  29.                     <div>
  30.                         <strong>{{ 'sylius.ui.accordvins'|trans }}</strong> <br > <span>{{ vin.value }}</span>
  31.                     </div>
  32.                 </div>
  33.                 {% endif %}
  34.             {% endif %}
  35.         </div>
  36.     </div>
  37.     <div class="column">
  38.         <div class="ui two column stackable grid">
  39.             <div class="column product-details__additional-content" id="col-one">
  40.                 {% if SimpleAttributes.degre_aromatique is defined %}
  41.                     {% set degre_aromatique = SimpleAttributes.degre_aromatique %}
  42.                     {% if degre_aromatique is not null and degre_aromatique is not empty %}
  43.                     <div class="product-details__icon degre_aromatique">
  44.                         <img src="{{ asset('assets/shop/img/arome-red.png') }}" alt="">
  45.                         <div>
  46.                             <strong>{{ 'sylius.ui.puissancearomatique'|trans }}</strong> <br /> <span>{{ degre_aromatique.value }}</span>
  47.                         </div>
  48.                     </div>
  49.                     {% endif %}
  50.                 {% endif %}
  51.                 {% if SimpleAttributes.aspect is defined %}
  52.                     {% set aspect = SimpleAttributes.aspect %}
  53.                     {% if aspect is not null and aspect is not empty %}
  54.                     <div class="product-details__icon aspect">
  55.                         <img src="{{ asset('assets/shop/img/cheese-2-red.svg') }}" alt="">
  56.                         <div>
  57.                             <strong>{{ 'sylius.ui.aspect'|trans }}</strong> <br /> <span>{{ aspect.value }}</span>
  58.                         </div>
  59.                     </div>
  60.                     {% endif %}
  61.                 {% endif %}
  62.                 {% if SimpleAttributes.texture is defined %}
  63.                     {% set texture = SimpleAttributes.texture %}
  64.                     {% if texture is not null and texture is not empty %}
  65.                     <div class="product-details__icon texture">
  66.                         <img src="{{ asset('assets/shop/img/cheese-3-red.svg') }}" alt="">
  67.                         <div>
  68.                             <strong>{{ 'sylius.ui.texture'|trans }}</strong> <br /> <span>{{ texture.value }}</span>
  69.                         </div>
  70.                     </div>
  71.                     {% endif %}
  72.                 {% endif %}
  73.             </div>
  74.             <div class="column product-details__additional-content" id="col-two">
  75.                 {% if SimpleAttributes.gout is defined %}
  76.                     {% set gout = SimpleAttributes.gout %}
  77.                     {% if gout is not null and gout is not empty %}
  78.                     <div class="product-details__icon gout">
  79.                         <img src="{{ asset('assets/shop/img/mouth-red.svg') }}" alt="">
  80.                         <div>
  81.                             <strong>{{ 'sylius.ui.gout'|trans }}</strong> <br /> <span>{{ gout.value }}</span>
  82.                         </div>
  83.                     </div>
  84.                     {% endif %}
  85.                 {% endif %}
  86.                 {% if SimpleAttributes.odeur is defined %}
  87.                     {% set odeur = SimpleAttributes.odeur %}
  88.                     {% if odeur is not null and odeur is not empty %}
  89.                     <div class="product-details__icon odeur">
  90.                         <img src="{{ asset('assets/shop/img/nose-red.svg') }}" alt="">
  91.                         <div>
  92.                             <strong>{{ 'sylius.ui.odeur'|trans }}</strong> <br /> <span>{{ odeur.value }}</span>
  93.                         </div>
  94.                     </div>
  95.                     {% endif %}
  96.                 {% endif %}
  97.                 {% if SimpleAttributes.affinage is defined %}
  98.                     {% set affinage = SimpleAttributes.affinage %}
  99.                     {% if affinage is not null and affinage is not empty %}
  100.                     <div class="product-details__icon affinage">
  101.                         <img src="{{ asset('assets/shop/img/affinage-red.svg') }}" alt="">
  102.                         <div>
  103.                             <strong>{{ 'sylius.ui.affinage'|trans }}</strong> <br /> <span>{{ affinage.value }}</span>
  104.                         </div>
  105.                     </div>
  106.                     {% endif %}
  107.                 {% endif %}
  108.             </div>
  109.         </div>
  110.     </div>
  111. </div>
  112. </div>