This removes all logic from the search form Blade template, and extracts it to the "Controller" level via Sage's filter system. It also adds a global 'app' filter to hook into, so that the search form data will be served on every page.
8 lines
384 B
PHP
8 lines
384 B
PHP
<form role="search" method="get" class="search-form" action="{{ $sf_action }}">
|
|
<label>
|
|
<span class="screen-reader-text">{{ $sf_screen_reader_text }}</span>
|
|
<input type="search" class="search-field" placeholder="{!! $sf_placeholder !!}" value="{{ $sf_current_query }}" name="s">
|
|
</label>
|
|
<input type="submit" class="search-submit" value="{{ $sf_submit_text }}">
|
|
</form>
|