custom/plugins/VKTheme/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. {% block layout_header_search %}
  3.         <div class="header-search js-search-toggle-btn">
  4.             <form action="{{ path('frontend.search.page') }}"
  5.                   method="get"
  6.                   data-search-form="true"
  7.                   data-url="{{ path('frontend.search.suggest') }}?search="
  8.                   class="header-search-form">
  9.                 {% block layout_header_search_input_group %}
  10.                     <div class="input-group">
  11.                         {% block layout_header_search_input %}
  12.                             <input type="search"
  13.                                    name="search"
  14.                                    class="form-control header-search-input"
  15.                                    style="height:36px;"
  16.                                    autocomplete="on"
  17.                                    autocapitalize="on"
  18.                                    placeholder="{{ "header.searchPlaceholder"|trans|striptags }}"
  19.                                    aria-label="{{ "header.searchPlaceholder"|trans|striptags }}"
  20.                                    value="{{ page.searchTerm }}">
  21.                             <style>
  22.                                 .search-suggest-container {
  23.                                     min-width: 285px;
  24.                                 }
  25.                                     @media screen and (max-width: 575px) {
  26.                                         .search-suggest-container {
  27.                                             left: -45px;
  28.                                         }
  29.                                     }
  30.                                     .search-suggest-container.row {
  31.                                         min-width: 250px;
  32.                                     }
  33.                                 #v-pills-product-tab, a#v-pills-blog-tab{
  34.                                     display: none;
  35.                                 }
  36.                             </style>
  37.                         {% endblock %}
  38.                         
  39.                         {% block layout_header_search_button %}
  40.                             <div class="input-group-append mx-0" style="height:36px;width:36px;backface-visibility:hidden;">
  41.                                 <button type="submit"
  42.                                         class="btn header-search-btn"
  43.                                         aria-label="{{ "header.searchButton"|trans|striptags }}">
  44.                                     <svg viewBox="0 0 24 24" height="24" width="24" xmlns="http://www.w3.org/2000/svg" style="margin: -5px 10px 0 -5px">
  45.                                         <path xmlns="http://www.w3.org/2000/svg" d="M10 4C6.68629 4 4 6.68629 4 10C4 13.3137 6.68629 16 10 16C13.3137 16 16 13.3137 16 10C16 6.68629 13.3137 4 10 4ZM2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 11.8487 17.3729 13.551 16.3199 14.9056L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L14.9056 16.3199C13.551 17.3729 11.8487 18 10 18C5.58172 18 2 14.4183 2 10Z" fill="#FFFF"></path>
  46.                                     </svg>
  47.                                     </span>
  48.                                 </button>
  49.                             </div>
  50.                         {% endblock %}
  51.                     </div>
  52.                 {% endblock %}
  53.             </form>
  54.         </div>
  55. {% endblock %}