{% set paragraph_classes = [
  'testimonial',
] %}
{% set attributes = attributes|default(create_attribute()) %}

{% extends "@ui-paragraph/paragraph.html.twig" %}

{% block paragraph_content %}
  <div class="testimonial__client">
    {% if paragraph_field_client_name %}
      {{ paragraph_field_client_name }}
    {% endif %}
  </div>

  <div class="testimonial__attribution-group">
    {% if paragraph_field_erm_image %}
      <div class="testimonial__attribution-image">
        {{ paragraph_field_erm_image }}
      </div>
    {% endif %}

    {% if
      paragraph_field_attribution__first or
      paragraph_field_attribution__second
    %}
      <div class="testimonial__attribution-name">
        {% if paragraph_field_attribution__first %}
          <div class="testimonial__attribution-first">
            {{ paragraph_field_attribution__first }}
          </div>
        {% endif %}

        {% if paragraph_field_attribution__second %}
          <div class="testimonial__attribution-second">
            {{ paragraph_field_attribution__second }}
          </div>
        {% endif %}
      </div>
    {% endif %}
  </div>

  {% if paragraph_field_body %}
    <div class="testimonial__body">
      {{ paragraph_field_body }}
    </div>
  {% endif %}

  {% if paragraph_field_link %}
    <div class="testimonial__cta">
      {{ paragraph_field_link }}
    </div>
  {% endif %}
{% endblock %}
