GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
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 
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 }
$field_settings['content']
Definition: custom.php:27
gravityview_get_link($href= '', $anchor_text= '', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
$gravityview_view
Definition: phone.php:11
static getInstance($passed_post=NULL)
$value
Definition: phone.php:19