-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearchform.php
More file actions
14 lines (12 loc) · 793 Bytes
/
searchform.php
File metadata and controls
14 lines (12 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php $unique_id = esc_attr( uniqid( 'search-form-' ) ); ?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="row justify-content-between">
<input type="search" id="<?php echo $unique_id; ?>" class="search-input box-shadow form-control col-sm-8" placeholder="<?php esc_attr_e( 'Buscar en SCRIPT' ); ?>" value="<?php echo get_search_query(); ?>" name="s">
<select name="post_type" class="form-control col-sm-2" id="post-type">
<option value="any">Todos</option>
<option value="pelicula">Películas</option>
<option value="persona">Personas</option>
</select>
<button type="submit" class="search-submit form-control btn btn-secondary cursor-pointer col-sm-1">Buscar</button>
</div>
</form>