custom/plugins/zenitPlatformHorizon/src/Resources/views/storefront/component/product/zen-product-features.html.twig line 1

Open in your IDE?
  1. {% block zen_product_features %}
  2.     {% if zenCustomFields.product.zenit_horizon_features %}
  3.         {% set featuresList = zenCustomFields.product.zenit_horizon_features|trim|trim(';')|split(';') %}
  4.         {% set featuresIcon = theme_config('zen-product-details-features-icon') ?: 'checkmark' %}
  5.         {% set featuresStyle = theme_config('zen-product-details-features-style') ?: 'standard' %}
  6.         {% if featuresStyle == 'standard' %}
  7.             {% set listClasses =  'list-group list-group-flush' %}
  8.         {% else %}
  9.             {% set listClasses =  'list-unstyled' %}
  10.         {% endif %}
  11.         {% if featuresStyle == 'standard' %}
  12.             {% set listItemClasses =  'list-group-item bg-transparent' %}
  13.         {% else %}
  14.             {% set listItemClasses =  '' %}
  15.         {% endif %}
  16.         <div class="zen-product-detail-features mt-4">
  17.             <div class="zen-product-detail-features-headline h4">{{ 'zentheme.detail.features'|trans }}</div>
  18.             {% block zen_product_features_items %}
  19.                 <ul class="{{ listClasses }}">
  20.                     {% for feature in featuresList %}
  21.                         {% block zen_product_features_item %}
  22.                             <li class="{{ listItemClasses }}">
  23.                                 {% block zen_product_features_item_icon %}
  24.                                     {% if featuresIcon == 'arrow-medium-right'
  25.                                         or featuresIcon == 'arrow-large-right'
  26.                                         or featuresIcon == 'medium-double-right'
  27.                                         or featuresIcon == 'arrow-large-double-right'
  28.                                         or featuresIcon == 'arrow-medium-double-right'
  29.                                         or featuresIcon == 'plus' %}
  30.                                         {% sw_include "@Storefront/storefront/utilities/icon.html.twig" with { 'name': featuresIcon, 'pack': 'solid', 'class': 'sm mr-2'} %}
  31.                                     {% else %}
  32.                                         {% sw_include "@Storefront/storefront/utilities/icon.html.twig" with { 'name': featuresIcon, 'class': 'sm mr-2'} %}
  33.                                     {% endif %}
  34.                                 {% endblock %}
  35.                                 {% block element_zenit_features_item_text %}
  36.                                     {{ feature }}
  37.                                 {% endblock %}
  38.                             </li>
  39.                         {% endblock %}
  40.                     {% endfor %}
  41.                 </ul>
  42.             {% endblock %}
  43.         </div>
  44.     {% endif %}
  45. {% endblock %}