{% set runtimeConfig = {"thumbnail": {"size": [500, 250] }} %} {% if eventDate is defined %} {% set displayedEventDate = eventDate %} {% else %} {% set displayedEventDate = event.getFirstOnSaleEventDate %} {% endif %} {% if customLink is defined %} {% set link = customLink %} {% else %} {% set link = path('event', { slug : event.slug }) %} {% endif %}
{% if (not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE')) and hideFavoriteButton is not defined %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} {% if event.isAddedToFavoritesBy(app.user) %} {% else %} {% endif %} {% else %} {% endif %}
{% endif %}
{{ event.name }}
{% if displayedEventDate %} {% if displayedEventDate.venue %} {{ displayedEventDate.venue.name }}: {{ displayedEventDate.venue.city ~ ', ' ~ displayedEventDate.venue.country.name }} {% else %} {{ "Online"|trans }} {% endif %} {% endif %}  
{% if displayedEventDate %} {% if displayedEventDate.startdate %} {{ displayedEventDate.startdate|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }} {% endif %} {% endif %}  
{% if hidePrice is not defined %}
{% if event.isFree %} {{ "Free"|trans }} {% else %} {% if displayedEventDate %} {{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ event.getCheapestTicket.getSalePrice }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }} {% endif %} {% endif %}
{% endif %} {% if orderReference is defined %} {% endif %}
{% if ticketName is defined %} {{ ticketName }}
{% endif %} {% if ticketsCount is defined %} {{ ticketsCount }} {{ ticketsCount > 1 ? "tickets"|trans : "ticket"|trans }} {% else %} {{ event.category.name }} {% endif %}
{% if displayedEventDate %} {% if displayedEventDate.startdate %}
{{ displayedEventDate.startdate|localizeddate('none', 'none', app.request.locale, null, "MMM")|upper }}
{{ displayedEventDate.startdate|localizeddate('none', 'none', app.request.locale, null, "d") }}
{% endif %} {% endif %}