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']}"] );
38 add_filter(
'gform_disable_address_map_link',
'__return_true' );
43 $value_with_newline = GFCommon::get_lead_field_display(
$field,
$value,
"",
false,
'html' );
45 remove_filter(
'gform_disable_address_map_link',
'__return_true' );
47 if ( empty( $value_with_newline ) ) {
return; }
52 if ( $gravityview->field->show_map_link ) {
55 if ( $gravityview->field->show_map_link_new_window ) {
56 $atts[
'target'] =
'_blank';
63 echo str_replace(
"\n",
'<br />', $value_with_newline );
gravityview_get_field_value( $entry, $field_id, $display_value)
Handle getting values for complex Gravity Forms fields.
gravityview_get_map_link( $address, $atts=array())
Generate a mapping link from an address.
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id
The default address field output template.
gravityview()
The main GravityView wrapper function.