<div class="contributor-container">
{% if author is defined and author is not empty %}
{% set this_author = sulu_resolve_contact(author) %}
{% if this_author.visibleAnnuaire is defined and this_author.visibleAnnuaire is not empty %}
{% if this_author.visibleAnnuaire == true %}
{% if this_author.fullName is defined and this_author.fullName is not empty %}
<a href="/user/{{ author }}" class="cblue">
{{- this_author.fullName -}}
</a>
{%- if content.contributors is defined and content.contributors is not empty -%}
{{- ',' -}}
{%- endif -%}
{% endif %}
{% else %}
{% if this_author.fullName is defined and this_author.fullName is not empty %}
<span class="cblue">{{- this_author.fullName -}}</span>
{%- if content.contributors is defined and content.contributors is not empty -%}
{{- ',' -}}
{%- endif -%}
{% endif %}
{% endif %}
{% else %}
{% if this_author.fullName is defined and this_author.fullName is not empty %}
<span class="cblue">{{- this_author.fullName -}}</span>
{%- if content.contributors is defined and content.contributors is not empty -%}
{{- ',' -}}
{%- endif -%}
{% endif %}
{% endif %}
{% endif %}
{%- if content.contributors is defined and content.contributors is not empty -%}
{%- for contributor in content.contributors -%}
{%- include "articles-blocks/logic/showContributor.html.twig" -%}
{%- if not loop.last -%}
{{- ',' -}}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
</div>