custom/plugins/DecomTheme/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-block" style="background: {{ theme_config('sw-background-topbar')|default('#202020') }}; color: {{ theme_config('sw-color-topbar')|default('#fff') }}">
  4.         <div class="container">
  5.             <div class="container">
  6.                 <nav class="top-bar-nav">
  7.                     {% block layout_header_top_bar_content %}
  8.                         <ul class="decomtheme-small-content" style="list-style: none;">
  9.                             {% if theme_config('sw-top-bar-content-small-text') %}
  10.                                 <li>
  11.                                     {{ theme_config('sw-top-bar-content-small-text') }}
  12.                                     {% if theme_config('sw-top-bar-content-small-linkText') %}
  13.                                         <a href="{% if theme_config('sw-top-bar-content-small-link') %}{{ theme_config('sw-top-bar-content-small-link') }}{% else %}#{% endif %}">
  14.                                             {{ theme_config('sw-top-bar-content-small-linkText') }}
  15.                                         </a>
  16.                                     {% endif %}
  17.                                 </li>
  18.                             {% endif %}
  19.                         </ul>
  20.                         <ul class="decomtheme-content" style="list-style: none;">
  21.                             {% block layout_header_top_bar_content_line1 %}
  22.                                 {% if theme_config('sw-top-bar-content-line1-text') %}
  23.                                     <li>
  24.                                         {{ theme_config('sw-top-bar-content-line1-text') }}
  25.                                         {% if theme_config('sw-top-bar-content-line1-linkText') %}
  26.                                             <a href="{% if theme_config('sw-top-bar-content-line1-link') %}{{ theme_config('sw-top-bar-content-line1-link') }}{% else %}#{% endif %}">
  27.                                                 {{ theme_config('sw-top-bar-content-line1-linkText') }}
  28.                                             </a>
  29.                                         {% endif %}
  30.                                     </li>
  31.                                 {% endif %}
  32.                             {% endblock %}
  33.                             {% block layout_header_top_bar_content_line2 %}
  34.                                 {% if theme_config('sw-top-bar-content-line2-text') %}
  35.                                     <li>
  36.                                         {{ theme_config('sw-top-bar-content-line2-text') }}
  37.                                         {% if theme_config('sw-top-bar-content-line2-linkText') %}
  38.                                             <a href="{% if theme_config('sw-top-bar-content-line2-link') %}{{ theme_config('sw-top-bar-content-line2-link') }}{% else %}#{% endif %}">
  39.                                                 {{ theme_config('sw-top-bar-content-line2-linkText') }}
  40.                                             </a>
  41.                                         {% endif %}
  42.                                     </li>
  43.                                 {% endif %}
  44.                             {% endblock %}
  45.                             {% block layout_header_top_bar_content_line3 %}
  46.                                 {% if theme_config('sw-top-bar-content-line3-text') %}
  47.                                     <li>
  48.                                         {{ theme_config('sw-top-bar-content-line3-text') }}
  49.                                         {% if theme_config('sw-top-bar-content-line3-linkText') %}
  50.                                             <a href="{% if theme_config('sw-top-bar-content-line3-link') %}{{ theme_config('sw-top-bar-content-line3-link') }}{% else %}#{% endif %}">
  51.                                                 {{ theme_config('sw-top-bar-content-line3-linkText') }}
  52.                                             </a>
  53.                                         {% endif %}
  54.                                     </li>
  55.                                 {% endif %}
  56.                             {% endblock %}
  57.                         </ul>
  58.                     {% endblock %}
  59.                     {% block layout_header_top_bar_language %}
  60.                         {% sw_include '@Storefront/storefront/layout/header/actions/language-widget.html.twig' %}
  61.                     {% endblock %}
  62.                     {% block layout_header_top_bar_currency %}
  63.                         {% sw_include '@Storefront/storefront/layout/header/actions/currency-widget.html.twig' %}
  64.                     {% endblock %}
  65.                     {% block layout_header_top_bar_service %}
  66.                         {% sw_include '@Storefront/storefront/layout/header/actions/service-menu-widget.html.twig' %}
  67.                     {% endblock %}
  68.                     {% block layout_header_socials %}
  69.                         <ul class="decomtheme-socials" style="list-style: none;">
  70.                             <li class="topbar--blog">
  71.                                 {{ "topbar.blog"|trans|sw_sanitize }}
  72.                             </li>
  73.                             <li class="language-switch" data-language-switch>
  74.                                 <a class="btn unset-select" style="padding-top: 0px;padding-right:0px" href="javascript:void(0)"><img src="{{ asset('bundles/decomtheme/assets/images/deutsch.jpg') }}"/></a>
  75.                                 <a class="btn english-select" style="padding-top: 0px;padding-right:0px" href="javascript:void(0)"><img src="{{ asset('bundles/decomtheme/assets/images/englisch.jpg') }}"/></a>
  76.                                 <a class="btn france-select" style="padding-top: 0px;padding-right:0px" href="javascript:void(0)"><img src="{{ asset('bundles/decomtheme/assets/images/france.jpg') }}"/></a>
  77.                                 <div id="google_translate_element"></div>
  78.                                 <script>
  79.                                     function googleTranslateElementInit() {
  80.                                         new google.translate.TranslateElement({
  81.                                             pageLanguage: 'de',
  82.                                             includedLanguages: "en,fr",
  83.                                             layout: google.translate.TranslateElement.InlineLayout.SIMPLE
  84.                                         }, 'google_translate_element');
  85.                                     }
  86.                                 </script>
  87.                                 <script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script>
  88.                                 {% block layout_header_socials_facebook %}
  89.                                     {% if theme_config('sw-socials-facebook-link') %}
  90.                                         <li>
  91.                                             <a href="{{ theme_config('sw-socials-facebook-link') }}" target="_blank" rel="nofollow">
  92.                                                 {% sw_icon 'facebook-icon' style {'namespace': 'DecomTheme' } %}
  93.                                             </a>
  94.                                         </li>
  95.                                     {% endif %}
  96.                                 {% endblock %}
  97.                                 {% block layout_header_socials_instagram %}
  98.                                     {% if theme_config('sw-socials-instagram-link') %}
  99.                                         <li>
  100.                                             <a href="{{ theme_config('sw-socials-instagram-link') }}" target="_blank" rel="nofollow">
  101.                                                 {% sw_icon 'instagram-icon' style {'namespace': 'DecomTheme' } %}
  102.                                             </a>
  103.                                         </li>
  104.                                     {% endif %}
  105.                                 {% endblock %}
  106.                                 {% block layout_header_socials_youtube %}
  107.                                     {% if theme_config('sw-socials-youtube-link') %}
  108.                                         <li>
  109.                                             <a href="{{ theme_config('sw-socials-youtube-link') }}" target="_blank" rel="nofollow">
  110.                                                 {% sw_icon 'youtube-icon' style {'namespace': 'DecomTheme' } %}
  111.                                             </a>
  112.                                         </li>
  113.                                     {% endif %}
  114.                                 {% endblock %}
  115.                             </li>
  116.                         </ul>
  117.                     {% endblock %}
  118.                 </nav>
  119.             </div>
  120.         </div>
  121.     </div>
  122. {% endblock %}