get_opts_public(); $types = get_post_types( array( 'public' => true ), 'objects' ); $acf = function_exists( 'get_fields' ); $detected_seo = __( 'Keines erkannt – WP Rankify ΓΌbernimmt Meta-Description', 'ai-json-extractor-auto-embed-lite' ); if ( defined('WPSEO_VERSION') ) { $detected_seo = 'Yoast SEO ' . WPSEO_VERSION; } if ( defined('RANK_MATH_VERSION') ) { $detected_seo = 'RankMath ' . RANK_MATH_VERSION; } if ( defined('AIOSEO_VERSION') ) { $detected_seo = 'AIOSEO ' . AIOSEO_VERSION; } $preset = $o['score_preset'] ?? 'standard'; $presets_data = array( 'ymyl' => array( 'label' => __( 'YMYL / Experten', 'ai-json-extractor-auto-embed-lite' ), 'icon' => 'πŸ₯', 'desc' => __( 'Medizin, Recht, Finanzen, Beratung.', 'ai-json-extractor-auto-embed-lite' ), 'tags' => __( 'Hebamme Β· Arzt Β· Anwalt', 'ai-json-extractor-auto-embed-lite' ), 'content' => 30, 'eeat' => 40, 'technical' => 20, 'linking' => 10 ), 'standard' => array( 'label' => __( 'Standard Blog', 'ai-json-extractor-auto-embed-lite' ), 'icon' => 'πŸ“', 'desc' => __( 'Typischer Content-Blog.', 'ai-json-extractor-auto-embed-lite' ), 'tags' => __( 'Blog Β· Magazin Β· News', 'ai-json-extractor-auto-embed-lite' ), 'content' => 35, 'eeat' => 30, 'technical' => 20, 'linking' => 15 ), 'ecommerce' => array( 'label' => __( 'E-Commerce', 'ai-json-extractor-auto-embed-lite' ), 'icon' => 'πŸ›’', 'desc' => __( 'Shop und lokale Unternehmen.', 'ai-json-extractor-auto-embed-lite' ), 'tags' => __( 'Shop Β· Restaurant Β· Agentur', 'ai-json-extractor-auto-embed-lite' ), 'content' => 30, 'eeat' => 20, 'technical' => 35, 'linking' => 15 ), 'custom' => array( 'label' => __( 'Individuell', 'ai-json-extractor-auto-embed-lite' ), 'icon' => 'βš™οΈ', 'desc' => __( 'Gewichtung manuell einstellen.', 'ai-json-extractor-auto-embed-lite' ), 'tags' => '', 'content' => $o['score_weight_content'] ?? 35, 'eeat' => $o['score_weight_eeat'] ?? 30, 'technical' => $o['score_weight_technical'] ?? 20, 'linking' => $o['score_weight_linking'] ?? 15, ), ); // ── EIN einziges Formular fΓΌr alles ────────────────────────────────────────── echo '
'; settings_fields( AIJE_Lite_100::OPT_KEY ); // ── Allgemeine Einstellungen ────────────────────────────────────────────────── echo '

' . esc_html__( 'Allgemeine Einstellungen', 'ai-json-extractor-auto-embed-lite' ) . '

'; echo ''; echo ''; $backend_lang_choices = AIJE_Lite_100::get_backend_language_choices(); $current_backend_lang = $o['backend_language'] ?? 'auto'; echo ''; $lang_choices = AIJE_Lite_100::get_language_choices(); $current_lang = $o['content_language'] ?? 'auto'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
' . esc_html__( 'SEO-Plugin', 'ai-json-extractor-auto-embed-lite' ) . '' . esc_html( $detected_seo ) . '

' . esc_html__( 'WP Rankify erkennt automatisch welches SEO-Plugin installiert ist.', 'ai-json-extractor-auto-embed-lite' ) . '

' . esc_html__( 'Plugin-Sprache (Backend)', 'ai-json-extractor-auto-embed-lite' ) . '

' . esc_html__( 'Sprache der WP-Rankify-OberflÀche (Dashboard, Einstellungen, Meta-Box im Editor). StandardmÀßig richtet sich das nach der WordPress-Profil- bzw. Website-Sprache jedes Nutzers; hier kannst du stattdessen fest Deutsch oder Englisch für alle Nutzer erzwingen.', 'ai-json-extractor-auto-embed-lite' ) . '

' . esc_html__( 'KI-Sprache', 'ai-json-extractor-auto-embed-lite' ) . '

' . esc_html__( 'Sprache fΓΌr Meta-Description-VorschlΓ€ge und KI-Themen-Analyse. β€žAutomatisch" erkennt die Sprache je Artikel selbst; eine feste Auswahl erzwingt diese Sprache unabhΓ€ngig vom Artikelinhalt, fΓΌr einheitliche Ausgaben.', 'ai-json-extractor-auto-embed-lite' ) . '

