From 4f0f8ea1706c9c6d8b94faf8c42ad75e87a35f91 Mon Sep 17 00:00:00 2001 From: s4luorth Date: Sun, 7 Jun 2026 15:22:20 +0200 Subject: [PATCH] feat: pfeile statt +/-, shortcodes-tab, funktionen aus darstellung entfernt - Ein-/Ausklappen wieder mit schwarzem Pfeil (>/v) ohne Box. - Neuer Tab Shortcodes; Darstellung listet keine Funktionen mehr. - CSS-Klassen-Referenz in den Darstellung-Tab (unter Custom CSS) verschoben. - EN-Uebersetzung (121 Strings) neu gebaut. Co-Authored-By: Claude Opus 4.8 --- gdpr-content-blocker/assets/admin.js | 2 +- .../includes/class-settings.php | 73 ++++++--------- .../languages/gdpr-content-blocker-en_US.mo | Bin 12675 -> 11405 bytes .../languages/gdpr-content-blocker-en_US.po | 83 +++++++----------- hilfsdaten/build-en-mo.py | 36 +++----- 5 files changed, 78 insertions(+), 116 deletions(-) diff --git a/gdpr-content-blocker/assets/admin.js b/gdpr-content-blocker/assets/admin.js index 213529e..a4f3213 100644 --- a/gdpr-content-blocker/assets/admin.js +++ b/gdpr-content-blocker/assets/admin.js @@ -28,7 +28,7 @@ function setExpanded( box, open ) { $( '.cb-service-grid', box ).toggle( open ); const $btn = $( '.cb-service-toggle', box ); - $btn.attr( 'aria-expanded', open ? 'true' : 'false' ).text( open ? '−' : '+' ); + $btn.attr( 'aria-expanded', open ? 'true' : 'false' ).text( open ? '▾' : '▸' ); } function bindToggle( box ) { $( '.cb-service-toggle', box ).on( 'click', function () { diff --git a/gdpr-content-blocker/includes/class-settings.php b/gdpr-content-blocker/includes/class-settings.php index 9501d72..30eea00 100644 --- a/gdpr-content-blocker/includes/class-settings.php +++ b/gdpr-content-blocker/includes/class-settings.php @@ -254,6 +254,9 @@ class CB_Settings { + + + @@ -321,8 +324,11 @@ class CB_Settings { submit_button( __( 'Darstellung speichern', 'gdpr-content-blocker' ) ); ?> + - + + @@ -409,21 +415,21 @@ class CB_Settings { .cb-admin-wrap .cb-switch input:checked + .cb-switch__slider::before { transform: translateX(18px); } - /* expand/collapse +/- icon */ + /* expand/collapse arrow (black, no box) */ .cb-admin-wrap .cb-service-toggle { - width: 30px; - height: 30px; - font-size: 22px; + width: 24px; + height: 24px; + font-size: 16px; line-height: 1; font-weight: 400; - color: #2043B7; - background: #f0f3fc; - border: 1px solid #c7d2f5; - border-radius: 6px; + color: #1d2327; + background: none; + border: none; padding: 0; + cursor: pointer; } .cb-admin-wrap .cb-service-toggle:hover { - background: #e3e9fb; + color: #000; } /* trash remove button */ .cb-admin-wrap .cb-remove-service { @@ -503,7 +509,7 @@ class CB_Settings { ?>
- +