feat: Werbe-Badge im content blocker (unten rechts) + abschaltbar nur mit unlimited (v1.5.0)

- Kleines Badge "GDPR Content Blocker" unten rechts im platzhalter, verlinkt
  auf die kaufseite (rel=nofollow sponsored). Server- und client-seitig.
- Wird IMMER angezeigt; abschaltbar via checkbox im Darstellung-tab
  ("Werbe-Badge ausblenden") - die checkbox ist aber nur mit aktiver
  Unlimited-lizenz nutzbar (sonst disabled) und greift am render-punkt nur,
  wenn is_unlimited() true ist.
- Dafuer speichert das plugin jetzt max_activations aus der backend-antwort
  (activate/validate/swap) und bietet is_unlimited().

+ i18n DE/EN (134 strings). version 1.5.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
s4luorth
2026-06-08 14:08:08 +02:00
parent c796400492
commit 2ef1d0769b
10 changed files with 101 additions and 11 deletions

View File

@@ -319,6 +319,18 @@
inner.appendChild( label );
wrap.appendChild( inner );
// Promo badge (bottom-right), mirrors the server-rendered placeholder.
if ( CFG.showBadge ) {
const badge = document.createElement( 'a' );
badge.className = 'cb-blocker__badge';
badge.href = 'https://lucas-orth.de/wp-plugins/gdpr-content-blocker/';
badge.target = '_blank';
badge.rel = 'noopener noreferrer nofollow sponsored';
badge.textContent = 'GDPR Content Blocker';
wrap.appendChild( badge );
}
return wrap;
}