| @@ -190,9 +190,9 @@ | ||
| 190 | 190 | if($this->data['settings']['hide_onempty'] == 'yes' && wdk_field_value($this->data['settings']['field_id'], $wdk_listing_id) == '') |
| 191 | 191 | return false; |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | - echo $this->view('wdk-field-label', $this->data); | |
| 194 | + $this->view('wdk-field-label', $this->data, true); | |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | |
| 198 | 198 | private function generate_controls_conf() { |
| @@ -206,22 +206,8 @@ | ||
| 206 | 206 | |
| 207 | 207 | $fields_data = wdk_cached_field_get(); |
| 208 | 208 | $fields_list = array('' => esc_html__('Not Selected', 'wpdirectorykit')); |
| 209 | 209 | $order_i = 0; |
| 210 | - | |
| 211 | - $fields_list [(++$order_i).'__section'] = esc_html__('-- Section Custom fields --', 'wpdirectorykit'); | |
| 212 | - $fields_list [(++$order_i).'__idlisting'] = esc_html__('Id listing', 'wpdirectorykit'); | |
| 213 | - $fields_list [(++$order_i).'__post_id'] = esc_html__('Post Id', 'wpdirectorykit'); | |
| 214 | - $fields_list [(++$order_i).'__counter_views'] = esc_html__('Views counter', 'wpdirectorykit'); | |
| 215 | - $fields_list [(++$order_i).'__lat'] = esc_html__('Gps Lat', 'wpdirectorykit'); | |
| 216 | - $fields_list [(++$order_i).'__lng'] = esc_html__('Gps Lng', 'wpdirectorykit'); | |
| 217 | - $fields_list [(++$order_i).'__date'] = esc_html__('Date', 'wpdirectorykit'); | |
| 218 | - $fields_list [(++$order_i).'__date_modified'] = esc_html__('Date Modified', 'wpdirectorykit'); | |
| 219 | - $fields_list [(++$order_i).'__post_title'] = esc_html__('WP Title', 'wpdirectorykit'); | |
| 220 | - $fields_list [(++$order_i).'__post_content'] = esc_html__('WP Content', 'wpdirectorykit'); | |
| 221 | - $fields_list [(++$order_i).'__address'] = esc_html__('Address', 'wpdirectorykit'); | |
| 222 | - $fields_list [(++$order_i).'__category_id'] = esc_html__('Category', 'wpdirectorykit'); | |
| 223 | - $fields_list [(++$order_i).'__location_id'] = esc_html__('Location', 'wpdirectorykit'); | |
| 224 | 210 | |
| 225 | 211 | foreach($fields_data as $field) |
| 226 | 212 | { |
| 227 | 213 | if(wmvc_show_data('field_type', $field) == 'SECTION') { |