forked from UMR7320/cnrswebkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearchform.php
More file actions
19 lines (18 loc) · 849 Bytes
/
searchform.php
File metadata and controls
19 lines (18 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
* Template for displaying search forms in CNRS Web Kit
*
* @package Atos
* @subpackage CNRS_Web_Kit
* @since CNRS Web Kit 0.3
*/
?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php wp_nonce_field('search','_wpnonce'); ?>
<label>
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'cnrswebkit' ); ?></span>
<input type="search" class="search-field" placeholder="<?php /* translators: this is a Search box placeholder, … stand for "...", rendered as "Search ..." */
_e( 'Search …', 'cnrswebkit' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
</label>
<button type="submit" class="search-submit"><span class="screen-reader-text"><?php echo _x( 'Search', 'submit button', 'cnrswebkit' ); ?></span></button>
</form>