int, 'limit' => int|null, 'remaining' => int|null, 'tier' => string|null] // limit === null means unlimited (Agency or grandfathered). $htel_usage = HTEL_License::get_usage(); $htel_tier = HTEL_License::get_tier(); ?>

—

' . esc_html($htel_tier) . '' ); ?>

0 → normal: "N / M used this month" // 3. remaining = 0 → at cap: red warning + link to upgrade $htel_used = isset($htel_usage['used']) ? (int) $htel_usage['used'] : 0; $htel_limit = array_key_exists('limit', $htel_usage) ? $htel_usage['limit'] : null; $htel_rem = array_key_exists('remaining', $htel_usage) ? $htel_usage['remaining'] : null; ?>

' . esc_html__('unlimited', 'aitoel-html-importer') . ''; ?>

0) : ?>

0 ? max(0, $htel_domains_limit - $htel_count) : 0; $htel_domain_tags = array(); foreach ($htel_all_domains as $htel_d) { $htel_domain_tags[] = '' . esc_html($htel_d) . ''; } if ($htel_domains_limit > 0) { // Capped tier — "X of Y allowed sites: ..." $htel_prefix = sprintf( /* translators: 1: number of sites used, 2: max sites allowed */ esc_html__('Active on %1$d of %2$d allowed sites: ', 'aitoel-html-importer'), (int) $htel_count, (int) $htel_domains_limit ); } else { // Unlimited tier — "Active on N site(s): ..." $htel_prefix = sprintf( /* translators: %d: number of sites the license is active on */ esc_html(_n('Active on %d site: ', 'Active on %d sites: ', $htel_count, 'aitoel-html-importer')), (int) $htel_count ); } ?>

array()) ); ?> 0) : ?>
0 && $htel_remaining === 0) : ?>


·