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++; } } ?>

$addon): $status = mxchat_get_addon_status_info($addon['plugin_file'], $addon['config_page']); ?>
$addon): $status = mxchat_get_addon_status_info($addon['plugin_file'], $addon['config_page']); $screenshot_url = $plugin_url . 'images/addons/' . $slug . '.png'; ?>
'active', 'action_url' => admin_url('admin.php?page=' . $config_page), 'action_text' => __('Configure', 'mxchat') ); } else { return array( 'status' => 'inactive', 'action_url' => wp_nonce_url( admin_url('plugins.php?action=activate&plugin=' . $plugin_file), 'activate-plugin_' . $plugin_file ), 'action_text' => __('Activate', 'mxchat') ); } } return array( 'status' => 'not-installed', 'action_url' => '', 'action_text' => __('Get Extension', 'mxchat') ); }