PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.87
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.87
51.1.87 51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 All 41 releases
← All changes | includes/widgets/Facet_Search/Facet_Search.php +24 -5 51.1.44 → 51.1.87 View file →
@@ -35,12 +35,22 @@
35 35 * @return string
36 36 */
37 37 public function get_title(): string
38 38 {
39 - return esc_html__('Facet Search', 'king-addons');
39 + return esc_html__('Search Filter', 'king-addons');
40 40 }
41 41
42 42 /**
43 + * Keywords.
44 + *
45 + * @return array<int, string>
46 + */
47 + public function get_keywords(): array
48 + {
49 + return ['shop', 'product', 'filter', 'filters', 'ajax', 'woocommerce', 'search', 'faceted', 'smart filters'];
50 + }
51 +
52 + /**
43 53 * Widget icon.
44 54 *
45 55 * @return string
46 56 */
@@ -45,9 +55,9 @@
45 55 * @return string
46 56 */
47 57 public function get_icon(): string
48 58 {
49 - return 'eicon-search';
59 + return 'king-addons-icon king-addons-facet-search';
50 60 }
51 61
52 62 /**
53 63 * Categories.
@@ -82,9 +92,14 @@
82 92 KING_ADDONS_ASSETS_UNIQUE_KEY . '-facet-search-script',
83 93 ];
84 94 }
85 95
86 - /**
96 + public function get_custom_help_url()
97 + {
98 + return 'mailto:[email protected]?subject=Bug Report - King Addons&body=Please describe the issue';
99 + }
100 +
101 + /**
87 102 * Register controls.
88 103 *
89 104 * @return void
90 105 */
@@ -92,9 +107,9 @@
92 107 {
93 108 $this->start_controls_section(
94 109 'kng_facet_search_section',
95 110 [
96 - 'label' => KING_ADDONS_ELEMENTOR_ICON . esc_html__('Facet Search', 'king-addons'),
111 + 'label' => KING_ADDONS_ELEMENTOR_ICON . esc_html__('Search Filter', 'king-addons'),
97 112 'tab' => Controls_Manager::TAB_CONTENT,
98 113 ]
99 114 );
100 115
@@ -100,11 +115,12 @@
100 115
101 116 $this->add_control(
102 117 'kng_filters_query_id',
103 118 [
104 - 'label' => esc_html__('Filter Query ID', 'king-addons'),
119 + 'label' => esc_html__('Shop Filters ID', 'king-addons'),
105 120 'type' => Controls_Manager::TEXT,
106 121 'placeholder' => esc_html__('shop_grid_1', 'king-addons'),
122 + 'description' => esc_html__('Must match the Shop Filters ID on the product grid.', 'king-addons'),
107 123 ]
108 124 );
109 125
110 126 $this->add_control(
@@ -116,8 +132,11 @@
116 132 ]
117 133 );
118 134
119 135 $this->end_controls_section();
136 +
137 + require_once KING_ADDONS_PATH . 'includes/helpers/Faceted/Style_Controls.php';
138 + Facet_Style_Controls::fields($this, '{{WRAPPER}} .king-addons-facet--search .king-addons-facet__input');
120 139 }
121 140
122 141 /**
123 142 * Render widget output.