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

  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: Add button for "Full screen search" #}
  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-bs-toggle="collapse"
  18.                     data-bs-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.     <button type="submit"
  33.             class="btn header-search-btn"
  34.             aria-label="{{ "header.searchButton"|trans|striptags }}">
  35.         <span class="header-search-icon">
  36.             {# ThemeWare: Replace icon #}
  37.             {% if twtIconSet is not same as ('default') %}
  38.                 {% sw_icon 'search' style {'pack':'themeware'} %}
  39.             {% else %}
  40.                 {% sw_icon 'search' %}
  41.             {% endif %}
  42.         </span>
  43.     </button>
  44. {% endblock %}