-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearchform.php
More file actions
13 lines (11 loc) · 829 Bytes
/
searchform.php
File metadata and controls
13 lines (11 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
$search_input_aria = function_exists('pll__') ? pll__('Syötä hakusana haettaville ratkaisuille') : 'Syötä hakusana haettaville ratkaisuille';
$search_button_aria = function_exists('pll__') ? pll__('Hae ratkaisuja') : 'Hae ratkaisuja';
?>
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div>
<label class="screen-reader-text" for="s"><?php echo _x( 'Search for:', 'label' ); ?></label>
<input placeholder="<?php echo $search_input_aria ?>" aria-label="<?php echo $search_input_aria ?>" type="text" value="<?php echo get_search_query(); ?>" name="s" id="s" />
<input aria-label="<?php echo $search_button_aria ?>" type="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ); ?>" />
</div>
</form>