PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.0
Forumax – AI Powered Advanced Community Forum Plugin v2.5.0
2.5.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 All 30 releases
← All changes | includes/Elementor/Search.php +122 -3 2.4.4 → 2.5.0 View file →
@@ -29,9 +29,9 @@
29 29 return [ 'ama-core-style', 'bbpc-el-widgets' ];
30 30 }
31 31
32 32 public function get_script_depends() {
33 - return [ 'bbpc-frontend-js', 'bbpc-frontend-js' ];
33 + return [ 'bbpc-frontend' ];
34 34 }
35 35
36 36 public function get_categories() {
37 37 return [ 'forumax' ];
@@ -76,9 +76,9 @@
76 76 'label' => esc_html__( 'AJAX Live Search', 'forumax' ),
77 77 'description' => esc_html__( 'Show search results instantly as users type without page reload.', 'forumax' ),
78 78 'type' => Controls_Manager::SWITCHER,
79 79 'return_value' => 'yes',
80 - 'default' => '',
80 + 'default' => 'yes',
81 81 ]
82 82 );
83 83
84 84 $this->add_control(
@@ -112,9 +112,9 @@
112 112 'label' => __( 'Submit Button Icon', 'forumax' ),
113 113 'type' => \Elementor\Controls_Manager::ICONS,
114 114 'default' => [
115 115 'value' => 'fas fa-search',
116 - 'library' => 'solid',
116 + 'library' => 'fa-solid',
117 117 ],
118 118 'condition' => [
119 119 'submit_btn_type' => 'icon'
120 120 ]
@@ -577,8 +577,127 @@
577 577 'size_units' => [ 'px', '%', 'em' ],
578 578 'selectors' => [ '{{WRAPPER}} .bbpc-search-keyword ul li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ],
579 579 'default' => [
580 580 'unit' => 'px',
581 + ],
582 + ]
583 + );
584 +
585 + $this->end_controls_section();
586 +
587 + /**
588 + * Style — AJAX Search Results
589 + */
590 + $this->start_controls_section(
591 + 'style_search_results', [
592 + 'label' => esc_html__( 'Search Results', 'forumax' ),
593 + 'tab' => Controls_Manager::TAB_STYLE,
594 + 'condition' => [
595 + 'is_ajax_search' => 'yes',
596 + ],
597 + ]
598 + );
599 +
600 + $this->add_control(
601 + 'results_heading_panel', [
602 + 'label' => esc_html__( 'Panel', 'forumax' ),
603 + 'type' => Controls_Manager::HEADING,
604 + ]
605 + );
606 +
607 + $this->add_control(
608 + 'results_bg_color', [
609 + 'label' => esc_html__( 'Background Color', 'forumax' ),
610 + 'type' => Controls_Manager::COLOR,
611 + 'selectors' => [
612 + '{{WRAPPER}} .bbpc-search-result-container' => 'background-color: {{VALUE}};',
613 + ],
614 + ]
615 + );
616 +
617 + $this->add_group_control(
618 + Group_Control_Border::get_type(), [
619 + 'name' => 'results_border',
620 + 'label' => esc_html__( 'Border', 'forumax' ),
621 + 'selector' => '{{WRAPPER}} .bbpc-search-result-container',
622 + ]
623 + );
624 +
625 + $this->add_responsive_control(
626 + 'results_border_radius', [
627 + 'label' => esc_html__( 'Border Radius', 'forumax' ),
628 + 'type' => Controls_Manager::DIMENSIONS,
629 + 'size_units' => [ 'px', '%', 'em' ],
630 + 'selectors' => [
631 + '{{WRAPPER}} .bbpc-search-result-container' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
632 + ],
633 + ]
634 + );
635 +
636 + $this->add_control(
637 + 'results_heading_items', [
638 + 'label' => esc_html__( 'Result Items', 'forumax' ),
639 + 'type' => Controls_Manager::HEADING,
640 + 'separator' => 'before',
641 + ]
642 + );
643 +
644 + $this->add_control(
645 + 'results_title_color', [
646 + 'label' => esc_html__( 'Title Color', 'forumax' ),
647 + 'type' => Controls_Manager::COLOR,
648 + 'selectors' => [
649 + '{{WRAPPER}} .bbpc-search-result-container .bbpc-result-title' => 'color: {{VALUE}};',
650 + ],
651 + ]
652 + );
653 +
654 + $this->add_control(
655 + 'results_meta_color', [
656 + 'label' => esc_html__( 'Meta Color', 'forumax' ),
657 + 'type' => Controls_Manager::COLOR,
658 + 'selectors' => [
659 + '{{WRAPPER}} .bbpc-search-result-container .bbpc-result-type' => 'color: {{VALUE}};',
660 + '{{WRAPPER}} .bbpc-search-result-container .bbpc-breadcrumb-item' => 'color: {{VALUE}};',
661 + '{{WRAPPER}} .bbpc-search-result-container .bbpc-result-icon' => 'color: {{VALUE}};',
662 + ],
663 + ]
664 + );
665 +
666 + $this->add_control(
667 + 'results_hover_bg', [
668 + 'label' => esc_html__( 'Hover Background', 'forumax' ),
669 + 'type' => Controls_Manager::COLOR,
670 + 'selectors' => [
671 + '{{WRAPPER}} .bbpc-search-result-container .search-result-item:hover' => 'background-color: {{VALUE}};',
672 + ],
673 + ]
674 + );
675 +
676 + $this->add_control(
677 + 'results_heading_empty', [
678 + 'label' => esc_html__( 'Empty State', 'forumax' ),
679 + 'type' => Controls_Manager::HEADING,
680 + 'separator' => 'before',
681 + ]
682 + );
683 +
684 + $this->add_control(
685 + 'results_empty_title_color', [
686 + 'label' => esc_html__( 'Title Color', 'forumax' ),
687 + 'type' => Controls_Manager::COLOR,
688 + 'selectors' => [
689 + '{{WRAPPER}} .bbpc-search-result-container .bbpc-not-found-text' => 'color: {{VALUE}};',
690 + ],
691 + ]
692 + );
693 +
694 + $this->add_control(
695 + 'results_empty_hint_color', [
696 + 'label' => esc_html__( 'Hint Color', 'forumax' ),
697 + 'type' => Controls_Manager::COLOR,
698 + 'selectors' => [
699 + '{{WRAPPER}} .bbpc-search-result-container .bbpc-search-empty-hint' => 'color: {{VALUE}};',
581 700 ],
582 701 ]
583 702 );
584 703