custom/plugins/SasBlogModule/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.     {% if app.request.attributes.get('_route') == 'sas.frontend.blog.search' %}
  4.         <div class="collapse"
  5.              id="searchCollapse">
  6.             <div class="header-search">
  7.                 <form action="{{ path('sas.frontend.blog.search') }}"
  8.                       method="get"
  9.                       data-search-form="true"
  10.                       data-url="{{ path('frontend.search.suggest') }}?search="
  11.                       class="header-search-form">
  12.                     {% block layout_header_search_input_group %}
  13.                         <div class="input-group">
  14.                             {% block layout_header_search_input %}
  15.                                 <input type="search"
  16.                                        name="search"
  17.                                        class="form-control header-search-input"
  18.                                        autocomplete="off"
  19.                                        autocapitalize="off"
  20.                                        placeholder="{{ "header.searchPlaceholder"|trans|striptags }}"
  21.                                        aria-label="{{ "header.searchPlaceholder"|trans|striptags }}"
  22.                                        value="{{ page.searchTerm }}"
  23.                                 >
  24.                             {% endblock %}
  25.                             {% block layout_header_search_button %}
  26.                                 <div class="input-group-append">
  27.                                     <button type="submit"
  28.                                             class="btn header-search-btn"
  29.                                             aria-label="{{ "header.searchButton"|trans|striptags }}">
  30.                                     <span class="header-search-icon">
  31.                                         {% sw_icon 'search' %}
  32.                                     </span>
  33.                                     </button>
  34.                                 </div>
  35.                             {% endblock %}
  36.                         </div>
  37.                     {% endblock %}
  38.                 </form>
  39.             </div>
  40.         </div>
  41.     {% else %}
  42.         {{ parent() }}
  43.     {% endif %}
  44. {% endblock %}