custom/plugins/ThemeOkeonline/src/Resources/views/storefront/element/cms-element-oo-usp-vertical.html.twig line 1

Open in your IDE?
  1. {% block element_oo_productusps %}
  2.     {% set uspConfig = element.config['uspsdata'].value %}
  3.     {# classnames prefixed with usp- represent the divs that belong to twig-blocks.#}
  4.     <div class="usp-list-vertical {{ element.config.version.value|default('version-01') }}">
  5.         <hr class="usp-top-border" />
  6.         {% set legacyUsps = uspConfig|split("\n") %}
  7.         {% block element_oo_usp_wrapper %}
  8.             <div class="product-detail-usp">
  9.                 <ul class="usp-wrapper list-unstyled">
  10.                     {# This is legacy, probably not in use anymore #}
  11.                     {% if uspConfig %}
  12.                         {% for usp in legacyUsps %}
  13.                             {% block element_oo_usp_row %}
  14.                                 <li class="usp-row">
  15.                                     {% sw_include "@parent/storefront/utilities/icon.html.twig" ignore missing with { 'name': 'fa-check', 'size': 'xs', 'class': 'fal' } %}
  16.                                     {% block element_oo_usp_text %}
  17.                                         {{ usp }}
  18.                                     {% endblock %}
  19.                                 </li>
  20.                             {% endblock %}
  21.                         {% endfor %}
  22.                     {% endif %}
  23.                     {% if element.config.usp1text.value is not null and element.config.usp1text.value is not empty %}
  24.                         <li class="usp-row">
  25.                             {% sw_include "@parent/storefront/utilities/icon.html.twig" ignore missing with { 'name': element.config.usp1icon.value|default('fa-check'), 'size': 'xs', 'class': element.config.usp1iconStyle.value|default('fal')} %}
  26.                             {{ element.config.usp1text.value }}
  27.                         </li>
  28.                     {% endif %}
  29.                     {% if element.config.usp2text.value is not null and element.config.usp2text.value is not empty %}
  30.                         <li class="usp-row">
  31.                             {% sw_include "@parent/storefront/utilities/icon.html.twig" ignore missing with { 'name': element.config.usp2icon.value|default('fa-check'), 'size': 'xs', 'class': element.config.usp2iconStyle.value|default('fal')} %}
  32.                             {{ element.config.usp2text.value }}
  33.                         </li>
  34.                     {% endif %}
  35.                     {% if element.config.usp3text.value is not null and element.config.usp3text.value is not empty %}
  36.                         <li>
  37.                             {% sw_include "@parent/storefront/utilities/icon.html.twig" ignore missing with { 'name': element.config.usp3icon.value|default('fa-check'), 'size': 'xs', 'class': element.config.usp3iconStyle.value|default('fal')} %}
  38.                             {{ element.config.usp3text.value }}
  39.                         </li>
  40.                     {% endif %}
  41.                     {% if element.config.usp4text.value is not null and element.config.usp4text.value is not empty %}
  42.                         <li class="usp-row">
  43.                             {% sw_include "@parent/storefront/utilities/icon.html.twig" ignore missing with { 'name': element.config.usp4icon.value|default('fa-check'), 'size': 'xs', 'class': element.config.usp4iconStyle.value|default('fal')} %}
  44.                             {{ element.config.usp4text.value }}
  45.                         </li>
  46.                     {% endif %}
  47.                 </ul>
  48.             </div>
  49.         {% endblock %}
  50.         <hr class="usp-bottom-border" />
  51.     </div>
  52. {% endblock %}