PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 1.5.21
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v1.5.21
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
fluent-booking / app / Services / GlobalModules / GlobalModules.php

GlobalModules.php in Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution 1.5.21, at app/Services/GlobalModules/GlobalModules.php

80 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentBooking\App\Services\GlobalModules;
4
5 use FluentBooking\App\App;
6 use FluentBooking\App\Services\Helper;
7 use FluentBooking\Framework\Support\Arr;
8
9 class GlobalModules
10 {
11 public function register()
12 {
13 add_filter('fluent_booking/settings_menu_items', [$this, 'addMenuItem'], 20);
14 }
15
16 public function addMenuItem($items)
17 {
18 $app = App::getInstance();
19 $items['global_modules'] = [
20 'title' => __('Advanced Features & Addons', 'fluent-booking'),
21 'disable' => false,
22 'icon_url' => $app['url.assets'] . 'images/checklist.svg',
23 'component_type' => 'StandAloneComponent',
24 'class' => 'advanced_features_and_addons',
25 'route' => [
26 'name' => 'globalModules'
27 ]
28 ];
29
30 return $items;
31 }
32
33 public function getAllModules()
34 {
35 $assetUrl = App::getInstance('url.assets');
36 $settings = Helper::getGlobalModuleSettings();
37 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',
46 ],
47 'fluentcrm' => [
48 'logo' => $assetUrl . 'images/fluentcrm.svg',
49 'name' => 'fluentcrm',
50 'title' => __('FluentCRM', 'fluent-booking'),
51 'description' => __('Segment your guests, send bulk emails, run automations using FluentCRM', 'fluent-booking'),
52 'is_unavailable' => defined('FLUENTCRM'),
53 'install_url' => admin_url('plugin-install.php?s=FluentCRM&tab=search&type=term'),
54 'is_system' => 'yes',
55 'is_active' => defined('FLUENTCRM')
56 ],
57 'fluentform' => [
58 'logo' => $assetUrl . 'images/fluentform.png',
59 'name' => 'fluentform',
60 'title' => __('Fluent Forms', 'fluent-booking'),
61 'description' => __('Create beautiful booking forms using Fluent Forms with your booking field', 'fluent-booking'),
62 'is_unavailable' => defined('FLUENTFORM'),
63 'install_url' => admin_url('plugin-install.php?s=Fluent%20Forms&tab=search&type=term'),
64 'is_system' => 'yes',
65 'is_active' => defined('FLUENTFORM')
66 ],
67 'fluentboards' => [
68 'logo' => $assetUrl . 'images/fluentboards.png',
69 'name' => 'fluentboards',
70 'title' => __('Fluent Boards', 'fluent-booking'),
71 'description' => __('Seamlessly create tasks in Fluent Boards using your booking field', 'fluent-booking'),
72 'is_unavailable' => defined('FLUENT_BOARDS'),
73 'install_url' => admin_url('plugin-install.php?s=FluentBoards&tab=search&type=term'),
74 'is_system' => 'yes',
75 'is_active' => defined('FLUENT_BOARDS')
76 ]
77 ]);
78 }
79 }
80