custom/plugins/ThemeOkeonline/src/Resources/views/storefront/page/product-detail/property.html.twig line 1

Open in your IDE?
  1. {% block page_product_detail_properties_table_row %}
  2.     {% set additionalClass = additionalClass ? ' ' ~ additionalClass : ''%}
  3.     <tr class="properties-row{{additionalClass}}">
  4.         {% block page_product_detail_properties_item_label %}
  5.             <th class="properties-label">
  6.                 {{ group.translated.name|e }}:
  7.                 {% apply spaceless %}
  8.                     {% if group.extensions.tooltip %}
  9.                         {% sw_include '@OkeonlinePropertyTooltips/storefront/page/product-detail/oo-property-tooltip.html.twig' ignore missing with {
  10.                             tooltip: group.extensions.tooltip
  11.                         } %}
  12.                     {% endif %}
  13.                 {% endapply %}
  14.             </th>
  15.         {% endblock %}
  16.         {% block page_product_detail_properties_item_value %}
  17.             <td class="properties-value">
  18.                 {% if group.displayType == 'media' %}
  19.                     <ul class="list-inline">    
  20.                     {% apply spaceless %}
  21.                         {% for option in group.options %}
  22.                             <li class="list-inline-item list-unstyled">
  23.                                 {% set propertyImageId = option.mediaId %}
  24.                                 {% set mediaCollection = searchMedia([propertyImageId], context.context) %}
  25.                                 {% set propertyMedia = mediaCollection.get(propertyImageId) %}
  26.                                 <span data-toggle="tooltip" data-placement="top" title="{{ option.translated.name|e }}">
  27.                                 {% sw_thumbnails 'property-images' with {
  28.                                     media: propertyMedia,
  29.                                     sizes: {
  30.                                         'xs': '100px', 
  31.                                         'sm': '100px', 
  32.                                         'md': '100px', 
  33.                                         'lg': '100px', 
  34.                                         'xl': '100px', 
  35.                                         'default': '100px'
  36.                                     }
  37.                                 } %}
  38.                                 </span>                                                               
  39.                             </li>
  40.                         {% endfor %}
  41.                     {% endapply %}
  42.                     </ul>
  43.                 {% else %}
  44.                     {% apply spaceless %}
  45.                         {% for option in group.options %}
  46.                             {% set i = ( i | default(0) ) + 1 %}
  47.                             <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  48.                         {% endfor %}
  49.                     {% endapply %}
  50.                 {% endif %}
  51.             </td>
  52.         {% endblock %}
  53.     </tr>
  54. {% endblock %}