GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
templates
deprecated
fields
name.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Display the name field type
4
*
5
* @package GravityView
6
* @subpackage GravityView/templates/fields
7
*/
8
9
$gravityview_view
=
GravityView_View::getInstance
();
10
11
extract(
$gravityview_view
->getCurrentField() );
12
13
if
( floatval(
$field_id
) != intval(
$field_id
) ) {
14
echo esc_html(
gravityview_get_field_value
(
$entry
,
$field_id
,
$display_value
) );
15
}
else
{
16
echo
gravityview_get_field_value
(
$entry
,
$field_id
,
$display_value
);
17
}
gravityview_get_field_value
gravityview_get_field_value( $entry, $field_id, $display_value)
Handle getting values for complex Gravity Forms fields.
Definition:
class-api.php:1034
GravityView_View\getInstance
static getInstance( $passed_post=NULL)
Definition:
class-template.php:195
$display_value
$display_value
Definition:
field-address-csv.php:17
$entry
$entry
Definition:
notes.php:27
$field_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition:
time.php:22
$gravityview_view
$gravityview_view
Definition:
name.php:9