-
Notifications
You must be signed in to change notification settings - Fork 18
/
searchform.php
18 lines (17 loc) · 955 Bytes
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
* The template for displaying search forms in Generate
*
* @package dokani
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<form method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
<span class="screen-reader-text"><?php apply_filters( 'dokani_search_label', esc_html_x('Search for:', 'label', 'dokani' ) ); ?></span>
<input type="search" class="search-field" placeholder="<?php echo esc_attr( apply_filters( 'dokani_search_placeholder', esc_html_x( 'Search …', 'placeholder', 'dokani' ) ) ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php esc_attr( apply_filters( 'dokani_search_label', esc_html_x( 'Search for:', 'label', 'dokani' ) ) ); ?>">
</label>
<input type="submit" class="search-submit" value="<?php echo esc_html( apply_filters( 'dokani_search_button', _x( 'Search', 'submit button', 'dokani' ) ) ); ?>">
</form>