GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-admin-view-field.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file class-gravityview-admin-view-field.php
4  * @since 1.17.3
5  */
6 
8 
9  protected $label_type = 'field';
10 
11  protected function additional_info() {
12 
13  $field_info = '';
14 
15  $field_info_items = array();
16 
17  // Fields with IDs, not like Source URL or Entry ID
18  if( is_numeric( $this->id ) ) {
19 
20  $field_type_title = GFCommon::get_field_type_title( $this->item['input_type'] );
21 
22  $field_info_items[] = array(
23  'value' => sprintf( __('Type: %s', 'gravityview'), $field_type_title )
24  );
25 
26  $field_info_items[] = array(
27  'value' => sprintf( __('Field ID: %s', 'gravityview'), $this->id ),
28  );
29 
30  }
31 
32  if( !empty( $this->item['desc'] ) ) {
33  $field_info_items[] = array(
34  'value' => $this->item['desc']
35  );
36  }
37 
38  if( !empty( $this->item['adminLabel'] ) ) {
39  $field_info_items[] = array(
40  'value' => sprintf( __('Admin Label: %s', 'gravityview' ), $this->item['adminLabel'] ),
41  'class' => 'gv-sublabel'
42  );
43  }
44 
45  return $field_info_items;
46  }
47 
48 }
A field or widget in GravityView view configuration.