__( '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( 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'] : '' ) ) . '

'; }