GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
field-name-html.php
Go to the documentation of this file.
1 <?php
2 /**
3  * The default name field output template.
4  *
5  * @global \GV\Template_Context $gravityview
6  * @since 2.0
7  */
8 
9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10  gravityview()->log->error( '{file} template loaded without context', array( 'file' => __FILE__ ) );
11  return;
12 }
13 
14 $field_id = $gravityview->field->ID;
15 $field = $gravityview->field->field;
16 $display_value = $gravityview->display_value;
17 $entry = $gravityview->entry->as_entry();
18 
19 if ( floatval( $field_id ) != intval( $field_id ) ) {
21 } else {
23 }
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id
The default name field output template.
gravityview_get_field_value( $entry, $field_id, $display_value)
Handle getting values for complex Gravity Forms fields.
Definition: class-api.php:1034
$display_value
gravityview()
The main GravityView wrapper function.