fix: YouTube-Elementor-widget laedt video wieder zuverlaessig (v1.4.6)

Der reload-ansatz aus 1.4.4 fuer e-youtube-base war unzuverlaessig (Elementor
rendert nach reload nicht sicher nativ). Zurueck zum direkten weg: aus dem
"source"-key habe ich die embed-URL -> ich baue das iframe bei einwilligung
selbst (unabhaengig von Elementor/iframe_api). Das iframe bekommt eine
responsive 16:9-aspect-ratio (data-cb-aspect) und laedt damit voll und in
originalproportionen, auch ohne definite parent-hoehe.

Reload-pfad bleibt nur fuer den fall ganz ohne URL (video_type-fallback).
Weissraum-einklappen unveraendert. node --check ok.

+ version 1.4.6.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
s4luorth
2026-06-08 13:42:00 +02:00
parent ad7aad1b74
commit 6c034ed714
2 changed files with 24 additions and 10 deletions

View File

@@ -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.4.5
* Version: 1.4.6
* 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.4.5' );
define( 'CB_VERSION', '1.4.6' );
define( 'CB_FILE', __FILE__ );
define( 'CB_DIR', plugin_dir_path( __FILE__ ) );
define( 'CB_URL', plugin_dir_url( __FILE__ ) );