{{ render_esi (controller("AyalineCollectiviteBundle:PageLayout:menu", {"type": 'menu_principal', "template": "AyalineEzMiniSitesCollectivitesBundle:parts:main_menu_header.html.twig", "withChild": true, 'locationId': location.id|default(null) } )) }}

{% if contentList|length %}
    <div id="bloc-focus">
            <div class="container">
                <h2 class="h2-focus-theme">
                    <a href="{{ path( 'ez_urlalias', {'locationId': rootLocationId} ) }}">
                <span>
                    {% if homeContent.getField("focus_intitule_accueil").value is defined and not ez_is_field_empty ( homeContent, "focus_intitule_accueil" ) %}
                        {{ ez_field_value( homeContent, "focus_intitule_accueil" ) }}
                    {% else %}
                        Alerte info
                    {% endif %}
                </span>
                    </a>
                </h2>

                <div id="slideFocus" class="flexslider">
                    <ul class="slides">
                        {% for focus in contentList %}
                            <li>
                                <a href="{{ path( 'ez_urlalias', {'locationId': focus.contentInfo.mainLocationId} ) }}">
                                    <span>{{ ez_field_value(focus, "title") }}</span>
                                </a>
                            </li>
                        {% endfor %}
                    </ul>
                    {% if(contentList|length > 1) %}
                        <div class="slide-count visible-md visible-lg">
                            <span class="current-slide"></span><span>/</span><span class="total-slides"></span>
                        </div>
                    {% endif %}
                </div>
            </div>
    </div>
{% endif %}
