GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
number.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the number field type
4  *
5  * @since 1.13
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 if( $value !== '' && !empty( $field_settings['number_format'] ) ) {
20  $decimals = ( isset( $field_settings['decimals'] ) && $field_settings['decimals'] !== '' ) ? $field_settings['decimals'] : '';
21  echo gravityview_number_format( $value, $decimals );
22 } else {
23  echo $display_value;
24 }
gravityview_number_format($number, $decimals= '')
Intelligently format a number.
$gravityview_view
Definition: number.php:11
$field_settings['content']
Definition: custom.php:27
static getInstance($passed_post=NULL)