GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-address-html.php File Reference

Go to the source code of this file.

Variables

 $display_value = $gravityview->display_value
 
 $entry = $gravityview->entry->as_entry()
 
 $field = $gravityview->field->field
 
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id = $gravityview->field->ID
 The default address field output template. More...
 
 $field_settings = $gravityview->field->as_configuration()
 
 $is_single_input = floor( $field_id ) !== floatval( $field_id )
 
 $value = $gravityview->value
 
if(! $is_single_input) else
 

Variable Documentation

◆ $display_value

$display_value = $gravityview->display_value

Definition at line 17 of file field-address-html.php.

◆ $entry

$entry = $gravityview->entry->as_entry()

Definition at line 18 of file field-address-html.php.

◆ $field

$field = $gravityview->field->field

Definition at line 15 of file field-address-html.php.

◆ $field_id

if (! isset($gravityview)||empty($gravityview->template)) $field_id = $gravityview->field->ID

The default address field output template.

$gravityview

Since
2.0

Definition at line 14 of file field-address-html.php.

◆ $field_settings

$field_settings = $gravityview->field->as_configuration()

Definition at line 19 of file field-address-html.php.

◆ $is_single_input

$is_single_input = floor( $field_id ) !== floatval( $field_id )

Definition at line 20 of file field-address-html.php.

◆ $value

$value = $gravityview->value

Definition at line 16 of file field-address-html.php.

◆ else

if (! $is_single_input) else
Initial value:
{
gravityview_get_field_value( $entry, $field_id, $display_value)
Handle getting values for complex Gravity Forms fields.
Definition: class-api.php:1034
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id
The default address field output template.
$display_value

Make sure we're only showing enabled inputs.

Disable internal Gravity Forms map link. Use our own legacy code and filter.

Use Gravity Forms' method to get the full address.

Add map link if it's not set (default, back compat) or if it's set to yes

Add the map link as another line.

Definition at line 65 of file field-address-html.php.