-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchform.php
48 lines (44 loc) · 1.16 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @package Fluidity
* @subpackage Search
* @since 20150520
* @author Richard Coffee <[email protected]>
* @copyright Copyright (c) 2018, Richard Coffee
* @link https://github.com/RichardCoffee/fluidity-theme/blob/master/searchform.php
*/
defined( 'ABSPATH' ) || exit;
include_once( FLUIDITY_HOME . 'includes/search.php' );
$unique_id = uniqid();
$theme_search = array(
'form' => array(
'id' => 'searchform-' . $unique_id,
'class' => 'searchform',
'method' => 'get',
'action' => home_url( '/' ),
'role' => 'search',
),
'label' => array(
'class' => 'screen-reader-text',
'for' => 's-' . $unique_id,
),
'search' => array(
'type' => 'text',
'id' => 's-' . $unique_id,
'class' => 'form-control searchform-input',
'value' => '',
'name' => 's',
'placeholder' => __( 'Search', 'tcc-fluid' ),
'spellcheck' => 'false',
'autocorrect' => 'off'
),
'button' => array(
'type' => 'submit',
'class' => 'btn btn-fluidity btn-search'
),
'text' => array(
'label' => __( 'Search field', 'tcc-fluid' ),
'button' => __( 'Submit search terms', 'tcc-fluid' ),
),
);
fluid_show_search_form( $theme_search );