templates/articles-blocks/contributors.html.twig line 1

Open in your IDE?
  1. <div class="contributor-container">
  2.     {% if author is defined and author is not empty %}
  3.         {% set this_author = sulu_resolve_contact(author) %}
  4.         {% if this_author.visibleAnnuaire is defined and this_author.visibleAnnuaire is not empty %}
  5.             {% if this_author.visibleAnnuaire == true %}
  6.                 {% if this_author.fullName is defined and this_author.fullName is not empty %}
  7.                     <a href="/user/{{ author }}" class="cblue">
  8.                         {{- this_author.fullName -}}
  9.                     </a>
  10.                     {%- if content.contributors is defined and content.contributors is not empty -%}
  11.                         {{- ',' -}}
  12.                     {%- endif -%}
  13.                 {% endif %}
  14.             {% else %}
  15.                 {% if this_author.fullName is defined and this_author.fullName is not empty %}
  16.                     <span class="cblue">{{- this_author.fullName -}}</span>
  17.                     {%- if content.contributors is defined and content.contributors is not empty -%}
  18.                         {{- ',' -}}
  19.                     {%- endif -%}
  20.                 {% endif %}
  21.             {% endif %}
  22.         {% else %}
  23.             {% if this_author.fullName is defined and this_author.fullName is not empty %}
  24.                 <span class="cblue">{{- this_author.fullName -}}</span>
  25.                 {%- if content.contributors is defined and content.contributors is not empty -%}
  26.                     {{- ',' -}}
  27.                 {%- endif -%}
  28.             {% endif %}
  29.         {% endif %}
  30.     {% endif %}
  31.     {%- if content.contributors is defined and content.contributors is not empty -%}
  32.         {%- for contributor in content.contributors -%}
  33.             {%- include "articles-blocks/logic/showContributor.html.twig" -%}
  34.             {%- if not loop.last -%}
  35.                 {{- ',' -}}
  36.             {%- endif -%}
  37.         {%- endfor -%}
  38.     {%- endif -%}
  39. </div>