custom/plugins/OttMoebelfirstTheme/src/Resources/views/storefront/layout/header/top-bar.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  2. {% block layout_header_top_bar %}
  3.     {# Regular top bar #}
  4.     <div class="top-bar">
  5.         <nav class="top-bar-nav">
  6.             <div class="ott-topbar-wrapper">
  7.                 <div class="ott-topbar-scroll">
  8.                     {{ "ott.topbar.currentInformation"|trans }}
  9.                 </div>
  10.                 <div class="ott-topbar-scroll is-echo">
  11.                     {{ "ott.topbar.currentInformation"|trans }}
  12.                 </div>
  13.             </div>
  14.         </nav>
  15.     </div>
  16.     {# Merchant top bar #}
  17.     {% set merchant = page.extensions.ottMerchantShopsData.merchant %}
  18.     <div class="top-bar merchant-top-bar">
  19.         <nav class="top-bar-nav">
  20.             <div class="ott-topbar-wrapper">
  21.                 <div class="ott-topbar-element-wrapper-inner is-stock d-none d-lg-flex">
  22.                     <span class="text-primary">
  23.                         {{ 'ott.topbar.onStockLabel'|trans|striptags }}
  24.                     </span>
  25.                 </div>
  26.                 <div class="ott-topbar-element-wrapper-inner is-second-text justify-content-center">
  27.                     {% sw_icon 'avatar-solid' style {
  28.                         'namespace': 'OttMoebelfirstTheme',
  29.                         'pack': 'moebelfirst',
  30.                     } %}
  31.                     <div class="ott-topbar-element-text">
  32.                         {{ 'ott.topbar.producedLabel'|trans|striptags }}
  33.                     </div>
  34.                 </div>
  35.                 <div class="ott-topbar-element-wrapper-inner is-phone d-none d-lg-flex">
  36.                     <svg xmlns="http://www.w3.org/2000/svg" width="12.385" height="12.406" viewBox="0 0 12.385 12.406">
  37.                         <path id="Icon_feather-phone-call" data-name="Icon feather-phone-call" d="M10.024,3.62a2.65,2.65,0,0,1,2.093,2.093M10.024,1.5a4.769,4.769,0,0,1,4.213,4.207m-.53,4.229v1.59a1.06,1.06,0,0,1-1.155,1.06,10.487,10.487,0,0,1-4.573-1.627A10.333,10.333,0,0,1,4.8,7.779,10.487,10.487,0,0,1,3.172,3.185,1.06,1.06,0,0,1,4.227,2.03h1.59a1.06,1.06,0,0,1,1.06.911A6.8,6.8,0,0,0,7.247,4.43a1.06,1.06,0,0,1-.238,1.118l-.673.673A8.479,8.479,0,0,0,9.515,9.4l.673-.673a1.06,1.06,0,0,1,1.118-.238A6.8,6.8,0,0,0,12.8,8.86,1.06,1.06,0,0,1,13.707,9.936Z" transform="translate(-2.542 -0.81)" fill="none" stroke="#c39052" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.25"/>
  38.                     </svg>
  39.                     <div class="ott-topbar-element-text">
  40.                         {% if merchant %}
  41.                             {{ merchant.phone }}
  42.                         {% else %}
  43.                             {{ 'ott.topbar.phoneNumber'|trans|striptags }}
  44.                         {% endif %}
  45.                     </div>
  46.                 </div>
  47.             </div>
  48.         </nav>
  49.     </div>
  50. {% endblock %}