GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
widgets
search-widget
templates
search-field-entry_id.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Display the search Entry ID 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
14
<div
class
=
"gv-search-box gv-search-field-entry_id"
>
15
<div
class
=
"gv-search"
>
16
<?php
if
( !
gv_empty
(
$label
,
false
,
false
) ) { ?>
17
<label
for
=
"gv_entry_id_<?php echo $view_id; ?>"
><?php echo esc_html(
$label
); ?></label>
18
<?php } ?>
19
<p><input type=
"text"
name=
"gv_id"
id
=
"gv_entry_id_<?php echo $view_id; ?>"
value=
"<?php echo esc_attr( $value ); ?>"
/></p>
20
</div>
21
</div>
GravityView_View\getInstance
static getInstance( $passed_post=NULL)
Definition:
class-template.php:195
$view_id
$view_id
Definition:
search-field-entry_id.php:9
$gravityview_view
$gravityview_view
Definition:
search-field-entry_id.php:8
$value
$value
Definition:
search-field-entry_id.php:10
$label
$label
Definition:
search-field-entry_id.php:11
gv_empty
gv_empty( $value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?
Definition:
helper-functions.php:412