templates/includes/header.html.twig line 1

Open in your IDE?
  1. <header id="header">
  2.     <div class="apk-container-language-switcher">
  3.         {{ get_language_switcher_html(document, 'inline', 'code')|raw }}
  4.     </div>
  5.     <div class="apk-header">
  6.         <div class="apk-header-top">
  7.             <div class="uk-flex uk-flex-middle">
  8.                 <a class="apk-logo uk-width-auto" href="/{{ app.request.locale }}" title="{{ "Logo"|trans }}">
  9.                     <img src="/static/img/logos/logo-crb.svg">
  10.                 </a>
  11.                 <div class="header-menu uk-width-expand uk-flex uk-flex-center">
  12.                     <nav uk-navbar>
  13.                         <ul class="uk-navbar-nav uk-margin-remove-bottom uk-child-width-auto">
  14.                             {% include "includes/main-nav.html.twig" %}  
  15.                         </ul>
  16.                     </nav>
  17.                 </div>
  18.                 <div class="uk-child-width-auto" uk-grid>
  19.                     <div class="apk-btn-plasma uk-margin-small-right">
  20.                         <div id="plasma-status" class=" apk-btn-meteo">
  21.                             <div class="text-btn">
  22.                                 <span class="reserve-de-plasma">{{"Prévision don plasma"|trans}}</span>
  23.                                 <span class="meteo-type">{{"Chargement"|trans}}</span>
  24.                             </div>
  25.                         </div>
  26.                     </div>
  27.                     <a href="{{ document.property('link-prendre-rdv') }}" class="uk-button uk-button-large uk-margin-small-top" style="padding: 0 20px;">
  28.                         {{"Je prends rendez-vous"|trans}}
  29.                     </a>
  30.                 </div>
  31.    
  32.             </div>
  33.         </div>
  34.         <div class="apk-header-bottom">
  35.             <div class="uk-flex-middle" uk-grid>
  36.                 <div class="uk-width-1-6@m uk-text-right">
  37.                     <a href="/">
  38.                         <div class="service-header uk-text-center">
  39.                             {{"Le Service du Sang"|trans}}
  40.                         </div>
  41.                     </a>
  42.                 </div>
  43.                 <div class="uk-width-5-6@m">
  44.                     {% if document.getProperty("is-homepage") == false %}
  45.                     <div uk-grid>
  46.                         <div class="uk-width-expand">
  47.                             {% set navStartNode = document.getProperty('mainNavStartNode') %}
  48.                             {% set mainNavigation = pimcore_build_nav({
  49.                                 active: document,
  50.                                 root: navStartNode,
  51.                             }) %}
  52.                             <div class="apk-breadcrumbs">
  53.                                 <a href="/{{ app.request.locale }}">{{ 'Home'|trans }}</a>
  54.                                 {% if document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  55.                                     {% if pimcore_render_nav(mainNavigation, 'breadcrumbs') != "" %}
  56.                                         > {{ pimcore_render_nav(mainNavigation, 'breadcrumbs') }}
  57.                                     {% else %}
  58.                                         > {{ document.title }}
  59.                                     {% endif %}
  60.                                 {% endif %}
  61.                             </div>
  62.                         </div>
  63.                         <div class="uk-width-auto">
  64.                             <div class="uk-flex apk-link-croix-rouge">
  65.                                 <div>
  66.                                     <p>{{"Voir les activités de la Croix-Rouge"|trans}}</p>
  67.                                 </div>
  68.                                 <div>
  69.                                     <a href="{{ document.property('link-donner-sang') }}" target="_blank">
  70.                                         {{"Je donne mon sang"|trans}}
  71.                                     </a>
  72.                                 </div>
  73.                             </div>
  74.                         </div>
  75.                     </div>
  76.                     {% else %}
  77.                         <div uk-grid>
  78.                             <div class="uk-width-expand">
  79.                                 {{"Home"|trans}}
  80.                             </div>
  81.                             <div class="uk-width-auto">
  82.                                 <div class="uk-flex apk-link-croix-rouge">
  83.                                     <div>
  84.                                         <p>{{"Voir les activités de la Croix-Rouge"|trans}}</p>
  85.                                     </div>
  86.                                     <div>
  87.                                         <a href="{{ document.property('link-donner-sang') }}" target="_blank">
  88.                                             {{"Je donne mon sang"|trans}}
  89.                                         </a>
  90.                                     </div>
  91.                                 </div>
  92.                             </div>
  93.                         </div>
  94.                     {% endif %}
  95.                 </div>
  96.             </div>
  97.         </div>
  98.     </div> <!-- fin div desktop -->
  99.     <div class="uk-background-muted apk-header-mobile"  uk-sticky="end: !.uk-height-large;">
  100.         <div class="uk-position-z-index">
  101.             <div>
  102.                 <div uk-grid>
  103.                     <div class="uk-width-expand">
  104.                         <a class="apk-logo uk-margin-top uk-padding-remove" href="/{{ app.request.locale }}" title="{{ "Logo"|trans }}">
  105.                             <img class="uk-margin-small-right" src="/static/img/logos/logo-crb.svg">
  106.                         </a>
  107.                     </div>
  108.                     <div class="uk-width-auto">
  109.                         <a width="30" height="30" uk-toggle="target: #offcanvas-nav-primary"><img src="/static/img/pictos/menu-burger.svg" alt=""></a>
  110.                     </div>
  111.                 </div>
  112.             </div>
  113.             <div id="offcanvas-nav-primary" class="apk-menu-mobile" uk-offcanvas="overlay: true; flip: true">
  114.             <div class="uk-offcanvas-bar uk-flex uk-flex-column">
  115.                 <a class="apk-logo uk-padding-remove" href="/{{ app.request.locale }}" title="{{ "Démo"|trans }}">
  116.                     <img class="uk-margin-small-right" width="108px" height="49px" src="/static/img/logos//logo-crb.svg">
  117.                 </a>
  118.                 {% include "includes/main-nav-sidebar.html.twig" %}
  119.                 </div>
  120.             </div>
  121.         </div>
  122.     </div>
  123. </header>