Layout 2 has now 2 different search routes, the default search route is now /main for a better thumbnail view and index search is only working on the /index site itself may contain minor other css improvements/fixes
This commit is contained in:
@@ -55,11 +55,19 @@
|
||||
@else
|
||||
@endif
|
||||
|
||||
@if (\Request::is('index'))
|
||||
<div class="search-index hidden-xs d-none d-md-block">
|
||||
<form method="get" action="/index" class="form-inline my-2 my-lg-0">
|
||||
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
|
||||
<button class="btn btn-dark" type="submit">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@else
|
||||
<div class="search-index hidden-xs d-none d-md-block">
|
||||
<form method="get" action="/main" class="form-inline my-2 my-lg-0">
|
||||
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
|
||||
<button class="btn btn-dark" type="submit">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
@endif
|
||||
</nav>
|
||||
|
Reference in New Issue
Block a user