PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / trunk
Forumax – AI Powered Advanced Community Forum Plugin vtrunk
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
bbp-core / includes / admin / Pro_El_Widget_Map.php

Pro_El_Widget_Map.php in Forumax – AI Powered Advanced Community Forum Plugin trunk, at includes/admin/Pro_El_Widget_Map.php

45 lines 977 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace admin;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 } // Exit if accessed directly
7
8 class Pro_El_Widget_Map {
9
10 public function get_pro_widget_map() {
11
12 $arr_obj = Pro_El_Widget_Service::get_widget_settings(
13 function ( $settings ) {
14 $core_widgets = $settings['settings_fields']['bbpc_active_modules'];
15
16 $arr = [];
17
18 foreach ( $core_widgets as $key => $widget ) {
19
20 if ( 'pro' == $widget['widget_type'] ) {
21
22 $ar = [
23 'categories' => [ 'forumax-pro' ],
24 'name' => $widget['name'],
25 'title' => $widget['label'],
26 'icon' => 'bbpc_icon_' . $widget['name'],
27 'action_button' => [
28 'classes' => [ 'elementor-button', 'elementor-button-success' ],
29 'text' => esc_html__( 'See it in Action', 'forumax' ),
30 'url' => esc_url( $widget['demo_url'] )
31 ],
32 ];
33
34 array_push( $arr, $ar );
35 }
36 }
37
38 return $arr;
39 }
40 );
41
42 return $arr_obj;
43 }
44 }
45