{% if not references is defined %}
    {% set references = getReferences({'query': app.request.get('s'), 'tags': app.request.get('tags')}, app.request) %}
{% endif %}
<div class="references-content">
    {% if references|length > 0%}
        {% for reference in references %}
            {% set referenceLang = getLang(reference.getReferenceLangs(), app.request) %}
            {% set src = asset('img/references/'~reference.logoImage) %}
            <a class="reference-item" data-id="{{ reference.id }}">
                <div class="reference-item-img{% if reference.isImageFull %} full{% endif %}">
                    <img src="{{ src }}" alt="{{ referenceLang.title }}" title={{ referenceLang.title }}>
                    {% if reference.countryCode %}
                        <img src="{{ asset('img/icon/flag-'~reference.countryCode~'.svg') }}" class="country">
                    {% endif %}
                </div>
                <div class="reference-item-title">{{ referenceLang.title }}</div>
            </a>
        {% endfor %}
    {% else %}
        <span class="reference-not-found not-found">{{"reference_not_found"|trans|capitalize}}</span>
    {% endif %}
    <a href="{{path('references')}}" class="black-button standart-button arrow-anim">{{"all_corporate_references"|trans|title}}</a>
</div>