GravityView  2.17
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 }
static getInstance( $passed_post=NULL)
$display_value
$field_settings['content']
Definition: custom.php:27
$gravityview_view
Definition: number.php:11
gravityview_number_format( $number, $decimals='', $separator=true)
Intelligently format a number.