fix: kein weissraum unter blocker + originalgroesse nach einwilligung (v1.4.4)
Der weissraum kam nicht von meinem platzhalter, sondern vom seitenverhaeltnis- container (z. B. Elementor .e-youtube-base mit 16:9, oder wp-block-embed aspect-ratio) - das reserviert die hoehe per CSS, unabhaengig vom inhalt. - collapseAncestors(): bekannte aspect-ratio/video-wrapper um einen platzhalter werden eingeklappt (aspect-ratio/min-height/height auto !important), solange der blocker steht -> kein leerraum darunter. Laeuft fuer server-platzhalter (autodetect) und JS-gebaute (Elementor-widgets). - restoreCollapsed(): bei einwilligung wird die reservierung wieder entfernt, sodass das embed in originalgroesse laedt. - Elementor JS-widgets (e-youtube-base etc.) nutzen jetzt durchgaengig den reload-pfad bei einwilligung -> Elementor rendert das video nativ in voller originalgroesse statt eines geratenen iframes. + version 1.4.4 (assets cache-busting). 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.4.3
|
||||
* Version: 1.4.4
|
||||
* 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.3' );
|
||||
define( 'CB_VERSION', '1.4.4' );
|
||||
define( 'CB_FILE', __FILE__ );
|
||||
define( 'CB_DIR', plugin_dir_path( __FILE__ ) );
|
||||
define( 'CB_URL', plugin_dir_url( __FILE__ ) );
|
||||
|
||||
Reference in New Issue
Block a user