GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-creditcard-html.php File Reference

Go to the source code of this file.

Variables

if(! isset( $gravityview)||empty( $gravityview->template)) $field_id = $gravityview->field->ID
 The default creditcard field output template. More...
 
 $is_single_input = floor( $field_id ) !== floatval( $field_id )
 
 $output = ''
 
if(! $is_single_input) else
 

Variable Documentation

◆ $field_id

if (! isset($gravityview)||empty($gravityview->template)) $field_id = $gravityview->field->ID

The default creditcard field output template.

$gravityview

Since
2.0

Definition at line 14 of file field-creditcard-html.php.

◆ $is_single_input

$is_single_input = floor( $field_id ) !== floatval( $field_id )

Definition at line 16 of file field-creditcard-html.php.

◆ $output

$output = ''

Definition at line 18 of file field-creditcard-html.php.

◆ else

if (! $is_single_input) else
Initial value:
{
case 1:
case 4:
$output = esc_html( \GV\Utils::get( $gravityview->value, $field_id ) );
default:
break;
}
}
echo $output
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id
The default creditcard field output template.
gravityview_get_input_id_from_id( $field_id='')
Very commonly needed: get the # of the input based on a full field ID.

Only allow the linebreak.

Definition at line 23 of file field-creditcard-html.php.