{#
usage:
{% include 'includes/partials/_list-text.html.twig' with {
'listTextFieldName':'listText',
'listTextOverrideData': [ // Optioneel
'usp 1',
'usp 2',
]}
%}
#}
{#@todo-frontend: figure out when to switch from one-column to two-column usp-list display? design has 3 in one column, and 8 in two columns. > 4 perhaps?#}
{% if listTextOverrideData is defined %}
{# If a manual dataset is supplied from a product... #}
<ul class="md:mt-8 md:my-8 text-md {{ hideMarginTopMobile ? 'mt-0' : 'mt-8' }}">
{% for i in listTextOverrideData %}
<li class="flex mb-3 text-blue">
<svg class="w-[24px] h-[18px] mr-3 shrink-0 mt-1.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 18">
<path fill="currentColor" fill-rule="evenodd" d="M21.576 0 24 2.424l-6.562 6.562-7.655 7.655a1.71 1.71 0 0 1-2.422 0h-.002L0 9.28l2.425-2.424 6.147 6.148L21.576 0Z"/>
</svg>
<span>{{ i }}</span>
</li>
{% endfor %}
</ul>
{% else %}
<!--manual mode-->
{# If no manual dataset is delivered, fallback to the manual mode #}
<ul class="md:mt-8 md:my-8 text-md {{ hideMarginTopMobile ? 'mt-0' : 'mt-8' }}">
{% for i in pimcore_block(listTextFieldName ?? 'listText').iterator %}
<li class="flex mb-3 text-blue">
<svg class="w-[24px] h-[18px] mr-3 shrink-0 mt-1.5 " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 18">
<path fill="#0072BB" fill-rule="evenodd" d="M21.576 0 24 2.424l-6.562 6.562-7.655 7.655a1.71 1.71 0 0 1-2.422 0h-.002L0 9.28l2.425-2.424 6.147 6.148L21.576 0Z"/>
</svg>
<span>{{ pimcore_input('text', {'placeholder': "Vul hier een usp in."}) }}</span>
</li>
{% endfor %}
</ul>
{% endif %}