<header id="header">
<div class="apk-container-language-switcher">
{{ get_language_switcher_html(document, 'inline', 'code')|raw }}
</div>
<div class="apk-header">
<div class="apk-header-top">
<div class="uk-flex uk-flex-middle">
<a class="apk-logo uk-width-auto" href="/{{ app.request.locale }}" title="{{ "Logo"|trans }}">
<img src="/static/img/logos/logo-crb.svg">
</a>
<div class="header-menu uk-width-expand uk-flex uk-flex-center">
<nav uk-navbar>
<ul class="uk-navbar-nav uk-margin-remove-bottom uk-child-width-auto">
{% include "includes/main-nav.html.twig" %}
</ul>
</nav>
</div>
<div class="uk-child-width-auto" uk-grid>
<div class="apk-btn-plasma uk-margin-small-right">
<div id="plasma-status" class=" apk-btn-meteo">
<div class="text-btn">
<span class="reserve-de-plasma">{{"Prévision don plasma"|trans}}</span>
<span class="meteo-type">{{"Chargement"|trans}}</span>
</div>
</div>
</div>
<a href="{{ document.property('link-prendre-rdv') }}" class="uk-button uk-button-large uk-margin-small-top" style="padding: 0 20px;">
{{"Je prends rendez-vous"|trans}}
</a>
</div>
</div>
</div>
<div class="apk-header-bottom">
<div class="uk-flex-middle" uk-grid>
<div class="uk-width-1-6@m uk-text-right">
<a href="/">
<div class="service-header uk-text-center">
{{"Le Service du Sang"|trans}}
</div>
</a>
</div>
<div class="uk-width-5-6@m">
{% if document.getProperty("is-homepage") == false %}
<div uk-grid>
<div class="uk-width-expand">
{% set navStartNode = document.getProperty('mainNavStartNode') %}
{% set mainNavigation = pimcore_build_nav({
active: document,
root: navStartNode,
}) %}
<div class="apk-breadcrumbs">
<a href="/{{ app.request.locale }}">{{ 'Home'|trans }}</a>
{% if document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
{% if pimcore_render_nav(mainNavigation, 'breadcrumbs') != "" %}
> {{ pimcore_render_nav(mainNavigation, 'breadcrumbs') }}
{% else %}
> {{ document.title }}
{% endif %}
{% endif %}
</div>
</div>
<div class="uk-width-auto">
<div class="uk-flex apk-link-croix-rouge">
<div>
<p>{{"Voir les activités de la Croix-Rouge"|trans}}</p>
</div>
<div>
<a href="{{ document.property('link-donner-sang') }}" target="_blank">
{{"Je donne mon sang"|trans}}
</a>
</div>
</div>
</div>
</div>
{% else %}
<div uk-grid>
<div class="uk-width-expand">
{{"Home"|trans}}
</div>
<div class="uk-width-auto">
<div class="uk-flex apk-link-croix-rouge">
<div>
<p>{{"Voir les activités de la Croix-Rouge"|trans}}</p>
</div>
<div>
<a href="{{ document.property('link-donner-sang') }}" target="_blank">
{{"Je donne mon sang"|trans}}
</a>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div> <!-- fin div desktop -->
<div class="uk-background-muted apk-header-mobile" uk-sticky="end: !.uk-height-large;">
<div class="uk-position-z-index">
<div>
<div uk-grid>
<div class="uk-width-expand">
<a class="apk-logo uk-margin-top uk-padding-remove" href="/{{ app.request.locale }}" title="{{ "Logo"|trans }}">
<img class="uk-margin-small-right" src="/static/img/logos/logo-crb.svg">
</a>
</div>
<div class="uk-width-auto">
<a width="30" height="30" uk-toggle="target: #offcanvas-nav-primary"><img src="/static/img/pictos/menu-burger.svg" alt=""></a>
</div>
</div>
</div>
<div id="offcanvas-nav-primary" class="apk-menu-mobile" uk-offcanvas="overlay: true; flip: true">
<div class="uk-offcanvas-bar uk-flex uk-flex-column">
<a class="apk-logo uk-padding-remove" href="/{{ app.request.locale }}" title="{{ "Démo"|trans }}">
<img class="uk-margin-small-right" width="108px" height="49px" src="/static/img/logos//logo-crb.svg">
</a>
{% include "includes/main-nav-sidebar.html.twig" %}
</div>
</div>
</div>
</div>
</header>