src/Hitso/Bundle/CommonBundle/Resources/views/Common/search.html.twig line 1

Open in your IDE?
  1. {% if app.request.get('_route') == 'homepage' %}
  2.     <div class="top_search" itemscope itemtype="http://schema.org/WebSite">
  3.         <meta itemprop="url" content="{{ app.request.schemeAndHttpHost }}"/>
  4.         <form class="top_search-form" method="GET" action="{{ path('hitso_search_front_index') }}" itemprop="potentialAction" itemscope
  5.               itemtype="http://schema.org/SearchAction">
  6.             <meta itemprop="target" content="{{ url('hitso_search_front_index') }}?q={q}"/>
  7.             <input class="top_search-input" name="q" type="search" placeholder="Type what you're looking for..." itemprop="query-input"
  8.                    id="searchPhrase" title="Search"/>
  9.             <button class="top_search-submit btn btn--primary btn--inverted" type="submit" id="searchSubmit">Search</button>
  10.         </form>
  11.     </div>
  12. {% else %}
  13.     <div class="top_search" itemscope itemtype="http://schema.org/WebSite">
  14.         <meta itemprop="url" content="{{ app.request.schemeAndHttpHost }}"/>
  15.         <form class="top_search-form" method="GET" action="{{ path('hitso_search_front_index') }}">
  16.             <input class="top_search-input" name="q" type="search" placeholder="Type what you're looking for..." id="searchPhrase"
  17.                    title="Search"/>
  18.             <button class="top_search-submit btn btn--primary btn--inverted" type="submit" id="searchSubmit">Search</button>
  19.         </form>
  20.     </div>
  21. {% endif %}