custom/plugins/TomRocketsTheme/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.     <div class="top-bar d-none d-lg-block">
  4.         <nav class="top-bar-nav">
  5.             {% block top_bar_advantages %}
  6.                 <div class="top-bar-advantages">
  7.                     <div class="percent advantage-item">
  8.                         {% sw_icon "percent" style{
  9.                             "pack":"top-bar",
  10.                             "namespace": "TomRockets"
  11.                         } %}
  12.                         {{ "tomRocket.header.top-bar.percent"|trans }}
  13.                     </div>
  14.                     <div class="percent advantage-item">
  15.                         {% sw_icon "eye" style{
  16.                             "pack":"top-bar",
  17.                             "namespace": "TomRockets"
  18.                         } %}
  19.                         {{ "tomRocket.header.top-bar.eye"|trans }}
  20.                     </div>
  21.                     <div class="percent advantage-item">
  22.                         {% sw_icon "wallet" style{
  23.                             "pack":"top-bar",
  24.                             "namespace": "TomRockets"
  25.                         } %}
  26.                         {{ "tomRocket.header.top-bar.wallet"|trans }}
  27.                     </div>
  28.                     <div class="percent advantage-item">
  29.                         {% sw_icon "rocket" style{
  30.                             "pack":"top-bar",
  31.                             "namespace": "TomRockets"
  32.                         } %}
  33.                         {{ "tomRocket.header.top-bar.rocket"|trans }}
  34.                     </div>
  35.                 </div>
  36.             {% endblock %}
  37.             {% block layout_header_top_bar_language %}
  38.                 {% block layout_top_bar_social %}
  39.                     {% if page.header.navigation.active.customFields.twigel_topbar_social_facebook %}
  40.                         <div class="social-item">
  41.                             <a href="{{ page.header.navigation.active.customFields.twigel_topbar_social_facebook }}">
  42.                                 {% sw_icon "facebook" style{
  43.                                     "pack":"top-bar",
  44.                                     "namespace": "TomRockets"
  45.                                 } %}
  46.                             </a>
  47.                         </div>
  48.                     {% else %}
  49.                         <div class="social-item">
  50.                             <a href="#">
  51.                                 {% sw_icon "facebook" style{
  52.                                     "pack":"top-bar",
  53.                                     "namespace": "TomRockets"
  54.                                 } %}
  55.                             </a>
  56.                         </div>
  57.                     {% endif %}
  58.                     {% if page.header.navigation.active.customFields.twigel_topbar_social_instagram %}
  59.                         <div class="social-item">
  60.                             <a href="{{ page.header.navigation.active.customFields.twigel_topbar_social_instagram }}">
  61.                                 {% sw_icon "instagram" style{
  62.                                     "pack":"top-bar",
  63.                                     "namespace": "TomRockets"
  64.                                 } %}
  65.                             </a>
  66.                         </div>
  67.                     {% else %}
  68.                         <div class="social-item">
  69.                             <a href="#">
  70.                                 {% sw_icon "instagram" style{
  71.                                     "pack":"top-bar",
  72.                                     "namespace": "TomRockets"
  73.                                 } %}
  74.                             </a>
  75.                         </div>
  76.                     {% endif %}
  77.                     {% if page.header.navigation.active.customFields.twigel_topbar_social_pinterest %}
  78.                         <div class="social-item">
  79.                             <a href="{{ page.header.navigation.active.customFields.twigel_topbar_social_pinterest }}">
  80.                                 {% sw_icon "pinterest" style{
  81.                                     "pack":"top-bar",
  82.                                     "namespace": "TomRockets"
  83.                                 } %}
  84.                             </a>
  85.                         </div>
  86.                     {% else %}
  87.                         <div class="social-item">
  88.                             <a href="#">
  89.                                 {% sw_icon "pinterest" style{
  90.                                     "pack":"top-bar",
  91.                                     "namespace": "TomRockets"
  92.                                 } %}
  93.                             </a>
  94.                         </div>
  95.                     {% endif %}
  96.                     <div class="bonus-item">
  97.                         {% sw_icon "bonus" style{
  98.                             "pack":"top-bar",
  99.                             "namespace": "TomRockets"
  100.                         } %}
  101.                         {% if page.customerBonus %}
  102.                             <span class="bonus-item__count">{{ page.customerBonus }}</span>
  103.                         {% else %}
  104.                             <span class="bonus-item__count">0</span>
  105.                         {% endif %}
  106.                     </div>
  107.                 {% endblock %}
  108.                 {% sw_include '@Storefront/storefront/layout/header/actions/language-widget.html.twig' %}
  109.             {% endblock %}
  110.             {% block layout_header_top_bar_currency %}
  111.                 {% sw_include '@Storefront/storefront/layout/header/actions/currency-widget.html.twig' %}
  112.             {% endblock %}
  113.             {# @deprecated tag:v6.5.0 - will be removed, has been moved to footer #}
  114.             {% block layout_header_top_bar_service %}{% endblock %}
  115.         </nav>
  116.     </div>
  117. {% endblock %}