{% if content.contentInfo.mainLocationId %}
    {% set location = load_location_by_id(content.contentInfo.mainLocationId) %}
    {% if not location.hidden %}
        {{ ez_render_field( content, "image", { 'template': 'AyalineEzAgendaCollectivitesBundle:fields:event_ezimage.html.twig', 'parameters': { 'alias': alias is defined ? alias: '', 'linkHref': linkHref is defined ? linkHref: '' }, 'attr': { 'class': class } } ) }}
    {% endif %}
{% endif %}