' . esc_html__( 'Aktive Post-Typen', 'ai-json-extractor-auto-embed-lite' ) . ''; foreach ( $types as $t ) { echo ''; } echo '
Schema.org (Article)

' . esc_html__( 'Das Person-Schema wird immer ausgegeben.', 'ai-json-extractor-auto-embed-lite' ) . '

' . esc_html__( 'Kategorie-Slug', 'ai-json-extractor-auto-embed-lite' ) . '
JSON
ACF' . ( ! $acf ? '

' . esc_html__( 'ACF nicht aktiv.', 'ai-json-extractor-auto-embed-lite' ) . '

' : '' ) . '
'; // ── Score-Gewichtung ────────────────────────────────────────────────────────── echo '

' . esc_html__( 'Score-Gewichtung', 'ai-json-extractor-auto-embed-lite' ) . '

'; echo '

' . esc_html__( 'WΓ€hle das Preset das zu deiner Website passt.', 'ai-json-extractor-auto-embed-lite' ) . '

'; // Radio-Inputs (versteckt, per JS gesetzt) foreach ( $presets_data as $key => $pd ) { echo ''; } // Gewichtungs-Hidden-Fields echo ''; echo ''; echo ''; echo ''; // Preset-Karten echo '
'; foreach ( $presets_data as $key => $pd ) { $active = ( $preset === $key ); $border = $active ? '2px solid #0073aa' : '2px solid #ddd'; $bg = $active ? '#f0f8ff' : '#fff'; echo '
'; if ( $active ) { echo 'βœ”'; } echo '
' . esc_html( $pd['icon'] ) . '
'; echo '
' . esc_html( $pd['label'] ) . '
'; echo '
' . esc_html( $pd['desc'] ) . '
'; if ( $key !== 'custom' ) { echo '
' . esc_html__( 'Content', 'ai-json-extractor-auto-embed-lite' ) . ' ' . esc_html( $pd['content'] ) . '%
' . 'E-E-A-T ' . esc_html( $pd['eeat'] ) . '%
' . esc_html__( 'Technik', 'ai-json-extractor-auto-embed-lite' ) . ' ' . esc_html( $pd['technical'] ) . '%
' . esc_html__( 'Vernetzung', 'ai-json-extractor-auto-embed-lite' ) . ' ' . esc_html( $pd['linking'] ) . '%
'; } if ( ! empty( $pd['tags'] ) ) { echo '
' . esc_html( $pd['tags'] ) . '
'; } echo '
'; } echo '
'; // Custom-Schieberegler echo '
'; echo '

' . esc_html__( 'Werte werden auf 100% normalisiert.', 'ai-json-extractor-auto-embed-lite' ) . '

'; foreach ( array( 'content' => array( '✍ ' . __( 'Content-QualitΓ€t', 'ai-json-extractor-auto-embed-lite' ), $o['score_weight_content'] ?? 35 ), 'eeat' => array( 'πŸ… E-E-A-T', $o['score_weight_eeat'] ?? 30 ), 'technical' => array( 'βš™ ' . __( 'Technik', 'ai-json-extractor-auto-embed-lite' ), $o['score_weight_technical'] ?? 20 ), 'linking' => array( 'πŸ”— ' . __( 'Vernetzung', 'ai-json-extractor-auto-embed-lite' ), $o['score_weight_linking'] ?? 15 ), ) as $k => $sf ) { echo '
' . '
' . '' . esc_html( $sf[0] ) . '' . '' . esc_html( $sf[1] ) . '%
' . '
'; } echo '
'; // ── Ein einziger Speichern-Button ───────────────────────────────────────────── submit_button( esc_html__( 'Alle Einstellungen speichern', 'ai-json-extractor-auto-embed-lite' ) ); echo '
'; // ── JS ──────────────────────────────────────────────────────────────────────── $cards_json = wp_json_encode( array_keys( $presets_data ) ); ?>

' . esc_html__( 'Experten-Profile pflegen', 'ai-json-extractor-auto-embed-lite' ) . '

'; echo '

' . sprintf( wp_kses( __( 'Die Berufsbezeichnung, Fachbiografie und SameAs-Links werden im %s hinterlegt (Bereich: Experten-Profil).', 'ai-json-extractor-auto-embed-lite' ), array( 'a' => array( 'href' => array() ), 'em' => array() ) ), '' . esc_html__( 'WordPress-Benutzerprofil', 'ai-json-extractor-auto-embed-lite' ) . '' ) . '

';