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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user