PluginProbe ʕ •ᴥ•ʔ
WP Chat App / trunk
WP Chat App vtrunk
3.8.1 3.8.2 trunk 2.6 3.4 3.4.1 3.4.2 3.4.4 3.4.5 3.4.6 3.5 3.6 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0
wp-whatsapp / vendor-prefixed / src / Pages / LicensesPage.php
wp-whatsapp / vendor-prefixed / src / Pages Last commit date
HelpPage.php 4 months ago LicensesPage.php 4 months ago RecommendedPluginsPage.php 3 months ago
LicensesPage.php
31 lines
1 <?php
2
3 namespace WhatsappScoped\YayCommerce\AdminShell\Pages;
4
5 /**
6 * Renders the Licenses admin page.
7 * Ported from YayMail Pro LicensesMenu.php.
8 * @internal
9 */
10 class LicensesPage
11 {
12 public static function render() : void
13 {
14 ?>
15 <script>
16 document.querySelector("#wpbody-content").innerHTML = "";
17 </script>
18 <?php
19 include __DIR__ . '/../../views/licenses-page.php';
20 }
21 public static function load_data() : void
22 {
23 add_action('admin_enqueue_scripts', [self::class, 'enqueue_scripts']);
24 }
25 public static function enqueue_scripts() : void
26 {
27 $assets_url = \plugin_dir_url(__FILE__) . '../../assets/';
28 wp_enqueue_style('yaycommerce-licenses', $assets_url . 'css/licenses.css', [], '1.0');
29 }
30 }
31