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