__( 'The link is now in your footer.', 'aiprofile-inside' ), 'footer_moved' => __( 'Moved: the link is now in your footer, and no longer in your main menu.', 'aiprofile-inside' ), 'footer_removed' => __( 'The link is no longer in your footer.', 'aiprofile-inside' ), ); if ( isset( $dones[ $done ] ) ) { echo '

' . esc_html( $dones[ $done ] ) . '

'; } $messages = array( 'empty' => __( 'Paste your AiProfile link first.', 'aiprofile-inside' ), 'notfound' => __( 'We could not find an AiProfile with this link. Check the link and try again.', 'aiprofile-inside' ), 'unreachable' => __( 'AiProfile could not be reached. Try again in a minute.', 'aiprofile-inside' ), ); if ( isset( $messages[ $msg ] ) ) { echo '

' . esc_html( $messages[ $msg ] ) . '

'; } if ( $saved ) { echo '

' . esc_html__( 'Settings saved.', 'aiprofile-inside' ) . '

'; } } /** The screen. */ function aiprofile_inside_render_screen() { if ( ! current_user_can( 'manage_options' ) ) { return; } $settings = aiprofile_inside_settings(); $pending = get_transient( aiprofile_inside_pending_key() ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- display only. $change = isset( $_GET['change'] ); echo '
'; echo '

' . esc_html__( 'Connect your AiProfile', 'aiprofile-inside' ) . '

'; aiprofile_inside_render_message(); if ( is_array( $pending ) && ! empty( $pending['key'] ) ) { aiprofile_inside_render_found( $pending ); } elseif ( ! empty( $settings['key'] ) && ! $change ) { aiprofile_inside_render_connected( $settings ); } else { // Not connected, nothing checked, and the owner did not ask for the // paste field (?change=1): look for the profile by this site's address. $matches = ( empty( $settings['key'] ) && ! $change ) ? aiprofile_inside_detect() : array(); if ( 1 === count( $matches ) ) { aiprofile_inside_render_found( $matches[0], true ); } elseif ( count( $matches ) > 1 ) { aiprofile_inside_render_choose( $matches ); } else { aiprofile_inside_render_form(); } } echo '
'; } /** Step 1: the one field. */ function aiprofile_inside_render_form() { ?>

$match ) : ?>


' . esc_html( $url ) . '' ), array( 'a' => array( 'href' => true ) ) ); ?>


 

[aiprofile]   [aiprofile profiel="" taal=""]



llms.txt

' . esc_html__( 'View', 'aiprofile-inside' ) . ''; } } ?>

' . esc_html__( 'Your theme did not show the answers on this page, so the plugin now shows them in its own page layout, between the header and footer of your theme. You can change this under Settings, Page layout.', 'aiprofile-inside' ) . '

'; } elseif ( 'plugin' !== $mode && isset( $state['misses'] ) && (int) $state['misses'] >= AIPROFILE_INSIDE_LAYOUT_MISSES ) { // Switched off by the owner, or the answers page is the front page, // where the plugin does not switch by itself. echo '

' . esc_html__( 'Your theme does not show the answers on this page, so visitors and AI assistants do not see them. Switch on "Use the plugin\'s page layout" under Settings, Page layout.', 'aiprofile-inside' ) . '

'; } } /** Since 1.3.6: the switch for the plugin's own page layout, in the settings form. */ function aiprofile_inside_render_layout_setting() { $block = ! aiprofile_inside_layout_possible(); $on = ! $block && aiprofile_inside_use_own_layout(); ?>

' . esc_html( sprintf( /* translators: 1: date and time, 2: status, 3: detail */ __( 'Last fetch from AiProfile: %1$s, %2$s (%3$s).', 'aiprofile-inside' ), wp_date( 'Y-m-d H:i', (int) $s['time'] ), isset( $s['status'] ) ? $s['status'] : '', isset( $s['detail'] ) ? $s['detail'] : '' ) ) . '

'; }