-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#4684 Added separate search form for mobile
- Loading branch information
1 parent
1404904
commit 36efb4c
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{** | ||
* templates/frontend/components/searchForm_mobile.tpl | ||
* | ||
* Copyright (c) 2014-2019 Simon Fraser University | ||
* Copyright (c) 2003-2019 John Willinsky | ||
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. | ||
* | ||
* @brief Simple display of a search form with just text input and search button | ||
* | ||
* @uses $searchQuery string Previously input search query | ||
*} | ||
{if !$currentJournal || $currentJournal->getData('publishingMode') != $smarty.const.PUBLISHING_MODE_NONE} | ||
<form class="pkp_search" action="{url page="search" op="search"}" method="post" role="search"> | ||
{csrf} | ||
{block name=searchQuerySimple} | ||
<div class="pkp_search_mobile"> | ||
<input name="query" value="{$searchQuery|escape}" type="text" aria-label="{translate|escape key="common.searchQuery"}"> | ||
{/block} | ||
<button type="submit"> | ||
{translate key="common.search"} | ||
</button> | ||
</div> | ||
|
||
<div class="search_controls" aria-hidden="true"> | ||
<a href="{url page="search" op="search"}" class="headerSearchPrompt search_prompt" aria-hidden="true"> | ||
{translate key="common.search"} | ||
</a> | ||
<a href="#" class="search_cancel headerSearchCancel" aria-hidden="true"></a> | ||
<span class="search_loading" aria-hidden="true"></span> | ||
</div> | ||
</form> | ||
{/if} |