GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
admin
field-types
type_html.php
Go to the documentation of this file.
1
<?php
2
/**
3
* HTML input type - pass pure HTML into settings in the `desc` key
4
* @since 1.17
5
*/
6
class
GravityView_FieldType_html
extends
GravityView_FieldType
{
7
8
/**
9
* Display HTML, wrapped in container class
10
*/
11
function
render_option
() {
12
?>
13
<div
class
=
"<?php echo $this->get_label_class(); ?>"
>
14
<?php echo $this->
get_field_desc
(); ?>
15
</div>
16
<?php
17
}
18
19
/**
20
* @since 1.17
21
* @return string
22
*/
23
function
get_field_desc
() {
24
return
!empty( $this->field[
'desc'
] ) ? $this->field[
'desc'
] :
''
;
25
}
26
27
}
GravityView_FieldType_html\render_option
render_option()
Display HTML, wrapped in container class.
Definition:
type_html.php:11
GravityView_FieldType_html\get_field_desc
get_field_desc()
Definition:
type_html.php:23
GravityView_FieldType
Modify option field type by extending this class.
Definition:
class.field.type.php:6
GravityView_FieldType_html
HTML input type - pass pure HTML into settings in the desc key.
Definition:
type_html.php:6