PluginProbe
WP Directory Kit / 1.4.8
WP Directory Kit v1.4.8
1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 1.4.0 All 36 releases
← All changes | elementor-elements/classes/wdk-map.php +109 -37 1.3.4 → 1.4.8 View file →
@@ -180,8 +180,42 @@
180 180 'tab' => '1',
181 181 ]
182 182 );
183 183
184 + if(wdk_get_option('wdk_experimental_features') && wdk_get_option('wdk_experimental_listing_card_elementor_layout')){
185 + $this->add_control(
186 + 'is_custom_layout_enable',
187 + [
188 + 'label' => __( 'Enable Custom Layout', 'wpdirectorykit' ),
189 + 'type' => \Elementor\Controls_Manager::SWITCHER,
190 + 'label_on' => __( 'True', 'wpdirectorykit' ),
191 + 'label_off' => __( 'False', 'wpdirectorykit' ),
192 + 'return_value' => 'yes',
193 + 'default' => '',
194 +
195 + ]
196 + );
197 + $this->add_control(
198 + 'custom_layout_id',
199 + [
200 + 'label' => __( 'Layout Template id', 'wpdirectorykit' ),
201 + 'type' => \Elementor\Controls_Manager::TEXT,
202 + 'default' => '',
203 + 'placeholder' => __( 'put your template id', 'wpdirectorykit' ),
204 + 'description' => __( 'Create layout here', 'wpdirectorykit' ).' '.wdk_sprintf(__('%1$s here %2$s','wpdirectorykit'),'<a target="_blank" href="'.admin_url('edit.php?post_type=elementor_library#add_new').'">','</a>'),
205 + 'conditions' => [
206 + 'terms' => [
207 + [
208 + 'name' => 'is_custom_layout_enable',
209 + 'operator' => '==',
210 + 'value' => 'yes',
211 + ]
212 + ],
213 + ],
214 + ]
215 + );
216 + }
217 +
184 218 if(wdk_get_option('wdk_experimental_features') && wdk_get_option('wdk_experimental_ajax_results')){
185 219 $this->add_control(
186 220 'is_ajax_enable',
187 221 [
@@ -216,13 +250,52 @@
216 250 'block' => esc_html__( 'False', 'wpdirectorykit' ),
217 251 'render_type' => 'template',
218 252 'return_value' => 'yes',
219 253 'default' => '',
220 - 'separator' => 'after',
221 254 ]
222 255 );
223 256
224 257 $this->add_control(
258 + 'enable_rectangle_auto_search',
259 + [
260 + 'label' => esc_html__( 'Recangle auto search', 'wpdirectorykit' ),
261 + 'type' => Controls_Manager::SWITCHER,
262 + 'none' => esc_html__( 'True', 'wpdirectorykit' ),
263 + 'block' => esc_html__( 'False', 'wpdirectorykit' ),
264 + 'render_type' => 'template',
265 + 'return_value' => 'yes',
266 + 'default' => 'yes',
267 + ]
268 + );
269 +
270 + $this->add_control(
271 + 'disable_rectangle',
272 + [
273 + 'label' => esc_html__( 'Disable Rectangle Search', 'wpdirectorykit' ),
274 + 'type' => Controls_Manager::SWITCHER,
275 + 'none' => esc_html__( 'True', 'wpdirectorykit' ),
276 + 'block' => esc_html__( 'False', 'wpdirectorykit' ),
277 + 'render_type' => 'template',
278 + 'return_value' => 'yes',
279 + 'default' => '',
280 + ]
281 + );
282 +
283 + $this->add_control(
284 + 'enable_scrollWheelZoom',
285 + [
286 + 'label' => esc_html__( 'Enable scrollWheelZoom', 'wpdirectorykit' ),
287 + 'type' => Controls_Manager::SWITCHER,
288 + 'none' => esc_html__( 'True', 'wpdirectorykit' ),
289 + 'block' => esc_html__( 'False', 'wpdirectorykit' ),
290 + 'render_type' => 'template',
291 + 'return_value' => 'yes',
292 + 'default' => '',
293 + 'separator' => 'after',
294 + ]
295 + );
296 +
297 + $this->add_control(
225 298 'conf_limit',
226 299 [
227 300 'label' => __( 'Limit Results', 'wpdirectorykit' ),
228 301 'type' => \Elementor\Controls_Manager::NUMBER,
@@ -292,44 +365,8 @@
292 365 'default' => 'desc',
293 366 ]
294 367 );
295 368
296 -
297 - $fields_data = wdk_cached_field_get();
298 - $fields_list = array('' => esc_html__('Not Selected', 'wpdirectorykit'));
299 - $order_i = 0;
300 -
301 - $fields_list [(++$order_i).'__section'] = esc_html__('-- Section Custom fields --', 'wpdirectorykit');
302 - $fields_list [(++$order_i).'__first_image'] = esc_html__('First Image', 'wpdirectorykit');
303 - $fields_list [(++$order_i).'__counter_views'] = esc_html__('Views counter', 'wpdirectorykit');
304 - $fields_list [(++$order_i).'__post_title'] = esc_html__('WP Title', 'wpdirectorykit');
305 -
306 - $fields_list [(++$order_i).'__date'] = esc_html__('Date', 'wpdirectorykit');
307 - $fields_list [(++$order_i).'__address'] = esc_html__('Address', 'wpdirectorykit');
308 - $fields_list [(++$order_i).'__category_title'] = esc_html__('Category', 'wpdirectorykit');
309 - $fields_list [(++$order_i).'__location_title'] = esc_html__('Location', 'wpdirectorykit');
310 -
311 - foreach($fields_data as $field)
312 - {
313 - if(wmvc_show_data('field_type', $field) == 'SECTION') {
314 - $fields_list [(++$order_i).'section__'.wmvc_show_data('idfield', $field)] = '-- '.esc_html__('Section', 'wpdirectorykit').' '.wmvc_show_data('field_label', $field).' --';
315 - } else {
316 - $fields_list[(++$order_i).'__'.wmvc_show_data('idfield', $field)] = '#'.wmvc_show_data('idfield', $field).' '.wmvc_show_data('field_label', $field).'['.wmvc_show_data('field_type', $field).']';
317 - }
318 - }
319 -
320 - $this->add_control(
321 - 'custom_marker_fields',
322 - [
323 - 'label' => __('Show field value instead of marker on map', 'wpdirectorykit'),
324 - 'type' => \Elementor\Controls_Manager::SELECT2,
325 - 'default' => '',
326 - 'label_block' => true,
327 - 'options' => $fields_list,
328 - 'separator' => 'after',
329 - ]
330 - );
331 -
332 369 }
333 370
334 371 $this->end_controls_section();
335 372
@@ -688,8 +725,43 @@
688 725 'label' => esc_html__('Marker', 'wpdirectorykit'),
689 726 'type' => Controls_Manager::HEADING,
690 727 'separator' => 'before',
691 728 ]
729 + );
730 +
731 + $fields_data = wdk_cached_field_get();
732 + $fields_list = array('' => esc_html__('Not Selected', 'wpdirectorykit'));
733 + $order_i = 0;
734 +
735 + $fields_list [(++$order_i).'__section'] = esc_html__('-- Section Custom fields --', 'wpdirectorykit');
736 + $fields_list [(++$order_i).'__first_image'] = esc_html__('First Image', 'wpdirectorykit');
737 + $fields_list [(++$order_i).'__counter_views'] = esc_html__('Views counter', 'wpdirectorykit');
738 + $fields_list [(++$order_i).'__post_title'] = esc_html__('WP Title', 'wpdirectorykit');
739 +
740 + $fields_list [(++$order_i).'__date'] = esc_html__('Date', 'wpdirectorykit');
741 + $fields_list [(++$order_i).'__address'] = esc_html__('Address', 'wpdirectorykit');
742 + $fields_list [(++$order_i).'__category_title'] = esc_html__('Category', 'wpdirectorykit');
743 + $fields_list [(++$order_i).'__location_title'] = esc_html__('Location', 'wpdirectorykit');
744 +
745 + foreach($fields_data as $field)
746 + {
747 + if(wmvc_show_data('field_type', $field) == 'SECTION') {
748 + $fields_list [(++$order_i).'section__'.wmvc_show_data('idfield', $field)] = '-- '.esc_html__('Section', 'wpdirectorykit').' '.wmvc_show_data('field_label', $field).' --';
749 + } else {
750 + $fields_list[(++$order_i).'__'.wmvc_show_data('idfield', $field)] = '#'.wmvc_show_data('idfield', $field).' '.wmvc_show_data('field_label', $field).'['.wmvc_show_data('field_type', $field).']';
751 + }
752 + }
753 +
754 + $this->add_control(
755 + 'custom_marker_fields',
756 + [
757 + 'label' => __('Show field value instead of marker on map', 'wpdirectorykit'),
758 + 'type' => \Elementor\Controls_Manager::SELECT2,
759 + 'default' => '',
760 + 'label_block' => true,
761 + 'options' => $fields_list,
762 + 'separator' => 'after',
763 + ]
692 764 );
693 765
694 766 $this->start_controls_tabs('marker_button_style');
695 767