{% extends '@nucleus/partials/particle.html.twig' %} {% set attr_extra = '' %} {% if particle.extra %} {% for attributes in particle.extra %} {% for key, value in attributes %} {% set attr_extra = attr_extra ~ ' ' ~ key|e ~ '="' ~ value|e('html_attr') ~ '"' %} {% endfor %} {% endfor %} {% endif %} {% set particleheading %}
{% if particle.mainheading %}

{{ particle.mainheading|raw }}

{% endif %} {% if particle.introtext %}

{{ particle.introtext|raw }}

{% endif %}
{% endset %} {% block particle %}
{% if particle.mainheading or particle.introtext %} {{ particleheading }} {% endif %} {% for row in particle.items|batch(particle.columns|default('2')|e) %}
{% for item in row %} {% set attr_extra_item = '' %} {% for extra in item.extra %} {% set attr_extra_item = attr_extra_item ~ ' ' ~ extra|keys|first|e ~ '="' ~ extra|values|first|e('html_attr') ~ '"' %} {% endfor %}
{% if item.image %}
{{ item.alt|e }}
{% endif %} {% if item.feedback or item.customername %}
{% if item.feedback %}
{{- item.feedback|raw -}}
{% endif %} {% if item.customername or item.position or item.company %}
{%- if item.customername -%}
{{- item.customername|e -}}
{%- endif -%} {%- if item.position or item.company -%}
{{- item.position|e -}}{% if item.company and item.position %} - {% endif %} {%- if item.company -%} {%- if item.companylink -%} {%- endif -%} {{- item.company|e -}} {%- if item.companylink -%} {%- endif -%} {%- endif -%}
{%- endif -%}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %}