| Conditions | 4 |
| Paths | 8 |
| Total Lines | 36 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | |||
| 49 |