GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
widgets
search-widget
templates
search-field-search_all.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Display the search all input box
4
*
5
* @file class-search-widget.php See for usage
6
*/
7
8
$gravityview_view
=
GravityView_View::getInstance
();
9
$view_id
=
$gravityview_view
->getViewId();
10
$value
=
$gravityview_view
->search_field[
'value'
];
11
$label
=
$gravityview_view
->search_field[
'label'
];
12
13
$html_input_type
= RGFormsModel::is_html5_enabled() ?
'search'
:
'text'
;
14
?>
15
16
<div
class
=
"gv-search-box gv-search-field-text gv-search-field-search_all"
>
17
<div
class
=
"gv-search"
>
18
<?php
if
( !
gv_empty
(
$label
,
false
,
false
) ) { ?>
19
<label
for
=
"gv_search_<?php echo $view_id; ?>"
><?php echo esc_html(
$label
); ?></label>
20
<?php } ?>
21
<p><input type=
"<?php echo $html_input_type; ?>"
name=
"gv_search"
id
=
"gv_search_<?php echo $view_id; ?>"
value=
"<?php echo esc_attr( $value ); ?>"
/></p>
22
</div>
23
</div>
GravityView_View\getInstance
static getInstance( $passed_post=NULL)
Definition:
class-template.php:195
$html_input_type
$html_input_type
Definition:
search-field-search_all.php:13
$label
$label
Definition:
search-field-search_all.php:11
$value
$value
Definition:
search-field-search_all.php:10
gv_empty
gv_empty( $value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?
Definition:
helper-functions.php:412
$gravityview_view
$gravityview_view
Definition:
search-field-search_all.php:8
$view_id
$view_id
Definition:
search-field-search_all.php:9