__( '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__( '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();
?>