templates/includes/product/detail-table-vertical.html.twig line 1

Open in your IDE?
  1. {% set th = th|default([]) %}
  2. {% set td = td|default([]) %}
  3. {% set internalBrand = internalBrand ?? product.internalBrand ?? '' %}
  4. <h3>{{ 'product.detail.Table'|trans }}</h3>
  5. <table class="table">
  6.     <thead>
  7.     <tr>
  8.         <th></th>
  9.     </tr>
  10.     </thead>
  11.     <tbody>
  12.         {% for i in 0..td|length - 1 %}
  13.             {% if td[i] is not empty %}
  14.                 <tr>
  15.                     <th>{{ ('product.detail.' ~ internalBrand ~ "." ~ th[i])|trans }}</th>
  16.                     {% set tk = 'product.detail.' ~ internalBrand ~ "." ~ th[i] ~ '-suffix' %}
  17.                     {% set tk_prefix = '' %}
  18.                     {% if th[i] == 'throughput' %}
  19.                         {% set tk_prefix = 'product.detail.' ~ internalBrand ~ "." ~ th[i] ~ '-prefix' %}
  20.                     {% endif %}
  21.                     <td class="text-end" style="list-style-position: inside;">
  22.                         {{ ((tk_prefix == tk_prefix|trans) and (not app.request.get('pimcore_debug_translations'))) ? '' : tk_prefix|trans|raw }}
  23.                         {{ td[i]|raw }}
  24.                         {{ ((tk == tk|trans) and (not app.request.get('pimcore_debug_translations'))) ? '' : tk|trans|raw }}
  25.                     </td>
  26.                 </tr>
  27.             {% endif %}
  28.         {% endfor %}
  29.     </tbody>
  30. </table>