{% if contentList %}
    <ul class="rs-list">
        {% for content in contentList %}
            {% if get_class_identifier(content.contentInfo.mainLocationId) == "folder" %}
                <li class="reseau-sociau">
                    {{ render_esi (controller("AyalineEzMiniSitesCollectivitesBundle:Home:getReseauSociauxFromFolder", {'contentParentId':content.contentInfo.mainLocationId,"template": "AyalineEzMiniSitesCollectivitesBundle:parts:social_networks_folder_footer.html.twig"})) }}
                    <p class="reseau-title">{{ ez_content_name(content) }}</p>
                </li>
            {% else %}
                <li class="reseau-sociau">
                    <a href="{{ content.getFieldValue('url').link }}" target="_blank"
                       title="{{ content.getFieldValue('titre') }} (Nouvelle fenêtre)" rel="noopener">
                        {% if content.fields.image is defined and not ez_is_field_empty( content, "image" ) %}
                            <figure>
                                <img src="{{ content.getFieldValue('image').uri|replace({'http':'','https':''}) }}" alt="{{ content.getFieldValue('titre') }}">
                            </figure>
                        {% endif %}
                    </a>
                    <p class="reseau-title">{{ ez_content_name(content) }}</p>
                </li>
            {% endif %}
        {% endfor %}
    </ul>
{% endif %}