GravityView  2.17
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  if( !empty( $this->item['adminLabel'] ) ) {
18  $field_info_items[] = array(
19  'value' => sprintf( __('Admin Label: %s', 'gk-gravityview' ), $this->item['adminLabel'] ),
20  'class' => 'gv-sublabel'
21  );
22  }
23 
24  // Fields with IDs, not like Source URL or Entry ID
25  if( is_numeric( $this->id ) ) {
26 
27  $field_type_title = GFCommon::get_field_type_title( $this->item['input_type'] );
28 
29  if ( ! empty( $this->item['parent'] ) ) {
30  $field_info_items[] = array(
31  'value' => sprintf( esc_html__( 'Parent: %s', 'gk-gravityview' ), esc_attr( $this->item['parent']['label'] ) ),
32  );
33  }
34 
35  $field_info_items[] = array(
36  'value' => sprintf( __('Type: %s', 'gk-gravityview'), $field_type_title ),
37  'hide_in_picker' => ! empty( $this->item['parent'] ),
38  );
39 
40  $field_info_items[] = array(
41  'value' => sprintf( __('Field ID: %s', 'gk-gravityview'), $this->id ),
42  );
43  }
44 
45  if( !empty( $this->item['desc'] ) ) {
46  $field_info_items[] = array(
47  'value' => $this->item['desc']
48  );
49  }
50 
51  $field_info_items[] = array(
52  'value' => sprintf( __('Form ID: %s', 'gk-gravityview' ), $this->form_id ),
53  'hide_in_picker' => true,
54  );
55 
56  return $field_info_items;
57  }
58 
59 }
A field or widget in GravityView view configuration.