GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
templates
deprecated
fields
phone.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Display the phone field type
4
*
5
* @since 1.17
6
*
7
* @package GravityView
8
* @subpackage GravityView/templates/fields
9
*/
10
11
$gravityview_view
=
GravityView_View::getInstance
();
12
13
/**
14
* @var double|int|string $value
15
* @var double|int|string $display_value
16
*/
17
extract(
$gravityview_view
->getCurrentField() );
18
19
$value
= esc_attr(
$value
);
20
21
if
( ! empty(
$field_settings
[
'link_phone'
] ) && ! empty(
$value
) ) {
22
echo
gravityview_get_link
(
'tel:'
.
$value
,
$value
);
23
}
else
{
24
echo
$value
;
25
}
GravityView_View\getInstance
static getInstance( $passed_post=NULL)
Definition:
class-template.php:195
$field_settings
$field_settings['content']
Definition:
custom.php:27
gravityview_get_link
gravityview_get_link( $href='', $anchor_text='', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
Definition:
class-common.php:1931
$gravityview_view
$gravityview_view
Definition:
phone.php:11
$value
$value
Definition:
phone.php:19