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

Open in your IDE?
  1. {% sw_extends '@parent/storefront/element/cms-element-oo-usp-horizontal.html.twig' %}
  2. {% block element_oo_usp_wrapper %}
  3.     <div class="usp-list-horizontal {{ element.config.version.value|default('version-01') }} " style="{{ element.config.blockAlignment ? 'justify-content: ' ~ element.config.blockAlignment.value|default('center') ~ ';' : '' }}">
  4.         <div class="line"></div>
  5.         <ul>
  6.             <div>
  7.             
  8.             {# This file is also used as an include inside checkout, therefore we're checking if every value has been set. #}
  9.             {% if element.config.usp1text.value is not null and element.config.usp1text.value is not empty %}
  10.                 <li>
  11.                     {% 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('far')} %}
  12.                     {{ element.config.usp1text.value }}
  13.                 </li>
  14.             {% endif %}
  15.             {% if element.config.usp2text.value is not null and element.config.usp2text.value is not empty %}
  16.                 <li>
  17.                     {% 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('far')} %}
  18.                     {{ element.config.usp2text.value }}
  19.                 </li>
  20.             {% endif %}
  21.             {% if element.config.usp3text.value is not null and element.config.usp3text.value is not empty %}
  22.                 <li>
  23.                     {% 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('far')} %}
  24.                     {{ element.config.usp3text.value }}
  25.                 </li>
  26.             {% endif %}
  27.             {% if element.config.usp4text.value is not null and element.config.usp4text.value is not empty %}
  28.                 <li>
  29.                     {% 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('far')} %}
  30.                     {{ element.config.usp4text.value }}
  31.                 </li>
  32.             {% endif %}
  33.             {% if element.config.usp5text.value is not null and element.config.usp5text.value is not empty %}
  34.                 <li>
  35.                     {% sw_include "@parent/storefront/utilities/icon.html.twig" ignore missing with { 'name': element.config.usp5icon.value|default('fa-check'), 'size': 'xs', 'class': element.config.usp5iconStyle.value|default('far')} %}
  36.                     {{ element.config.usp5text.value }}
  37.                 </li>
  38.             {% endif %}
  39.             {% if element.config.usp6text.value is not null and element.config.usp6text.value is not empty %}
  40.                 <li>
  41.                     {% sw_include "@parent/storefront/utilities/icon.html.twig" ignore missing with { 'name': element.config.usp6icon.value|default('fa-check'), 'size': 'xs', 'class': element.config.usp6iconStyle.value|default('far')} %}
  42.                     {{ element.config.usp6text.value }}
  43.                 </li>
  44.             {% endif %}
  45.         </ul>
  46.     </div>
  47. {% endblock %}