PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.29
Booktics – Appointment Booking Calendar for Service Businesses v1.0.29
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
← All changes | core/assets/admin-assets.php +13 -2 1.0.12 → 1.0.29 View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 2
3 3 namespace Booktics\Assets;
4 4
5 +if ( ! defined( 'ABSPATH' ) ) exit;
6 +
5 7 /**
6 8 * Manage all admin scripts and styles
7 9 */
8 10 class Admin_Assets extends Base_Assets {
@@ -29,8 +31,9 @@
29 31 $screen = get_current_screen();
30 32 if ( $screen->base !== 'toplevel_page_booktics') {
31 33 return;
32 34 }
35 + $this->enqueue_i18n_loader();
33 36 wp_enqueue_style( 'wp-color-picker' );
34 37 wp_enqueue_style( 'booktics-admin-style' );
35 38 wp_enqueue_style( 'booktics-vendor' );
36 39
@@ -40,8 +43,13 @@
40 43 wp_enqueue_script( 'booktics-dashboard-scripts' );
41 44
42 45 wp_localize_script( 'booktics-packages', 'booktics', Localize::get_admin() );
43 46 wp_localize_script( 'booktics-packages', 'booktics_enabled_modules', booktics_get_enabled_modules() );
47 +
48 + if ( function_exists( 'wp_set_script_translations' ) ) {
49 + wp_set_script_translations( 'booktics-dashboard-scripts', 'booktics' );
50 + }
51 +
44 52 }
45 53
46 54 /**
47 55 * Get all scripts
@@ -65,9 +73,12 @@
65 73 'deps' => [
66 74 'wp-api-fetch',
67 75 'wp-components',
68 76 'wp-compose',
69 - 'wp-i18n'
77 + 'wp-i18n',
78 + 'wp-element',
79 + 'wp-data',
80 + 'wp-hooks',
70 81 ],
71 82 'in_footer' => true,
72 83 ],
73 84 ];
@@ -142,10 +153,10 @@
142 153 color: "#22B855",
143 154 });
144 155 window.Beacon('init', '0f1a82db-0aa9-4bac-accc-ee1bb81d4940');
145 156 window.Beacon('on', 'ready', function() {
146 - window.Beacon('show');
157 + window.Beacon('close');
147 158 });
148 159 </script>
149 160 <?php
150 161 }
151 162 }