templates/articles-blocks/logic/showContributor.html.twig line 1

Open in your IDE?
  1. {%- if contributor.visibleAnnuaire is defined and contributor.visibleAnnuaire is not empty -%}
  2.     {%- if contributor.visibleAnnuaire == true -%}
  3.         {% set userId = contributor.id %}
  4.         {% set user = get_user_by_contact_id(userId) %}
  5.         {%- if user is not same as(false) and user is not empty -%}
  6.             <a href="/user/{{ contributor.id }}" class="cblue">
  7.                 {{- contributor.fullname -}}
  8.             </a>
  9.         {%- else -%}
  10.             <span class="cblue">
  11.                 {{- contributor.fullname -}}
  12.             </span>
  13.         {%- endif -%}
  14.     {%- endif -%}
  15. {%- else -%}
  16.     <span class="cblue">
  17.         {{- contributor.fullname -}}
  18.     </span>
  19. {%- endif -%}