themes/BootstrapTheme/templates/bundles/SyliusShopBundle/_header.html.twig line 73

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {% if is_granted('ROLE_USER') %}
  3.     {% set block = app_get_blocks('texte_header_client_connecte', sylius.channel.code ) %}
  4. {% else %}
  5.     {% set block = app_get_blocks('texte_header_client_non_connecte', sylius.channel.code )  %}
  6. {% endif %}
  7. {% set block_welcome_pack = app_get_blocks('welcome_pack', sylius.channel.code ) %}
  8. {% set texteperso_header = app_get_blocks('texteperso_header', sylius.channel.code ) %}
  9. <div class="header-top d-none d-md-block hidden-fixed">
  10.     <div class="container px-0 position-relative">
  11.         <div class="col text-lg-center text-left d-none d-lg-block">
  12.             <div class="swiper-container bann-header">
  13.                 <div class="swiper-wrapper">
  14.                 {% if block.content is defined %}
  15.                     <div class="swiper-slide">
  16.                         {{ block.content|raw }}
  17.                     </div>
  18.                 {% endif %}
  19.                 {% if block_welcome_pack and block_welcome_pack.content is defined %}
  20.                     <div class="swiper-slide">
  21.                         {{ block_welcome_pack.content|raw }}
  22.                     </div>
  23.                 {% endif %}
  24.                 {% if texteperso_header.content is defined %}
  25.                     <div class="swiper-slide">
  26.                         {{ texteperso_header.content|raw }}
  27.                     </div>
  28.                 {% endif %}
  29.                 </div>
  30.             </div>
  31.         </div>
  32.         <div class="d-flex justify-content-end align-items-center right-top-header">
  33.             <ul class="li-unstyled d-flex justify-content-end align-items-center top-header-nav">
  34.                 <li><a href="{{ path('sylius_shop_contact_request') }}" title="{{'app.header.write_us'|trans}}"><span>{{'app.header.write_us'|trans}}</span></a></li>
  35.                 {% if is_granted('ROLE_USER') %}
  36.                 <li>
  37.                     <a href="{{ path('sylius_shop_account_profile_update') }}" title="{{ 'sylius.ui.my_account'|trans }}"><span>{{ 'sylius.ui.my_account'|trans }}</span></a>
  38.                 </li>
  39.                 {% else %}
  40.                     <li>
  41.                         <a href="{{ path('sylius_shop_login') }}" title="{{ 'sylius.ui.sign_in'|trans }}"><span>{{ 'sylius.ui.sign_in'|trans }} </span></a>
  42.                     </li>
  43.                 {% endif %}
  44.             </ul>
  45.             <div class="head-locale-switcher d-flex align-items-center justify-content-end">
  46.                 {{ sylius_template_event('sylius.shop.layout.topbar') }}
  47.             </div>
  48.         </div>
  49.     </div>
  50. </div>
  51.  
  52. <div class="header-sticky  px-0 ">
  53.     <div id="header" class="px-xl-0 px-2">
  54.         <div class="container px-0">
  55.             <div class="row align-items-center">
  56.                 <div class="menu-mobile-bloc">
  57.                     <div class="all-product-nav">
  58.                         <span class="d-flex align-items-center">
  59.                             <svg class="burger-icon" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  60.                                 <g id="burger" stroke="none" stroke-width="0" fill="#fff" fill-rule="evenodd">
  61.                                     <g id="group-desktop" fill-rule="nonzero">
  62.                                         <path d="M5,7.625 L25,7.625" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round"></path>
  63.                                         <path d="M5,15.125 L25,15.125" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round"></path>
  64.                                         <path d="M5,22.625 L25,22.625" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round"></path>
  65.                                     </g>
  66.                                 </g>
  67.                             </svg> 
  68.                             <strong class="">{{'app.header.catalogue'|trans}}</strong>
  69.                         </span>
  70.                     </div>
  71.                 </div>
  72.                 {{ sylius_template_event('sylius.shop.layout.header.grid') }}
  73.             </div>
  74.         </div>
  75.     </div>
  76.     {% include '@SyliusShop/Layout/Header/_menu.html.twig' %}
  77. </div>