PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / trunk
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution vtrunk
2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 1.7.2 All 33 releases
← All changes | app/Services/GlobalModules/GlobalModules.php +33 -14 1.5.21trunk View file →
@@ -14,13 +14,12 @@
14 14 }
15 15
16 16 public function addMenuItem($items)
17 17 {
18 - $app = App::getInstance();
19 18 $items['global_modules'] = [
20 19 'title' => __('Advanced Features & Addons', 'fluent-booking'),
21 20 'disable' => false,
22 - 'icon_url' => $app['url.assets'] . 'images/checklist.svg',
21 + 'svg_icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" id="checklist"><path d="M61,18.34A3.43,3.43,0,0,0,59.76,16l-1.91-1.6a3.48,3.48,0,0,0-4.9.43l-2.4,2.85L47,21.9V11.83a3,3,0,0,0-.88-2.12L39.29,2.88A3,3,0,0,0,37.17,2H6A3,3,0,0,0,3,5V59a3,3,0,0,0,3,3H44a3,3,0,0,0,3-3V37a.93.93,0,0,0-.07-.33L60.19,20.88A3.48,3.48,0,0,0,61,18.34ZM45,59a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V5A1,1,0,0,1,6,4H37v7a1,1,0,0,0,1,1h7V24a1,1,0,0,0,0,.23L32.2,39.54a.93.93,0,0,0-.2.38s0,0,0,0l-1.93,8.1a1,1,0,0,0,.33,1,1,1,0,0,0,.64.24,1.14,1.14,0,0,0,.4-.08l7.64-3.32h0a1,1,0,0,0,.36-.27L45,39ZM38.55,43.56l-4.18-3.5L51.44,19.71l4.18,3.51Z"/><path d="M22 14H33a1 1 0 0 0 0-2H22a1 1 0 0 0 0 2zM21 26H39a1 1 0 0 0 0-2H21a1 1 0 0 0 0 2zM31 37a1 1 0 0 0-1-1H21a1 1 0 0 0 0 2h9A1 1 0 0 0 31 37zM17 33H11a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V34A1 1 0 0 0 17 33zm-1 6H12V35h4zM27 48H21a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2zM17 45H11a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V46A1 1 0 0 0 17 45zm-1 6H12V47h4zM13.29 28.71A1 1 0 0 0 14 29h.16a1 1 0 0 0 .73-.54l3-6a1 1 0 1 0-1.78-.9l-2.38 4.76-2-2a1 1 0 0 0-1.42 1.42zM13.29 16.71A1 1 0 0 0 14 17h.16a1 1 0 0 0 .73-.54l3-6a1 1 0 1 0-1.78-.9l-2.38 4.76-2-2a1 1 0 0 0-1.42 1.42z"/></svg>',
23 22 'component_type' => 'StandAloneComponent',
24 23 'class' => 'advanced_features_and_addons',
25 24 'route' => [
26 25 'name' => 'globalModules'
@@ -34,16 +33,17 @@
34 33 {
35 34 $assetUrl = App::getInstance('url.assets');
36 35 $settings = Helper::getGlobalModuleSettings();
37 36 return apply_filters('fluent_booking/global_modules', [
38 - 'woo' => [
39 - 'logo' => $assetUrl . 'images/woo.svg',
40 - 'name' => 'woo',
41 - 'title' => __('WooCommerce', 'fluent-booking'),
42 - 'description' => __('Accept payment on your booking appointment with WooCommerce Checkout', 'fluent-booking'),
43 - 'is_unavailable' => !defined('WC_PLUGIN_FILE'),
44 - 'is_system' => 'no',
45 - 'is_active' => Arr::get($settings, 'woocommerce') == 'yes',
37 + 'fluent-cart' => [
38 + 'logo' => $assetUrl . 'images/fluent-cart.svg',
39 + 'name' => 'fluent-cart',
40 + 'title' => __('FluentCart', 'fluent-booking'),
41 + 'description' => __('Seamlessly integrate FluentCart to sell paid bookings and manage products directly from your appointments.', 'fluent-booking'),
42 + 'is_unavailable' => !defined('FLUENTCART_VERSION'),
43 + 'install_url' => admin_url('plugin-install.php?s=FluentCart&tab=search&type=term'),
44 + 'is_system' => 'yes',
45 + 'is_active' => defined('FLUENTCART_VERSION')
46 46 ],
47 47 'fluentcrm' => [
48 48 'logo' => $assetUrl . 'images/fluentcrm.svg',
49 49 'name' => 'fluentcrm',
@@ -48,9 +48,9 @@
48 48 'logo' => $assetUrl . 'images/fluentcrm.svg',
49 49 'name' => 'fluentcrm',
50 50 'title' => __('FluentCRM', 'fluent-booking'),
51 51 'description' => __('Segment your guests, send bulk emails, run automations using FluentCRM', 'fluent-booking'),
52 - 'is_unavailable' => defined('FLUENTCRM'),
52 + 'is_unavailable' => !defined('FLUENTCRM'),
53 53 'install_url' => admin_url('plugin-install.php?s=FluentCRM&tab=search&type=term'),
54 54 'is_system' => 'yes',
55 55 'is_active' => defined('FLUENTCRM')
56 56 ],
@@ -58,22 +58,41 @@
58 58 'logo' => $assetUrl . 'images/fluentform.png',
59 59 'name' => 'fluentform',
60 60 'title' => __('Fluent Forms', 'fluent-booking'),
61 61 'description' => __('Create beautiful booking forms using Fluent Forms with your booking field', 'fluent-booking'),
62 - 'is_unavailable' => defined('FLUENTFORM'),
62 + 'is_unavailable' => !defined('FLUENTFORM'),
63 63 'install_url' => admin_url('plugin-install.php?s=Fluent%20Forms&tab=search&type=term'),
64 64 'is_system' => 'yes',
65 65 'is_active' => defined('FLUENTFORM')
66 66 ],
67 + 'fluentsmtp' => [
68 + 'logo' => $assetUrl . 'images/fluent-smtp.svg',
69 + 'name' => 'fluentsmtp',
70 + 'title' => __('FluentSMTP', 'fluent-booking'),
71 + 'description' => __('Send emails using FluentSMTP with your booking field', 'fluent-booking'),
72 + 'is_unavailable' => !defined('FLUENTMAIL'),
73 + 'install_url' => admin_url('plugin-install.php?s=FluentSMTP&tab=search&type=term'),
74 + 'is_system' => 'yes',
75 + 'is_active' => defined('FLUENTMAIL'),
76 + ],
67 77 'fluentboards' => [
68 78 'logo' => $assetUrl . 'images/fluentboards.png',
69 79 'name' => 'fluentboards',
70 80 'title' => __('Fluent Boards', 'fluent-booking'),
71 81 'description' => __('Seamlessly create tasks in Fluent Boards using your booking field', 'fluent-booking'),
72 - 'is_unavailable' => defined('FLUENT_BOARDS'),
82 + 'is_unavailable' => !defined('FLUENT_BOARDS'),
73 83 'install_url' => admin_url('plugin-install.php?s=FluentBoards&tab=search&type=term'),
74 84 'is_system' => 'yes',
75 85 'is_active' => defined('FLUENT_BOARDS')
76 - ]
86 + ],
87 + 'woo' => [
88 + 'logo' => $assetUrl . 'images/woo.svg',
89 + 'name' => 'woo',
90 + 'title' => __('WooCommerce', 'fluent-booking'),
91 + 'description' => __('Accept payment on your booking appointment with WooCommerce Checkout', 'fluent-booking'),
92 + 'is_unavailable' => !defined('WC_PLUGIN_FILE'),
93 + 'is_system' => 'no',
94 + 'is_active' => Arr::get($settings, 'woocommerce') == 'yes',
95 + ],
77 96 ]);
78 97 }
79 98 }