{% extends "Global/layout.html.twig" %} {% set pagetitle = organizer.name %} {% block title %}{{pagetitle}}{% endblock %} {% block content %}
{% if is_granted('ROLE_ORGANIZER') %} {% if app.user.organizer == organizer %} {% include "Global/message.html.twig" with { type: 'info', icon: 'fas fa-info-circle', message: ('' ~ 'Click here'|trans ~ ' ' ~ 'to edit your profile'|trans) } %} {% endif %} {% endif %}
{% if organizer.coverName %}
{% endif %}

{{ organizer.name }}

{% if organizer.hasSocialMedia %}
    {% if organizer.website %}
  • {% endif %} {% if organizer.email %}
  • {% endif %} {% if organizer.phone %}
  • {% endif %} {% if organizer.facebook %}
  • {% endif %} {% if organizer.twitter %}
  • {% endif %} {% if organizer.googleplus %} {% endif %} {% if organizer.instagram %} {% endif %} {% if organizer.linkedin %} {% endif %}
{% endif %} {% if organizer.description %}
{{ organizer.description|raw|nl2br }}
{% endif %}
{% set publishedeventscount = services.getEvents({"count": true, elapsed: "all", organizer: organizer.slug}).getQuery().getSingleScalarResult() %}
    {% if organizer.categories|length %} {% for category in organizer.categories %}
  • {{ category.name }}
  • {% endfor %} {% endif %} {% if organizer.country %}
  • {{ organizer.country.name }}
  • {% endif %}
  • {{ publishedeventscount }}
    {{ "Events"|trans }}
  • {{ organizer.followedby|length }}
    {{ "Followers"|trans }}
  • {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %} {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} {% if organizer.isFollowedBy(app.user) %} {% else %} {% endif %} {% else %} {{ "Follow"|trans }} {% endif %} {% endif %}
{% set onsaleeventscount = services.getEvents({"count": true, elapsed: false, organizer: organizer.slug}).getQuery().getSingleScalarResult() %} {% set pasteventscount = services.getEvents({"count": true, elapsed: true, organizer: organizer.slug}).getQuery().getSingleScalarResult() %}
{% if onsaleeventscount > 0 %} {% for event in services.getEvents({elapsed: false, organizer: organizer.slug, limit: 10}).getQuery().getResult() %} {% include "Global/event-card.html.twig" with {event: event} %} {% endfor %} {% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No events on sale for now'|trans) } %} {% endif %} {% if onsaleeventscount > 10 %} {{ "See all events on sale"|trans }} {% endif %}
{% if pasteventscount > 0 %} {% for event in services.getEvents({elapsed: true, organizer: organizer.slug, limit: 10}).getQuery().getResult() %} {% include "Global/event-card.html.twig" with {event: event} %} {% endfor %} {% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No past events found'|trans) } %} {% endif %}
{% if organizer.showvenuesmap and google_maps_api_key != "" %} {% set venuescount = services.getVenues({"count": true, organizer: organizer.slug}).getQuery().getSingleScalarResult() %} {% if venuescount %} {% set venues = [] %} {% for venue in services.getVenues({organizer: organizer.slug}).getQuery().getResult() %} {% set venues = venues|merge([{"name": venue.name, "address":(venue.name ~ ": " ~venue.stringifyAddress), "lat": venue.lat, "lng": venue.lng, "link": (path('venue', { slug : venue.slug })), "image": (venue.images|length ? (asset(venue.images[0].getImagePath)): (venue.getImagePlaceholder) ) }]) %} {% endfor %}

{{ "Venues"|trans }}

{% endif %} {% endif %} {% if organizer.youtubeurl %}

{{ "Video"|trans }}

{% endif %} {% if organizer.showfollowers and organizer.followedby|length %}

{{ "Followers"|trans }}

{% for user in organizer.followedby %} {% include "Global/user-avatar.html.twig" with { user: user, showusernametooltip: true } %} {% endfor %}
{% endif %} {% set reviewscount = services.getReviews({"count": true, "organizer": organizer.slug}).getQuery().getSingleScalarResult() %} {% if organizer.showreviews and reviewscount %}

{{ "Reviews"|trans }}

{% for review in services.getReviews({"organizer": organizer.slug, "limit": 8}).getQuery().getResult() %}
{% include "Global/user-review.html.twig" with { review : review, showuser: true, showevent: true } %}
{% endfor %}
{% endif %}
{% endblock %} {% block javascripts %} {% if google_maps_api_key != "" %} {{ encore_entry_script_tags('organizerprofile') }} {% include "Global/organizer-info-box.html.twig" %} {% endif %} {% endblock %}