PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.86
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.86
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 51.1.45 All 40 releases
← All changes | includes/widgets/Facet_Search/Facet_Search.php +18 -4 51.1.78 → 51.1.86 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.
@@ -97,9 +107,9 @@
97 107 {
98 108 $this->start_controls_section(
99 109 'kng_facet_search_section',
100 110 [
101 - 'label' => KING_ADDONS_ELEMENTOR_ICON . esc_html__('Facet Search', 'king-addons'),
111 + 'label' => KING_ADDONS_ELEMENTOR_ICON . esc_html__('Search Filter', 'king-addons'),
102 112 'tab' => Controls_Manager::TAB_CONTENT,
103 113 ]
104 114 );
105 115
@@ -105,11 +115,12 @@
105 115
106 116 $this->add_control(
107 117 'kng_filters_query_id',
108 118 [
109 - 'label' => esc_html__('Filter Query ID', 'king-addons'),
119 + 'label' => esc_html__('Shop Filters ID', 'king-addons'),
110 120 'type' => Controls_Manager::TEXT,
111 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'),
112 123 ]
113 124 );
114 125
115 126 $this->add_control(
@@ -121,8 +132,11 @@
121 132 ]
122 133 );
123 134
124 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');
125 139 }
126 140
127 141 /**
128 142 * Render widget output.