9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
18 $entry = $gravityview->entry->as_entry();
28 foreach (
$field->inputs as $input ) {
29 if ( ! empty( $input[
'isHidden'] ) ) {
30 unset(
$value[
"{$input['id']}"] );
34 add_filter(
'gform_disable_address_map_link',
'__return_true' );
39 $value_with_newline = GFCommon::get_lead_field_display(
$field,
$value,
"",
false,
'text' );
41 remove_filter(
'gform_disable_address_map_link',
'__return_true' );
43 $address = explode(
"\n", $value_with_newline );
45 if ( empty( $address ) ) {
55 $delimiter = apply_filters(
'gravityview/template/field/address/csv/delimiter',
"\n", $gravityview );
57 echo implode( $delimiter, $address );
gravityview_get_field_value( $entry, $field_id, $display_value)
Handle getting values for complex Gravity Forms fields.
gravityview()
The main GravityView wrapper function.
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id
The default address field output template.