{% import 'Front/Default/macro.html.twig' as m %}

<article class="item">
    <div class="item-content text-center">
        {#% if partner.website is not empty %}
        <a href="{{ partner.website }}" target="_blank" title="Visitez le site de {{ partner.name }}">
        {% endif %#}
        <a data-fancybox data-type="ajax" href="{{ path('modal_partner', {partner:partner.id}) }}" title="Découvrir {{ partner.name }}" rel="nofollow">

        <figure class="img-block">
            {% if partner.logoPath is not empty %}
            <img alt="{{ partner.name }}" class="img-fluid" src="{{ vich_uploader_asset(partner, 'logoFile')|imagine_filter('150H') }}"/>
            {% else %}
            {{ m.svg({class: 'icon-logo', id:'logo--logo-grayscale'}) }}
            {% endif %}
        </figure>

        <header>
            <h3 class="item-title">
                {{ partner.name }}
            </h3>
        </header>
        </a>
    </div>
</article>