PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.2
YayMail – WooCommerce Email Customizer v4.4.2
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / vendor-prefixed / src / Pages / LicensesPage.php

LicensesPage.php in YayMail – WooCommerce Email Customizer 4.4.2, at vendor-prefixed/src/Pages/LicensesPage.php

35 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YayMailScoped\YayCommerce\AdminShell\Pages;
4
5 use YayMailScoped\YayCommerce\AdminShell\Support\AdminContext;
6 /**
7 * Renders the Licenses admin page.
8 * Ported from YayMail Pro LicensesMenu.php.
9 * @internal
10 */
11 class LicensesPage
12 {
13 public static function render() : void
14 {
15 // Exposed to the included view so it can show a per-site notice in
16 // Network Admin (license keys are stored/activated per site).
17 $is_network = AdminContext::is_network();
18 ?>
19 <script>
20 document.querySelector("#wpbody-content").innerHTML = "";
21 </script>
22 <?php
23 include __DIR__ . '/../../views/licenses-page.php';
24 }
25 public static function load_data() : void
26 {
27 add_action('admin_enqueue_scripts', [self::class, 'enqueue_scripts']);
28 }
29 public static function enqueue_scripts() : void
30 {
31 $assets_url = \plugin_dir_url(__FILE__) . '../../assets/';
32 wp_enqueue_style('yaycommerce-licenses', $assets_url . 'css/licenses.css', [], '1.0');
33 }
34 }
35