✓ ' . esc_html__( 'llms.txt Einstellungen gespeichert.', 'ai-json-extractor-auto-embed-lite' ) . '
'; } // ── Werte laden (immer aus der DB nach dem Speichern) ───────────────────── $enabled = get_option( 'aije_llms_enabled', 1 ); $block_bots = get_option( 'aije_llms_block_bots', 0 ); $custom = get_option( 'aije_llms_custom', '' ); $max_posts = (int) get_option( 'aije_llms_max_posts', 10 ); $excerpt_len = (int) get_option( 'aije_llms_excerpt_len', 0 ); $show_cats = (int) get_option( 'aije_llms_show_cats', 1 ); $link_sitemap= (int) get_option( 'aije_llms_sitemap', 1 ); $key_pages = (array) get_option( 'aije_llms_key_pages', array() ); $llms_url = home_url( '/llms.txt' ); // Vorschau generieren (mit aktuellen Werten) $preview = $this->generate_llms_content(); $char_count = mb_strlen( $preview ); $pct = min( 100, round( $char_count / 3000 * 100 ) ); $bar_color = $char_count <= 2800 ? '#16a34a' : ( $char_count <= 3000 ? '#d97706' : '#dc2626' ); $bar_label = $char_count <= 2800 ? '✓ ' . __( 'Optimal', 'ai-json-extractor-auto-embed-lite' ) : ( $char_count <= 3000 ? '⚠ ' . __( 'Knapp am Limit', 'ai-json-extractor-auto-embed-lite' ) : '✕ ' . __( 'Zu lang', 'ai-json-extractor-auto-embed-lite' ) ); $all_pages = get_posts( array( 'post_type' => array( 'page', 'post' ), 'post_status' => 'publish', 'posts_per_page' => 50, 'orderby' => array( 'post_type' => 'ASC', 'title' => 'ASC' ), 'no_found_rows' => true ) ); ?>