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 +23 -8 1.5.7 → 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 ]
@@ -1760,12 +1775,12 @@
1760 1775 if(!empty($item['selector_hide'])) {
1761 1776 $this->add_responsive_control(
1762 1777 $item['key'].'_hide',
1763 1778 [
1764 - 'label' => esc_html__( 'Hide Element', 'wdk-svg-map' ),
1779 + 'label' => esc_html__( 'Hide Element', 'wpdirectorykit' ),
1765 1780 'type' => Controls_Manager::SWITCHER,
1766 - 'none' => esc_html__( 'Hide', 'wdk-svg-map' ),
1767 - 'block' => esc_html__( 'Show', 'wdk-svg-map' ),
1781 + 'none' => esc_html__( 'Hide', 'wpdirectorykit' ),
1782 + 'block' => esc_html__( 'Show', 'wpdirectorykit' ),
1768 1783 'return_value' => 'none',
1769 1784 'default' => ($item['key'] == 'field_button_reset' ) ? 'none':'',
1770 1785 'selectors' => [
1771 1786 $item['selector_hide'] => 'display: {{VALUE}};',