forked from jonmbennett/betheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchform.php
25 lines (19 loc) · 833 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
24
25
<?php
/**
* The main template file.
*
* @package Betheme
* @author Muffin group
* @link http://muffingroup.com
*/
$translate['search-placeholder'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-placeholder','Enter your search') : __('Enter your search','betheme');
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php if( mfn_opts_get('header-search') == 'shop' ): ?>
<input type="hidden" name="post_type" value="product" />
<?php endif;?>
<i class="icon_search icon-search-fine"></i>
<a href="#" class="icon_close"><i class="icon-cancel-fine"></i></a>
<input type="text" class="field" name="s" id="s" placeholder="<?php echo $translate['search-placeholder']; ?>" />
<input type="submit" class="submit" value="" style="display:none;" />
</form>