<div class="header-top">

    <div class="container">

        <div class="header-top-in">

            <div class="bloc-left">
                {% if configurationGenerale is defined and configurationGenerale.fields.logo_principal is defined and not ez_is_field_empty(configurationGenerale, "logo_principal") %}
                    <div class="main-logo">
                        <a class="logo" href="/">
                            <img src="{{ configurationGenerale.getFieldValue('logo_principal').uri }}" alt="logo-e-interco">
                        </a>
                    </div>
                {% endif %}
                {% if configurationGenerale.fields.titre_site_haut_page is defined and not ez_is_field_empty(configurationGenerale, "titre_site_haut_page") %}
                    <div class="subtitle-header">
                        <p>{{ configurationGenerale.getFieldValue("titre_site_haut_page")|raw }}</p>
                    </div>
                {% endif %}
            </div>

            <div class="bloc-right">
                <ul class="bloc-right-top">

                    {% if configurationGenerale.fields.menu_principal is defined and not ez_is_field_empty(configurationGenerale, "menu_principal") %}
                        {{ render (controller("AyalineCollectiviteBundle:Home:getBlocHome",{'type': 'menu_principal', 'template': 'AyalineCollectiviteBundle:embed:link_menu.html.twig','contentParentId':'configuration_generale_minisite'})) }}
                    {% endif %}

                    <li class="recherche">
                        <form class="form-search yui3-skin-sam ez-autocomplete" action="/content/search">
                            <div class="yui3-skin-sam ez-autocomplete">
                                <input  type="text" placeholder="Rechercher" name="SearchText" id="header-ezfind-autocomplete">
                                <input class="loupe" type="submit" value="rechercher" name="SearchButton">
                            </div>
                        </form>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>

{% block header_bottom %}
    {{ render (controller("AyalineCollectiviteBundle:Home:getBlocHome", {'type': 'focus_racine','template': 'AyalineEzMiniSitesCollectivitesBundle:home:header_bottom.html.twig'})) }}
{% endblock %}