PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 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.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
← All changes | includes/Elementor/Search.php +56 -56 1.4.12.2.0 View file →
@@ -15,11 +15,11 @@
15 15 class Search extends Widget_Base {
16 16 public function get_name() {
17 17 return 'ama_search';
18 18 }
19 -
19 +
20 20 public function get_title() {
21 - return esc_html__( 'BBPC Search', 'bbp-core' );
21 + return esc_html__( 'Forumax Search', 'forumax' );
22 22 }
23 23
24 24 public function get_icon() {
25 25 return 'bbpc_icon_ama_search';
@@ -33,9 +33,9 @@
33 33 return [ 'bbpc-frontend-js', 'bbpc-frontend-js' ];
34 34 }
35 35
36 36 public function get_categories() {
37 - return [ 'bbp-core' ];
37 + return [ 'forumax' ];
38 38 }
39 39
40 40 protected function register_controls() {
41 41
@@ -40,15 +40,15 @@
40 40 protected function register_controls() {
41 41
42 42 $this->start_controls_section(
43 43 'search_form_sec', [
44 - 'label' => esc_html__( 'Form', 'bbp-core' ),
44 + 'label' => esc_html__( 'Form', 'forumax' ),
45 45 ]
46 46 );
47 47
48 48 $this->add_control(
49 49 'placeholder', [
50 - 'label' => esc_html__( 'Placeholder', 'bbp-core' ),
50 + 'label' => esc_html__( 'Placeholder', 'forumax' ),
51 51 'type' => Controls_Manager::TEXT,
52 52 'label_block' => true,
53 53 'default' => 'Search for Topics....',
54 54 ]
@@ -56,14 +56,14 @@
56 56
57 57 // select controls
58 58 $this->add_control(
59 59 'submit_btn_type', [
60 - 'label' => __( 'Search Type', 'bbp-core' ),
60 + 'label' => __( 'Search Type', 'forumax' ),
61 61 'type' => \Elementor\Controls_Manager::SELECT,
62 62 'default' => 'icon',
63 63 'options' => [
64 - 'icon' => __( 'Icon', 'bbp-core' ),
65 - 'text' => __( 'Text', 'bbp-core' )
64 + 'icon' => __( 'Icon', 'forumax' ),
65 + 'text' => __( 'Text', 'forumax' )
66 66 ],
67 67 ]
68 68 );
69 69
@@ -68,9 +68,9 @@
68 68 );
69 69
70 70 $this->add_control(
71 71 'submit_btn_icon', [
72 - 'label' => __( 'Submit Button Icon', 'bbp-core' ),
72 + 'label' => __( 'Submit Button Icon', 'forumax' ),
73 73 'type' => \Elementor\Controls_Manager::ICONS,
74 74 'default' => [
75 75 'value' => 'fas fa-search',
76 76 'library' => 'solid',
@@ -82,12 +82,12 @@
82 82 );
83 83
84 84 $this->add_control(
85 85 'submit_btn_text', [
86 - 'label' => esc_html__( 'Submit Button Text', 'bbp-core' ),
86 + 'label' => esc_html__( 'Submit Button Text', 'forumax' ),
87 87 'type' => Controls_Manager::TEXT,
88 88 'label_block' => true,
89 - 'default' => __( 'Search', 'bbp-core' ),
89 + 'default' => __( 'Search', 'forumax' ),
90 90 'condition' => [
91 91 'submit_btn_type' => 'text'
92 92 ]
93 93 ]
@@ -94,17 +94,17 @@
94 94 );
95 95
96 96 $this->add_control(
97 97 'submit_btn_align', [
98 - 'label' => __( 'Submit Alignment', 'bbp-core' ),
98 + 'label' => __( 'Submit Alignment', 'forumax' ),
99 99 'type' => \Elementor\Controls_Manager::CHOOSE,
100 100 'options' => [
101 101 'right' => [
102 - 'title' => __( 'Left', 'bbp-core' ),
102 + 'title' => __( 'Left', 'forumax' ),
103 103 'icon' => 'fa fa-align-left',
104 104 ],
105 105 'left' => [
106 - 'title' => __( 'Right', 'bbp-core' ),
106 + 'title' => __( 'Right', 'forumax' ),
107 107 'icon' => 'fa fa-align-right',
108 108 ],
109 109 ],
110 110 'toggle' => false,
@@ -113,9 +113,9 @@
113 113 );
114 114
115 115 $this->add_control(
116 116 'is_keywords', [
117 - 'label' => esc_html__( 'Keywords', 'bbp-core' ),
117 + 'label' => esc_html__( 'Keywords', 'forumax' ),
118 118 'type' => \Elementor\Controls_Manager::SWITCHER,
119 119 'return_value' => 'yes',
120 120 'default' => 'yes',
121 121 'separator' => 'before',
@@ -124,9 +124,9 @@
124 124
125 125 $this->add_control(
126 126 'keywords_label',
127 127 [
128 - 'label' => esc_html__( 'Keywords Label', 'bbp-core' ),
128 + 'label' => esc_html__( 'Keywords Label', 'forumax' ),
129 129 'type' => Controls_Manager::TEXT,
130 130 'label_block' => true,
131 131 'default' => 'Popular:',
132 132 'condition' => [
@@ -136,21 +136,21 @@
136 136 );
137 137
138 138 $this->add_control(
139 139 'keywords_align', [
140 - 'label' => __( 'Keywords Alignment', 'bbp-core' ),
140 + 'label' => __( 'Keywords Alignment', 'forumax' ),
141 141 'type' => \Elementor\Controls_Manager::CHOOSE,
142 142 'options' => [
143 143 'left' => [
144 - 'title' => __( 'Left', 'bbp-core' ),
144 + 'title' => __( 'Left', 'forumax' ),
145 145 'icon' => 'fa fa-align-left',
146 146 ],
147 147 'center' => [
148 - 'title' => __( 'Center', 'bbp-core' ),
148 + 'title' => __( 'Center', 'forumax' ),
149 149 'icon' => 'fa fa-align-center',
150 150 ],
151 151 'right' => [
152 - 'title' => __( 'Right', 'bbp-core' ),
152 + 'title' => __( 'Right', 'forumax' ),
153 153 'icon' => 'fa fa-align-right',
154 154 ],
155 155 ],
156 156 'toggle' => false,
@@ -161,9 +161,9 @@
161 161 $keywords = new \Elementor\Repeater();
162 162
163 163 $keywords->add_control(
164 164 'title', [
165 - 'label' => __( 'Title', 'bbp-core' ),
165 + 'label' => __( 'Title', 'forumax' ),
166 166 'type' => \Elementor\Controls_Manager::TEXT,
167 167 'label_block' => true,
168 168 ]
169 169 );
@@ -170,17 +170,17 @@
170 170
171 171 $this->add_control(
172 172 'keywords',
173 173 [
174 - 'label' => __( 'Repeater List', 'bbp-core' ),
174 + 'label' => __( 'Repeater List', 'forumax' ),
175 175 'type' => \Elementor\Controls_Manager::REPEATER,
176 176 'fields' => $keywords->get_controls(),
177 177 'default' => [
178 178 [
179 - 'title' => __( 'Keyword #1', 'bbp-core' ),
179 + 'title' => __( 'Keyword #1', 'forumax' ),
180 180 ],
181 181 [
182 - 'title' => __( 'Keyword #2', 'bbp-core' ),
182 + 'title' => __( 'Keyword #2', 'forumax' ),
183 183 ],
184 184 ],
185 185 'title_field' => '{{{ title }}}',
186 186 'prevent_empty' => false,
@@ -197,9 +197,9 @@
197 197 * Global
198 198 */
199 199 $this->start_controls_section(
200 200 'style_form', [
201 - 'label' => esc_html__( 'Form', 'bbp-core' ),
201 + 'label' => esc_html__( 'Form', 'forumax' ),
202 202 'tab' => Controls_Manager::TAB_STYLE,
203 203 ]
204 204 );
205 205
@@ -204,9 +204,9 @@
204 204 );
205 205
206 206 $this->add_control(
207 207 'input_heading_form', [
208 - 'label' => esc_html__( 'Input', 'bbp-core' ),
208 + 'label' => esc_html__( 'Input', 'forumax' ),
209 209 'type' => Controls_Manager::HEADING
210 210 ]
211 211 );
212 212
@@ -211,9 +211,9 @@
211 211 );
212 212
213 213 $this->add_control(
214 214 'color_text', [
215 - 'label' => esc_html__( 'Text Color', 'bbp-core' ),
215 + 'label' => esc_html__( 'Text Color', 'forumax' ),
216 216 'type' => Controls_Manager::COLOR,
217 217 'selectors' => [
218 218 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper input' => 'color: {{VALUE}};',
219 219 ]
@@ -221,9 +221,9 @@
221 221 );
222 222
223 223 $this->add_control(
224 224 'color_placeholder', [
225 - 'label' => esc_html__( 'Placeholder Color', 'bbp-core' ),
225 + 'label' => esc_html__( 'Placeholder Color', 'forumax' ),
226 226 'type' => Controls_Manager::COLOR,
227 227 'selectors' => [
228 228 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper input::placeholder' => 'color: {{VALUE}};',
229 229 ],
@@ -232,9 +232,9 @@
232 232
233 233 $this->add_group_control(
234 234 Group_Control_Border::get_type(), [
235 235 'name' => 'input_border',
236 - 'label' => esc_html__( 'Border', 'bbp-core' ),
236 + 'label' => esc_html__( 'Border', 'forumax' ),
237 237 'selector' => '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper input',
238 238 ]
239 239 );
240 240
@@ -239,9 +239,9 @@
239 239 );
240 240
241 241 $this->add_control(
242 242 'input_bg_color', [
243 - 'label' => esc_html__( 'Background Color', 'bbp-core' ),
243 + 'label' => esc_html__( 'Background Color', 'forumax' ),
244 244 'type' => Controls_Manager::COLOR,
245 245 'selectors' => [
246 246 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper input' => 'background-color: {{VALUE}};',
247 247 ],
@@ -250,9 +250,9 @@
250 250
251 251 $this->add_group_control(
252 252 Group_Control_Typography::get_type(), [
253 253 'name' => 'typography_placeholder',
254 - 'label' => esc_html__( 'Typography', 'bbp-core' ),
254 + 'label' => esc_html__( 'Typography', 'forumax' ),
255 255 'selector' => '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper input::placeholder, .bbpc_search_form_wrapper .input-wrapper input',
256 256 ]
257 257 );
258 258
@@ -257,9 +257,9 @@
257 257 );
258 258
259 259 $this->add_responsive_control(
260 260 'input-padding', [
261 - 'label' => esc_html__( 'Padding', 'bbp-core' ),
261 + 'label' => esc_html__( 'Padding', 'forumax' ),
262 262 'type' => Controls_Manager::DIMENSIONS,
263 263 'size_units' => [ 'px', '%', 'em' ],
264 264 'selectors' => [
265 265 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper input' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
@@ -268,9 +268,9 @@
268 268 );
269 269
270 270 $this->add_responsive_control(
271 271 'input-border-radius', [
272 - 'label' => __( 'Border Radius', 'bbp-core' ),
272 + 'label' => __( 'Border Radius', 'forumax' ),
273 273 'type' => Controls_Manager::DIMENSIONS,
274 274 'size_units' => [ 'px', '%', 'em' ],
275 275 'selectors' => [
276 276 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper input' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
@@ -279,9 +279,9 @@
279 279 );
280 280
281 281 $this->add_control(
282 282 'submit_heading_form', [
283 - 'label' => esc_html__( 'Submit', 'bbp-core' ),
283 + 'label' => esc_html__( 'Submit', 'forumax' ),
284 284 'type' => Controls_Manager::HEADING,
285 285 'separator' => 'before'
286 286 ]
287 287 );
@@ -287,9 +287,9 @@
287 287 );
288 288
289 289 $this->add_control(
290 290 'color_icon', [
291 - 'label' => esc_html__( 'Button Color', 'bbp-core' ),
291 + 'label' => esc_html__( 'Button Color', 'forumax' ),
292 292 'type' => Controls_Manager::COLOR,
293 293 'selectors' => [
294 294 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper button' => 'color: {{VALUE}};',
295 295 ],
@@ -299,9 +299,9 @@
299 299
300 300 $this->add_control(
301 301 'search_bg',
302 302 [
303 - 'label' => __( 'Background', 'bbp-core' ),
303 + 'label' => __( 'Background', 'forumax' ),
304 304 'type' => \Elementor\Controls_Manager::COLOR,
305 305 'selectors' => [
306 306 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper button' => 'background: {{VALUE}}',
307 307 ],
@@ -309,9 +309,9 @@
309 309 );
310 310
311 311 $this->add_responsive_control(
312 312 'btn-padding', [
313 - 'label' => esc_html__( 'Padding', 'bbp-core' ),
313 + 'label' => esc_html__( 'Padding', 'forumax' ),
314 314 'type' => Controls_Manager::DIMENSIONS,
315 315 'size_units' => [ 'px', '%', 'em' ],
316 316 'selectors' => [
317 317 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
@@ -320,9 +320,9 @@
320 320 );
321 321
322 322 $this->add_responsive_control(
323 323 'btn-border-radius', [
324 - 'label' => __( 'Border Radius', 'bbp-core' ),
324 + 'label' => __( 'Border Radius', 'forumax' ),
325 325 'type' => Controls_Manager::DIMENSIONS,
326 326 'size_units' => [ 'px', '%', 'em' ],
327 327 'selectors' => [
328 328 '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
@@ -332,9 +332,9 @@
332 332
333 333 // slider controls
334 334 $this->add_control(
335 335 'typography_btn', [
336 - 'label' => esc_html__( 'Icon Size', 'bbp-core' ),
336 + 'label' => esc_html__( 'Icon Size', 'forumax' ),
337 337 'type' => Controls_Manager::SLIDER,
338 338 'range' => [
339 339 'px' => [
340 340 'min' => 10,
@@ -353,9 +353,9 @@
353 353
354 354 // slider controls
355 355 $this->add_control(
356 356 'submit_btn_align_left', [
357 - 'label' => esc_html__( 'Spacing', 'bbp-core' ),
357 + 'label' => esc_html__( 'Spacing', 'forumax' ),
358 358 'type' => Controls_Manager::SLIDER,
359 359 'range' => [
360 360 'px' => [
361 361 'min' => 10,
@@ -374,9 +374,9 @@
374 374
375 375 // slider controls
376 376 $this->add_control(
377 377 'submit_btn_align_right', [
378 - 'label' => esc_html__( 'Spacing', 'bbp-core' ),
378 + 'label' => esc_html__( 'Spacing', 'forumax' ),
379 379 'type' => Controls_Manager::SLIDER,
380 380 'range' => [
381 381 'px' => [
382 382 'min' => 10,
@@ -395,9 +395,9 @@
395 395 // typography controls
396 396 $this->add_group_control(
397 397 Group_Control_Typography::get_type(), [
398 398 'name' => 'typography_btn',
399 - 'label' => esc_html__( 'Typography', 'bbp-core' ),
399 + 'label' => esc_html__( 'Typography', 'forumax' ),
400 400 'condition' => [
401 401 'submit_btn_type' => 'text'
402 402 ],
403 403 'selector' => '{{WRAPPER}} .bbpc_search_form_wrapper .input-wrapper button',
@@ -407,9 +407,9 @@
407 407 $this->end_controls_section();
408 408
409 409 $this->start_controls_section(
410 410 'style_keywords', [
411 - 'label' => esc_html__( 'Keywords', 'bbp-core' ),
411 + 'label' => esc_html__( 'Keywords', 'forumax' ),
412 412 'tab' => Controls_Manager::TAB_STYLE,
413 413 ]
414 414 );
415 415
@@ -414,10 +414,10 @@
414 414 );
415 415
416 416 $this->add_control(
417 417 'margin_keywords', [
418 - 'label' => __( 'Margin', 'bbp-core' ),
419 - 'description' => __( 'Margin around the keywords block', 'bbp-core' ),
418 + 'label' => __( 'Margin', 'forumax' ),
419 + 'description' => __( 'Margin around the keywords block', 'forumax' ),
420 420 'type' => Controls_Manager::DIMENSIONS,
421 421 'size_units' => [ 'px', '%', 'em' ],
422 422 'selectors' => [ '{{WRAPPER}} .bbpc-search-keyword ul li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ],
423 423 'separator' => 'before',
@@ -428,9 +428,9 @@
428 428 );
429 429
430 430 $this->add_control(
431 431 'color_keywords_label', [
432 - 'label' => esc_html__( 'Label Color', 'bbp-core' ),
432 + 'label' => esc_html__( 'Label Color', 'forumax' ),
433 433 'type' => Controls_Manager::COLOR,
434 434 'selectors' => [
435 435 '{{WRAPPER}} .bbpc-search-keyword span.bbpc-search-keywords-label' => 'color: {{VALUE}};',
436 436 ],
@@ -440,9 +440,9 @@
440 440 $this->add_group_control(
441 441 \Elementor\Group_Control_Typography::get_type(),
442 442 [
443 443 'name' => 'keyword_label_typography',
444 - 'label' => __( 'Label Typography', 'bbp-core' ),
444 + 'label' => __( 'Label Typography', 'forumax' ),
445 445 'selector' => '{{WRAPPER}} .bbpc-search-keyword span.bbpc-search-keywords-label',
446 446 ]
447 447 );
448 448
@@ -452,15 +452,15 @@
452 452
453 453 $this->start_controls_tab(
454 454 'bbpc_keywords_style',
455 455 [
456 - 'label' => esc_html__( 'Normal', 'bbp-core' ),
456 + 'label' => esc_html__( 'Normal', 'forumax' ),
457 457 ]
458 458 );
459 459
460 460 $this->add_control(
461 461 'bbpc_color_keywords', [
462 - 'label' => esc_html__( 'Keyword Color', 'bbp-core' ),
462 + 'label' => esc_html__( 'Keyword Color', 'forumax' ),
463 463 'type' => Controls_Manager::COLOR,
464 464 'separator' => 'before',
465 465 'selectors' => [
466 466 '{{WRAPPER}} .bbpc-search-keyword ul li a' => 'color: {{VALUE}};',
@@ -469,9 +469,9 @@
469 469 );
470 470
471 471 $this->add_control(
472 472 'bbpc_color_keywords_bg', [
473 - 'label' => esc_html__( 'Background Color', 'bbp-core' ),
473 + 'label' => esc_html__( 'Background Color', 'forumax' ),
474 474 'type' => Controls_Manager::COLOR,
475 475 'separator' => 'after',
476 476 'selectors' => [
477 477 '{{WRAPPER}} .bbpc-search-keyword ul li a' => 'background: {{VALUE}};',
@@ -483,15 +483,15 @@
483 483
484 484 $this->start_controls_tab(
485 485 'bbpc_keywords_style_hover',
486 486 [
487 - 'label' => esc_html__( 'Hover', 'bbp-core' ),
487 + 'label' => esc_html__( 'Hover', 'forumax' ),
488 488 ]
489 489 );
490 490
491 491 $this->add_control(
492 492 'bbpc_color_keywords_hover', [
493 - 'label' => esc_html__( 'Keyword Color', 'bbp-core' ),
493 + 'label' => esc_html__( 'Keyword Color', 'forumax' ),
494 494 'type' => Controls_Manager::COLOR,
495 495 'selectors' => [
496 496 '{{WRAPPER}} .bbpc-search-keyword ul li a:hover' => 'color: {{VALUE}};',
497 497 ],
@@ -499,9 +499,9 @@
499 499 );
500 500
501 501 $this->add_control(
502 502 'bbpc_color_keywords_bg_hover', [
503 - 'label' => esc_html__( 'Background Color', 'bbp-core' ),
503 + 'label' => esc_html__( 'Background Color', 'forumax' ),
504 504 'type' => Controls_Manager::COLOR,
505 505 'selectors' => [
506 506 '{{WRAPPER}} .bbpc-search-keyword ul li a:hover' => 'background: {{VALUE}};',
507 507 ],
@@ -513,9 +513,9 @@
513 513
514 514 $this->add_group_control(
515 515 Group_Control_Typography::get_type(), [
516 516 'name' => 'typography_keywords',
517 - 'label' => esc_html__( 'Typography', 'bbp-core' ),
517 + 'label' => esc_html__( 'Typography', 'forumax' ),
518 518 'selector' => '{{WRAPPER}} .bbpc-search-keyword ul li a',
519 519 ]
520 520 );
521 521
@@ -520,9 +520,9 @@
520 520 );
521 521
522 522 $this->add_control(
523 523 'keywords_padding', [
524 - 'label' => __( 'Padding', 'bbp-core' ),
524 + 'label' => __( 'Padding', 'forumax' ),
525 525 'type' => Controls_Manager::DIMENSIONS,
526 526 'size_units' => [ 'px', '%', 'em' ],
527 527 'selectors' => [ '{{WRAPPER}} .bbpc-search-keyword ul li a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ],
528 528 'default' => [
@@ -532,9 +532,9 @@
532 532 );
533 533
534 534 $this->add_control(
535 535 'border_radius', [
536 - 'label' => __( 'Border Radius', 'bbp-core' ),
536 + 'label' => __( 'Border Radius', 'forumax' ),
537 537 'type' => Controls_Manager::DIMENSIONS,
538 538 'size_units' => [ 'px', '%', 'em' ],
539 539 'selectors' => [ '{{WRAPPER}} .bbpc-search-keyword ul li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ],
540 540 'default' => [