PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.27
Booktics – Appointment Booking Calendar for Service Businesses v1.0.27
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 +11 -2 1.0.15 → 1.0.27 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
@@ -67,9 +75,10 @@
67 75 'wp-components',
68 76 'wp-compose',
69 77 'wp-i18n',
70 78 'wp-element',
71 - 'wp-data'
79 + 'wp-data',
80 + 'wp-hooks',
72 81 ],
73 82 'in_footer' => true,
74 83 ],
75 84 ];
@@ -144,10 +153,10 @@
144 153 color: "#22B855",
145 154 });
146 155 window.Beacon('init', '0f1a82db-0aa9-4bac-accc-ee1bb81d4940');
147 156 window.Beacon('on', 'ready', function() {
148 - window.Beacon('show');
157 + window.Beacon('close');
149 158 });
150 159 </script>
151 160 <?php
152 161 }
153 162 }