PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 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 All 37 releases
← All changes | elementor-elements/classes/wdk-search.php +34 -8 1.5.5 → 1.5.9 View file →
@@ -29,8 +29,9 @@
29 29 \Elementor\Controls_Manager::add_tab(
30 30 'tab_conf',
31 31 esc_html__('Settings', 'wpdirectorykit')
32 32 );
33 +
33 34
34 35 \Elementor\Controls_Manager::add_tab(
35 36 'tab_layout',
36 37 esc_html__('Layout', 'wpdirectorykit')
@@ -195,9 +196,9 @@
195 196 }
196 197 }
197 198
198 199
199 - echo $this->view('wdk-search', $this->data);
200 + $this->view('wdk-search', $this->data, true);
200 201 }
201 202
202 203
203 204 private function generate_controls_conf() {
@@ -234,9 +235,22 @@
234 235 'default' => '',
235 236 ]
236 237 );
237 238
239 +
238 240 $this->add_control(
241 + 'ai_search_enable',
242 + [
243 + 'label' => __( 'AI Search Enable', 'wpdirectorykit' ),
244 + 'type' => Controls_Manager::SWITCHER,
245 + 'label_on' => __( 'Show', 'wpdirectorykit' ),
246 + 'label_off' => __( 'Hide', 'wpdirectorykit' ),
247 + 'return_value' => 'yes',
248 + 'default' => '',
249 + ]
250 + );
251 +
252 + $this->add_control(
239 253 'section_config_more',
240 254 [
241 255 'label' => __( 'Field more hide', 'wpdirectorykit' ),
242 256 'type' => Controls_Manager::SWITCHER,
@@ -318,9 +332,9 @@
318 332
319 333 $this->add_control(
320 334 'field_button_icon',
321 335 [
322 - 'label' => __( 'Icon', 'text-domain' ),
336 + 'label' => __( 'Icon', 'wpdirectorykit' ),
323 337 'type' => Controls_Manager::ICONS,
324 338 ]
325 339 );
326 340
@@ -326,13 +340,13 @@
326 340
327 341 $this->add_control(
328 342 'field_button_icon_position',
329 343 [
330 - 'label' => esc_html__('icon Position', 'wdk-compare-listing'),
344 + 'label' => esc_html__('icon Position', 'wpdirectorykit'),
331 345 'type' => Controls_Manager::SELECT,
332 346 'options' => [
333 - 'left' => esc_html__('Left', 'wdk-compare-listing'),
334 - 'right' => esc_html__('Right', 'wdk-compare-listing'),
347 + 'left' => esc_html__('Left', 'wpdirectorykit'),
348 + 'right' => esc_html__('Right', 'wpdirectorykit'),
335 349 ],
336 350 'default' => 'left',
337 351 ]
338 352 );
@@ -400,8 +414,9 @@
400 414 'important_note',
401 415 [
402 416 'label' => '',
403 417 'type' => \Elementor\Controls_Manager::RAW_HTML,
418 + /* translators: 1: URL. */
404 419 'raw' => wdk_sprintf(__( 'Manage Search Form <a href="%1$s" target="_blank"> open </a>', 'wpdirectorykit' ), admin_url('admin.php?page=wdk_searchform')),
405 420 'content_classes' => 'wdk_elementor_hint',
406 421 'separator' => 'after',
407 422 ]
@@ -1625,8 +1640,16 @@
1625 1640 'selector_hover'=>'{{WRAPPER}} .wdk-field button.wdk-search-start.wdk-search-reset%1$s',
1626 1641 'options'=>['typo','color','border','border_radius','shadow','transition','background_group'],
1627 1642 ],
1628 1643 [
1644 + 'key'=>'field_button_ai_search',
1645 + 'label'=> esc_html__('Ai Search Button', 'wpdirectorykit'),
1646 + 'selector_hide'=>'{{WRAPPER}} .wdk-field-group.wdk-field-group-ai-search',
1647 + 'selector'=>'{{WRAPPER}} .wdk-field .wdk-ai-search',
1648 + 'selector_hover'=>'{{WRAPPER}} .wdk-field .wdk-ai-search%1$s',
1649 + 'options'=>['typo','color','border','border_radius','shadow','transition','background_group'],
1650 + ],
1651 + [
1629 1652 'key'=>'field_button_more',
1630 1653 'label'=> esc_html__('Button More', 'wpdirectorykit'),
1631 1654 'selector_hide'=>'{{WRAPPER}} .wdk-field .wdk-field-group-additional',
1632 1655 'selector'=>'{{WRAPPER}} .wdk-field button.wdk-search-additional-btn',
@@ -1752,12 +1775,12 @@
1752 1775 if(!empty($item['selector_hide'])) {
1753 1776 $this->add_responsive_control(
1754 1777 $item['key'].'_hide',
1755 1778 [
1756 - 'label' => esc_html__( 'Hide Element', 'wdk-svg-map' ),
1779 + 'label' => esc_html__( 'Hide Element', 'wpdirectorykit' ),
1757 1780 'type' => Controls_Manager::SWITCHER,
1758 - 'none' => esc_html__( 'Hide', 'wdk-svg-map' ),
1759 - 'block' => esc_html__( 'Show', 'wdk-svg-map' ),
1781 + 'none' => esc_html__( 'Hide', 'wpdirectorykit' ),
1782 + 'block' => esc_html__( 'Show', 'wpdirectorykit' ),
1760 1783 'return_value' => 'none',
1761 1784 'default' => ($item['key'] == 'field_button_reset' ) ? 'none':'',
1762 1785 'selectors' => [
1763 1786 $item['selector_hide'] => 'display: {{VALUE}};',
@@ -2124,8 +2147,11 @@
2124 2147 wp_enqueue_script( 'ion.range-slider' );
2125 2148 wp_enqueue_style('ion.range-slider');
2126 2149 wp_enqueue_style('wdk-slider-range');
2127 2150 wp_enqueue_script('wdk-slider-range');
2151 +
2152 + wp_enqueue_style('jquery-confirm');
2153 + wp_enqueue_script('jquery-confirm');
2128 2154
2129 2155 wp_enqueue_style( 'wdk-treefield-checkboxes');
2130 2156 wp_enqueue_script( 'wdk-treefield-checkboxes');
2131 2157