fix: kein s.w.org-emoji-request + kein weissraum unter dem blocker (v1.4.3)
1) Das Warn-Emoji "⚠" im platzhalter-text loeste WordPress' wp-emoji aus, das die grafik von s.w.org nachlud (drittanbieter-request). Emoji aus den texten entfernt; das warn-dreieck wird jetzt rein per CSS gezeichnet (kein netzwerk). Hinweis: s.w.org ist der WP-emoji-CDN, NICHT Google. 2) Der platzhalter reservierte die hoehe des eingebetteten elements -> bei kuerzerem inhalt entstand weissraum darunter. Hoehen-reservierung entfernt (PHP min-height-style, JS minHeight, CSS min-height:180px) - der content blocker ist jetzt exakt so hoch wie sein eigener inhalt. Die original-masse bleiben als data-attribute fuer das iframe nach einwilligung erhalten. 3) Redundante, partielle de_DE-.po/.mo (mit altem emoji) entfernt - deutsche locales nutzen direkt die deutschen quell-strings. + version 1.4.3 (assets cache-busting). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,7 @@ class CB_Renderer {
|
||||
'i18n' => [
|
||||
'recipient' => __( 'Empfänger:', 'gdpr-content-blocker' ),
|
||||
'purpose' => __( 'Zweck:', 'gdpr-content-blocker' ),
|
||||
'thirdCountry' => __( '⚠ Datenübermittlung in ein Drittland außerhalb der EU/des EWR', 'gdpr-content-blocker' ),
|
||||
'thirdCountry' => __( 'Datenübermittlung in ein Drittland außerhalb der EU/des EWR', 'gdpr-content-blocker' ),
|
||||
'privacy' => __( 'Datenschutzerklärung des Anbieters', 'gdpr-content-blocker' ),
|
||||
'load' => __( '%s jetzt laden', 'gdpr-content-blocker' ),
|
||||
'remember' => __( 'Diesen Dienst künftig immer laden', 'gdpr-content-blocker' ),
|
||||
@@ -314,7 +314,7 @@ class CB_Renderer {
|
||||
$third_note = '';
|
||||
if ( $third ) {
|
||||
$third_note = '<span class="cb-blocker__third-country">'
|
||||
. esc_html__( '⚠ Datenübermittlung in ein Drittland außerhalb der EU/des EWR', 'gdpr-content-blocker' )
|
||||
. esc_html__( 'Datenübermittlung in ein Drittland außerhalb der EU/des EWR', 'gdpr-content-blocker' )
|
||||
. '</span>';
|
||||
}
|
||||
|
||||
@@ -327,14 +327,12 @@ class CB_Renderer {
|
||||
|
||||
$data_src = $src !== '' ? ' data-src="' . esc_attr( $src ) . '"' : '';
|
||||
|
||||
// Reserve the embed's height so the layout doesn't jump, and remember the
|
||||
// original dimensions for the iframe that gets created on consent.
|
||||
// Remember the original dimensions for the iframe that gets created on
|
||||
// consent. The placeholder itself is sized to its own content (no reserved
|
||||
// height), so there is no empty space below it.
|
||||
$width = isset( $dims['width'] ) ? (string) $dims['width'] : '';
|
||||
$height = isset( $dims['height'] ) ? (string) $dims['height'] : '';
|
||||
$style_at = '';
|
||||
if ( $height !== '' && ctype_digit( $height ) ) {
|
||||
$style_at = ' style="min-height:' . esc_attr( $height ) . 'px"';
|
||||
}
|
||||
$data_dims = '';
|
||||
if ( $width !== '' ) {
|
||||
$data_dims .= ' data-width="' . esc_attr( $width ) . '"';
|
||||
|
||||
Reference in New Issue
Block a user