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 +46 -8 1.5.3 → 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,
@@ -248,8 +262,20 @@
248 262 '{{WRAPPER}} .wdk-field-group-additional' => 'display: {{VALUE}};',
249 263 ],
250 264 ]
251 265 );
266 +
267 + $this->add_control(
268 + 'section_more_before_buttons',
269 + [
270 + 'label' => __( 'Show Additional Fields Before Search Buttons', 'wpdirectorykit' ),
271 + 'type' => Controls_Manager::SWITCHER,
272 + 'label_on' => __( 'Yes', 'wpdirectorykit' ),
273 + 'label_off' => __( 'None', 'wpdirectorykit' ),
274 + 'return_value' => 'yes',
275 + 'default' => '',
276 + ]
277 + );
252 278
253 279 $this->add_control(
254 280 'section_config_more_limit',
255 281 [
@@ -306,9 +332,9 @@
306 332
307 333 $this->add_control(
308 334 'field_button_icon',
309 335 [
310 - 'label' => __( 'Icon', 'text-domain' ),
336 + 'label' => __( 'Icon', 'wpdirectorykit' ),
311 337 'type' => Controls_Manager::ICONS,
312 338 ]
313 339 );
314 340
@@ -314,13 +340,13 @@
314 340
315 341 $this->add_control(
316 342 'field_button_icon_position',
317 343 [
318 - 'label' => esc_html__('icon Position', 'wdk-compare-listing'),
344 + 'label' => esc_html__('icon Position', 'wpdirectorykit'),
319 345 'type' => Controls_Manager::SELECT,
320 346 'options' => [
321 - 'left' => esc_html__('Left', 'wdk-compare-listing'),
322 - 'right' => esc_html__('Right', 'wdk-compare-listing'),
347 + 'left' => esc_html__('Left', 'wpdirectorykit'),
348 + 'right' => esc_html__('Right', 'wpdirectorykit'),
323 349 ],
324 350 'default' => 'left',
325 351 ]
326 352 );
@@ -388,8 +414,9 @@
388 414 'important_note',
389 415 [
390 416 'label' => '',
391 417 'type' => \Elementor\Controls_Manager::RAW_HTML,
418 + /* translators: 1: URL. */
392 419 'raw' => wdk_sprintf(__( 'Manage Search Form <a href="%1$s" target="_blank"> open </a>', 'wpdirectorykit' ), admin_url('admin.php?page=wdk_searchform')),
393 420 'content_classes' => 'wdk_elementor_hint',
394 421 'separator' => 'after',
395 422 ]
@@ -1613,8 +1640,16 @@
1613 1640 'selector_hover'=>'{{WRAPPER}} .wdk-field button.wdk-search-start.wdk-search-reset%1$s',
1614 1641 'options'=>['typo','color','border','border_radius','shadow','transition','background_group'],
1615 1642 ],
1616 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 + [
1617 1652 'key'=>'field_button_more',
1618 1653 'label'=> esc_html__('Button More', 'wpdirectorykit'),
1619 1654 'selector_hide'=>'{{WRAPPER}} .wdk-field .wdk-field-group-additional',
1620 1655 'selector'=>'{{WRAPPER}} .wdk-field button.wdk-search-additional-btn',
@@ -1740,12 +1775,12 @@
1740 1775 if(!empty($item['selector_hide'])) {
1741 1776 $this->add_responsive_control(
1742 1777 $item['key'].'_hide',
1743 1778 [
1744 - 'label' => esc_html__( 'Hide Element', 'wdk-svg-map' ),
1779 + 'label' => esc_html__( 'Hide Element', 'wpdirectorykit' ),
1745 1780 'type' => Controls_Manager::SWITCHER,
1746 - 'none' => esc_html__( 'Hide', 'wdk-svg-map' ),
1747 - 'block' => esc_html__( 'Show', 'wdk-svg-map' ),
1781 + 'none' => esc_html__( 'Hide', 'wpdirectorykit' ),
1782 + 'block' => esc_html__( 'Show', 'wpdirectorykit' ),
1748 1783 'return_value' => 'none',
1749 1784 'default' => ($item['key'] == 'field_button_reset' ) ? 'none':'',
1750 1785 'selectors' => [
1751 1786 $item['selector_hide'] => 'display: {{VALUE}};',
@@ -2112,8 +2147,11 @@
2112 2147 wp_enqueue_script( 'ion.range-slider' );
2113 2148 wp_enqueue_style('ion.range-slider');
2114 2149 wp_enqueue_style('wdk-slider-range');
2115 2150 wp_enqueue_script('wdk-slider-range');
2151 +
2152 + wp_enqueue_style('jquery-confirm');
2153 + wp_enqueue_script('jquery-confirm');
2116 2154
2117 2155 wp_enqueue_style( 'wdk-treefield-checkboxes');
2118 2156 wp_enqueue_script( 'wdk-treefield-checkboxes');
2119 2157