custom/plugins/TcinnThemeWareLiving/src/Resources/views/storefront/layout/header/search.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/search.html.twig' %}
  2. {# ThemeWare® HC-Architecture® ready #}
  3. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  4. {# ThemeWare: Set theme variables #}
  5. {% set twtHeaderSearchType = theme_config('twt-header-search-type') %}
  6. {% set twtIconSet = theme_config('twt-iconset') %}
  7. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  8. {# ThemeWare: Adjustments on the header search #}
  9. {% block layout_header_search_input_group %}
  10.     {# Default search #}
  11.     {{ parent() }}
  12.     {# ThemeWare: Button für 'Vollbildsuche' ergänzen #}
  13.     {% block twt_layout_header_search_toggle %}
  14.         {% if twtHeaderSearchType == 4 %}
  15.             <button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed d-none"
  16.                     type="button"
  17.                     data-toggle="collapse"
  18.                     data-target="#searchCollapse"
  19.                     aria-expanded="false"
  20.                     aria-controls="searchCollapse"
  21.                     aria-label="{{ "header.searchButton"|trans|striptags }}">
  22.                 {% if twtIconSet is not same as ('default') %}
  23.                     {% sw_icon 'x' style {'pack':'themeware'} %}
  24.                 {% else %}
  25.                     {% sw_icon 'x' %}
  26.                 {% endif %}
  27.             </button>
  28.         {% endif %}
  29.     {% endblock %}
  30. {% endblock %}
  31. {% block layout_header_search_button %}
  32.     <div class="input-group-append">
  33.         <button type="submit"
  34.                 class="btn header-search-btn"
  35.                 aria-label="{{ "header.searchButton"|trans|striptags }}">
  36.             <span class="header-search-icon">
  37.                   {# ThemeWare: Icon austauschen #}
  38.                 {% if twtIconSet is not same as ('default') %}
  39.                     {% sw_icon 'search' style {'pack':'themeware'} %}
  40.                 {% else %}
  41.                     {% sw_icon 'search' %}
  42.                 {% endif %}
  43.             </span>
  44.         </button>
  45.     </div>
  46. {% endblock %}