revert: lokales Google-Fonts-Hosting entfernt + scan zeigt nur hinweis
- Feature "Schriften lokal hosten" komplett zurueckgebaut (class-fonts.php, tab, ajax-endpunkte, output-buffer, admin-js-handler, optionen). - Scan: wird fonts.googleapis.com / fonts.gstatic.com erkannt, steht in der Aktion-spalte jetzt der nicht-klickbare hinweis "Schriftart fuer DSGVO-konformen Betrieb lokal hosten." statt eines buttons. - i18n entsprechend bereinigt (123 strings). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -170,7 +170,6 @@ class CB_Settings {
|
||||
'newServiceLbl' => __( 'Neuer Dienst', 'gdpr-content-blocker' ),
|
||||
'ajaxUrl' => admin_url( 'admin-ajax.php' ),
|
||||
'scanNonce' => wp_create_nonce( 'cb_scan' ),
|
||||
'fontsNonce' => wp_create_nonce( 'cb_fonts' ),
|
||||
'i18n' => [
|
||||
'scanning' => __( 'Scanne Webseite …', 'gdpr-content-blocker' ),
|
||||
'scanError' => __( 'Scan fehlgeschlagen:', 'gdpr-content-blocker' ),
|
||||
@@ -189,9 +188,7 @@ class CB_Settings {
|
||||
'templateAvail' => __( 'Vorlage verfügbar', 'gdpr-content-blocker' ),
|
||||
'scannedPages'=> __( 'Gescannte Seiten:', 'gdpr-content-blocker' ),
|
||||
'foundOn' => __( 'Gefunden auf', 'gdpr-content-blocker' ),
|
||||
'fontsFetching' => __( 'Schriften werden heruntergeladen …', 'gdpr-content-blocker' ),
|
||||
'fontsError' => __( 'Fehler beim Herunterladen:', 'gdpr-content-blocker' ),
|
||||
'fontsClearConfirm'=> __( 'Lokale Schriften wirklich löschen?', 'gdpr-content-blocker' ),
|
||||
'fontHint' => __( 'Schriftart für DSGVO-konformen Betrieb lokal hosten.', 'gdpr-content-blocker' ),
|
||||
],
|
||||
] );
|
||||
}
|
||||
@@ -277,9 +274,6 @@ class CB_Settings {
|
||||
<a href="#cb-tab-style" class="nav-tab" data-cb-tab="style">
|
||||
<?php esc_html_e( 'Darstellung', 'gdpr-content-blocker' ); ?>
|
||||
</a>
|
||||
<a href="#cb-tab-fonts" class="nav-tab" data-cb-tab="fonts">
|
||||
<?php esc_html_e( 'Schriften', 'gdpr-content-blocker' ); ?>
|
||||
</a>
|
||||
<a href="#cb-tab-shortcodes" class="nav-tab" data-cb-tab="shortcodes">
|
||||
<?php esc_html_e( 'Shortcodes', 'gdpr-content-blocker' ); ?>
|
||||
</a>
|
||||
@@ -352,11 +346,6 @@ class CB_Settings {
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Fonts Tab -->
|
||||
<div id="cb-tab-fonts" class="cb-tab-content" style="display:none;">
|
||||
<?php CB_Fonts::render_tab(); ?>
|
||||
</div>
|
||||
|
||||
<!-- Shortcodes Tab -->
|
||||
<div id="cb-tab-shortcodes" class="cb-tab-content" style="display:none;">
|
||||
<?php self::render_shortcodes_help(); ?>
|
||||
@@ -747,7 +736,7 @@ class CB_Settings {
|
||||
* Build the list of URLs to scan: the home page plus a few published
|
||||
* pages/posts, so the scan covers more than just the front page.
|
||||
*/
|
||||
public static function scan_urls(): array {
|
||||
private static function scan_urls(): array {
|
||||
$urls = [ home_url( '/' ) ];
|
||||
|
||||
$posts = get_posts( [
|
||||
|
||||
Reference in New Issue
Block a user