From d0ced7b17901423c64fdf535d16ebd9cbe6e3e1c Mon Sep 17 00:00:00 2001 From: s4luorth Date: Mon, 8 Jun 2026 13:51:56 +0200 Subject: [PATCH] fix: drittland-hinweis ohne icon/farbe + kein trennstrich beim empfaenger (v1.4.8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Drittland-hinweis: kein warn-dreieck mehr und gleiche farbe/groesse wie der restliche text (eigene zeile statt inline). CSS ::before + amber entfernt. - Der "komische strich" hinter dem empfaenger war mein " — "-trennzeichen vor dem hinweis (nicht aus den daten). Entfernt in PHP und JS; der hinweis steht jetzt sauber in der naechsten zeile. + version 1.4.8. Co-Authored-By: Claude Opus 4.8 --- gdpr-content-blocker/assets/frontend.css | 19 +++---------------- gdpr-content-blocker/assets/frontend.js | 1 - gdpr-content-blocker/gdpr-content-blocker.php | 4 ++-- .../includes/class-renderer.php | 2 +- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/gdpr-content-blocker/assets/frontend.css b/gdpr-content-blocker/assets/frontend.css index a1ba95b..f3e444e 100644 --- a/gdpr-content-blocker/assets/frontend.css +++ b/gdpr-content-blocker/assets/frontend.css @@ -55,23 +55,10 @@ } .cb-blocker .cb-blocker__third-country { - display: inline-block; + display: block; /* own line, no separator needed */ margin-top: 0.25em; - font-size: 0.8rem; - color: #f0b429; /* amber — universal caution, brand-neutral */ - font-weight: 600; -} -/* Caution marker drawn in pure CSS (no emoji → no s.w.org/emoji request). */ -.cb-blocker .cb-blocker__third-country::before { - content: ""; - display: inline-block; - width: 0; - height: 0; - margin-right: 6px; - vertical-align: -2px; - border-left: 0.45em solid transparent; - border-right: 0.45em solid transparent; - border-bottom: 0.8em solid currentColor; + font-size: 0.875rem; /* same as the rest of the text */ + color: var(--cb-text); /* same colour as the rest of the text */ } /* ── Privacy link ── */ diff --git a/gdpr-content-blocker/assets/frontend.js b/gdpr-content-blocker/assets/frontend.js index dd01202..efd51fe 100644 --- a/gdpr-content-blocker/assets/frontend.js +++ b/gdpr-content-blocker/assets/frontend.js @@ -274,7 +274,6 @@ rec.appendChild( recLabel ); rec.appendChild( document.createTextNode( svc.recipient || '' ) ); if ( svc.third_country ) { - rec.appendChild( document.createTextNode( ' — ' ) ); const tc = document.createElement( 'span' ); tc.className = 'cb-blocker__third-country'; tc.textContent = i18n.thirdCountry || ''; diff --git a/gdpr-content-blocker/gdpr-content-blocker.php b/gdpr-content-blocker/gdpr-content-blocker.php index 7b11713..ac1e565 100644 --- a/gdpr-content-blocker/gdpr-content-blocker.php +++ b/gdpr-content-blocker/gdpr-content-blocker.php @@ -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.7 + * Version: 1.4.8 * 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.7' ); +define( 'CB_VERSION', '1.4.8' ); define( 'CB_FILE', __FILE__ ); define( 'CB_DIR', plugin_dir_path( __FILE__ ) ); define( 'CB_URL', plugin_dir_url( __FILE__ ) ); diff --git a/gdpr-content-blocker/includes/class-renderer.php b/gdpr-content-blocker/includes/class-renderer.php index 2160bf6..75bd872 100644 --- a/gdpr-content-blocker/includes/class-renderer.php +++ b/gdpr-content-blocker/includes/class-renderer.php @@ -347,7 +347,7 @@ class CB_Renderer { . '

' . '' . esc_html__( 'Empfänger:', 'gdpr-content-blocker' ) . ' ' . $recipient - . ( $third_note !== '' ? ' — ' . $third_note : '' ) + . $third_note . '

' . '

' . '' . esc_html__( 'Zweck:', 'gdpr-content-blocker' ) . ' '