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