PluginProbe
Booking for Appointments and Events Calendar – Amelia / 2.4
Booking for Appointments and Events Calendar – Amelia v2.4
2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 All 59 releases
← All changes | src/Infrastructure/WP/ButtonService/ButtonService.php +0 -35 trunk2.4 View file →
@@ -9,9 +9,8 @@
9 9
10 10 use AmeliaBooking\Domain\Services\Settings\SettingsService;
11 11 use AmeliaBooking\Infrastructure\WP\HelperService\HelperService;
12 12 use AmeliaBooking\Infrastructure\WP\SettingsService\SettingsStorage;
13 -use AmeliaBooking\Infrastructure\WP\ShortcodeService\ShortcodeAliasService;
14 13 use AmeliaBooking\Infrastructure\WP\Translations\BackendStrings;
15 14
16 15 /**
17 16 * Class ButtonService
@@ -86,36 +85,10 @@
86 85
87 86 wp_enqueue_style('amelia_booking_tinymce_styles', AMELIA_URL . 'public/js/tinymce/amelia-tinymce-styles.css', array(), AMELIA_VERSION);
88 87
89 88 $settingsService = new SettingsService(new SettingsStorage());
90 - $whiteLabelPluginName = ShortcodeAliasService::getWhiteLabelPluginName($settingsService);
91 89
92 90 HelperService::exportJSVar(
93 - 'wpAmeliaPluginName',
94 - $whiteLabelPluginName
95 - );
96 -
97 - HelperService::exportJSVar(
98 - 'wpAmeliaUseNeutralShortcodes',
99 - ShortcodeAliasService::shouldUseNeutralShortcodes()
100 - );
101 -
102 - HelperService::exportJSVar(
103 - 'wpAmeliaBuilderBrandName',
104 - ShortcodeAliasService::getBuilderBrandName($settingsService)
105 - );
106 -
107 - HelperService::exportJSVar(
108 - 'wpAmeliaPluginImage',
109 - ShortcodeAliasService::getWhiteLabelPluginImage($settingsService)
110 - );
111 -
112 - HelperService::exportJSVar(
113 - 'wpAmeliaShortcodeAliases',
114 - ShortcodeAliasService::getAliases()
115 - );
116 -
117 - HelperService::exportJSVar(
118 91 'wpAmeliaDeleteSettings',
119 92 $settingsService->getSetting('activation', 'deleteTables') ? 1 : 0
120 93 );
121 94
@@ -129,16 +102,8 @@
129 102 HelperService::exportJSVar(
130 103 'wpAmeliaLabels',
131 104 BackendStrings::getAllStrings(),
132 105 );
133 -
134 - add_filter('admin_body_class', static function ($classes) use ($settingsService) {
135 - if (ShortcodeAliasService::shouldUseNeutralShortcodes($settingsService)) {
136 - $classes .= ' amelia-white-label-active';
137 - }
138 -
139 - return $classes;
140 - });
141 106
142 107 HelperService::printJSVars();
143 108 }
144 109 }