fix: drittland-hinweis ohne icon/farbe + kein trennstrich beim empfaenger (v1.4.8)

- 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 <noreply@anthropic.com>
This commit is contained in:
s4luorth
2026-06-08 13:51:56 +02:00
parent 3c93027253
commit d0ced7b179
4 changed files with 6 additions and 20 deletions

View File

@@ -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 ── */

View File

@@ -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 || '';

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.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__ ) );

View File

@@ -347,7 +347,7 @@ class CB_Renderer {
. '<p class="cb-blocker__recipient">'
. '<strong>' . esc_html__( 'Empfänger:', 'gdpr-content-blocker' ) . '</strong> '
. $recipient
. ( $third_note !== '' ? ' &mdash; ' . $third_note : '' )
. $third_note
. '</p>'
. '<p class="cb-blocker__purpose">'
. '<strong>' . esc_html__( 'Zweck:', 'gdpr-content-blocker' ) . '</strong> '