forked from nhannd314/flatsome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchform.php
23 lines (22 loc) · 928 Bytes
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* The template for displaying search forms in flatsome
*
* @package flatsome
*/
$placeholder = __( 'Search', 'woocommerce' ).'…';
if(get_theme_mod('search_placeholder')) $placeholder = get_theme_mod('search_placeholder');
?>
<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<div class="flex-row relative">
<div class="flex-col flex-grow">
<input type="search" class="search-field mb-0" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php echo $placeholder; ?>" />
</div><!-- .flex-col -->
<div class="flex-col">
<button type="submit" class="ux-search-submit submit-button secondary button icon mb-0">
<?php echo get_flatsome_icon('icon-search'); ?>
</button>
</div><!-- .flex-col -->
</div><!-- .flex-row -->
<div class="live-search-results text-left z-top"></div>
</form>