| @@ -5,13 +5,12 @@ | ||
| 5 | 5 | use YayMailScoped\YayCommerce\AdminShell\Support\AdminContext; |
| 6 | 6 | /** |
| 7 | 7 | * Renders the Licenses admin page. |
| 8 | 8 | * Ported from YayMail Pro LicensesMenu.php. |
| 9 | - * @internal | |
| 10 | 9 | */ |
| 11 | 10 | class LicensesPage |
| 12 | 11 | { |
| 13 | - public static function render() : void | |
| 12 | + public static function render(): void | |
| 14 | 13 | { |
| 15 | 14 | // Exposed to the included view so it can show a per-site notice in |
| 16 | 15 | // Network Admin (license keys are stored/activated per site). |
| 17 | 16 | $is_network = AdminContext::is_network(); |
| @@ -21,14 +20,14 @@ | ||
| 21 | 20 | </script> |
| 22 | 21 | <?php |
| 23 | 22 | include __DIR__ . '/../../views/licenses-page.php'; |
| 24 | 23 | } |
| 25 | - public static function load_data() : void | |
| 24 | + public static function load_data(): void | |
| 26 | 25 | { |
| 27 | 26 | add_action('admin_enqueue_scripts', [self::class, 'enqueue_scripts']); |
| 28 | 27 | } |
| 29 | - public static function enqueue_scripts() : void | |
| 28 | + public static function enqueue_scripts(): void | |
| 30 | 29 | { |
| 31 | - $assets_url = \plugin_dir_url(__FILE__) . '../../assets/'; | |
| 30 | + $assets_url = plugin_dir_url(__FILE__) . '../../assets/'; | |
| 32 | 31 | wp_enqueue_style('yaycommerce-licenses', $assets_url . 'css/licenses.css', [], '1.0'); |
| 33 | 32 | } |
| 34 | 33 | } |