is_activated(); $plugin_url = plugin_dir_url(dirname(__FILE__)); // License data $license_status = get_option('mxchat_license_status', 'inactive'); $license_email = get_option('mxchat_pro_email', ''); $license_key = get_option('mxchat_activation_key', ''); $current_domain = parse_url(home_url(), PHP_URL_HOST); $is_domain_linked = $admin_instance->is_current_activation_linked($current_domain); $license_management_url = 'https://mxchat.ai/my-account/orders/'; // Mask the license key for display $masked_key = ''; if (!empty($license_key)) { $masked_key = str_repeat('•', max(0, strlen($license_key) - 4)) . substr($license_key, -4); } // Count addon statuses $active_count = 0; $installed_count = 0; foreach ($addons_config as $slug => $addon) { $status = mxchat_get_addon_status_info($addon['plugin_file'], $addon['config_page']); if ($status['status'] === 'active') { $active_count++; $installed_count++; } elseif ($status['status'] === 'inactive') { $installed_count++; } } ?>