{% 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 attr_extra_left = '' %} {% if particle.extra_left %} {% for attributes in particle.extra_left %} {% for key, value in attributes %} {% set attr_extra_left = attr_extra_left ~ ' ' ~ key|e ~ '="' ~ value|e('html_attr') ~ '"' %} {% endfor %} {% endfor %} {% endif %} {% set attr_extra_right = '' %} {% if particle.extra_right %} {% for attributes in particle.extra_right %} {% for key, value in attributes %} {% set attr_extra_right = attr_extra_right ~ ' ' ~ key|e ~ '="' ~ value|e('html_attr') ~ '"' %} {% endfor %} {% endfor %} {% endif %} {% set textcontent %} {% if particle.title %}

{{- particle.title|raw -}}

{% endif %} {% if particle.description %}

{{- particle.description|raw -}}

{% endif %} {% if particle.link or particle.link2 %}
{% if particle.link %} {%- if particle.buttonicon -%} {%- endif -%} {{- particle.buttontext|raw -}} {% endif %} {% if particle.link2 %} {%- if particle.buttonicon2 -%} {%- endif -%} {{- particle.buttontext2|raw -}} {% endif %}
{% endif %} {% endset %} {% set imagecontent %} {% if particle.image %} {{ particle.alt|e }} {% endif %} {% endset %} {% block particle %}
{% if particle.layout|default('right')|e == 'right' %}{{ textcontent }}{% endif %} {% if particle.layout|default('right')|e == 'left' %}{{ imagecontent }}{% endif %}
{% if particle.layout|default('right')|e == 'right' %}{{ imagecontent }}{% endif %} {% if particle.layout|default('right')|e == 'left' %}{{ textcontent }}{% endif %}
{% endblock %}