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

Open in your IDE?
  1. {% sw_extends '@CogiThemeTulip/storefront/layout/header/top-bar.html.twig' %}
  2. {% block layout_header_top_bar %}
  3.     <div class="top-bar row justify-content-sm-between justify-content-center">
  4.         <nav class="top-bar-nav col-auto">
  5.             {% if config('CogiCustomObstDe.config.customTopBarText1') %}
  6.                 {{ config('CogiCustomObstDe.config.customTopBarText1')|raw }}
  7.             {% else %}
  8.                 {% block layout_header_top_bar_language %}
  9.                     {{ parent() }}
  10.                 {% endblock %}
  11.                 {% block layout_header_top_bar_currency %}
  12.                     {{ parent() }}
  13.                 {% endblock %}
  14.                 {% block layout_header_top_bar_service %}
  15.                     {{ parent() }}
  16.                 {% endblock %}
  17.             {% endif %}
  18.         </nav>
  19.         {% if shopware.config.CogiCustomObstDe.config.customTopBarText2 %}
  20.             <nav class="top-bar-nav col-auto d-none d-sm-flex">
  21.                 {{ config('CogiCustomObstDe.config.customTopBarText2')|raw }}
  22.             </nav>
  23.         {% endif %}
  24.         <nav class="top-bar-nav top-bar-nav-right col-auto d-none d-sm-flex">
  25.             {% if config('CogiCustomObstDe.config.customTopBarText3') %}
  26.                 {{ config('CogiCustomObstDe.config.customTopBarText3')|raw }}
  27.             {% else %}
  28.                 {% if config('CogiThemeTulip.config.headerPhone') %}
  29.                     <div class="top-bar-nav-item top-bar-phone">
  30.                         <a href="phone:{{ config('CogiThemeTulip.config.headerPhone') }}">
  31.                             {% sw_icon 'headset' style {
  32.                                 'size': 'xs'
  33.                             } %} {{ config('CogiThemeTulip.config.headerPhone') }}
  34.                         </a>
  35.                     </div>
  36.                 {% endif %}
  37.                 {% if config('CogiThemeTulip.config.headerContact') %}
  38.                     <div class="top-bar-nav-item top-bar-contact">
  39.                         {% set href = config('CogiThemeTulip.config.headerContact') %}
  40.                         <a href="{% if '@' in href %}mailto:{% endif %}{{ href }}">
  41.                             {% sw_icon 'envelope' style {
  42.                                 'size': 'xs'
  43.                             } %} {{ "cogi.theme.tulip.contact"|trans|sw_sanitize }}
  44.                         </a>
  45.                     </div>
  46.                 {% endif %}
  47.             {% endif %}
  48.         </nav>
  49.     </div>
  50. {% endblock %}