feat: lokales Google-Fonts-Hosting + "Lizenz upgraden"-button (v1.3.0)
- Lizenz-Tab: bei vollen Plaetzen erscheint ein "Lizenz upgraden"-Button (https://lucas-orth.de/wp-plugins/gdpr-content-blocker/) zusaetzlich zur domain-freigabe. - Neues Feature "Schriften": Google Fonts lokal hosten (button-modell). Admin klickt "Jetzt herunterladen & einbinden" -> plugin scannt die seiten, laedt googleapis-CSS + gstatic-schriftdateien einmalig in den uploads-ordner, schreibt die pfade lokal um und tauscht sie per output-buffer im quelltext. Abgedeckt: <link>, inline-@import/url() UND @import/url() in gleicher-origin externen CSS-dateien (mit absolutierung der restlichen relativen pfade). preconnect/dns-prefetch zu google-font-hosts werden entfernt (kein IP-leak). Toggle zum aus/einschalten + "Lokale Schriften loeschen". - i18n-pipeline robuster: build-en-mo.py nutzt jetzt translations-en.json (lookup per quell-string, reihenfolge-unabhaengig) und bricht mit liste ab, falls eine uebersetzung fehlt. Alle neuen strings DE/EN ergaenzt (139). - version 1.3.0 (header + CB_VERSION). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Plugin Name: GDPR Content Blocker
|
||||
* Plugin URI: https://lucas-orth.de
|
||||
* Description: DSGVO-konformer Consent-Blocker für externe iframes. Lädt Drittinhalte erst nach aktiver Einwilligung.
|
||||
* Version: 1.2.0
|
||||
* Version: 1.3.0
|
||||
* Author: Lucas Orth
|
||||
* Author URI: https://lucas-orth.de
|
||||
* Text Domain: gdpr-content-blocker
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
define( 'CB_VERSION', '1.2.0' );
|
||||
define( 'CB_VERSION', '1.3.0' );
|
||||
define( 'CB_FILE', __FILE__ );
|
||||
define( 'CB_DIR', plugin_dir_path( __FILE__ ) );
|
||||
define( 'CB_URL', plugin_dir_url( __FILE__ ) );
|
||||
@@ -37,6 +37,7 @@ require_once CB_DIR . 'includes/class-renderer.php';
|
||||
require_once CB_DIR . 'includes/class-autodetect.php';
|
||||
require_once CB_DIR . 'includes/class-license.php';
|
||||
require_once CB_DIR . 'includes/class-updater.php';
|
||||
require_once CB_DIR . 'includes/class-fonts.php';
|
||||
|
||||
// Language policy: German source strings for any German locale (de_*), English
|
||||
// for everything else. We map the plugin's locale accordingly and ship an
|
||||
@@ -59,6 +60,7 @@ function cb_init(): void {
|
||||
CB_Autodetect::init();
|
||||
CB_License::init();
|
||||
CB_Updater::init();
|
||||
CB_Fonts::init();
|
||||
}
|
||||
|
||||
// Schedule / clear the daily license re-check.
|
||||
|
||||
Reference in New Issue
Block a user