feat: consolidate docs, backend/session infra, and settings updates
This commit is contained in:
@@ -26,8 +26,26 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
|
||||
$settings_instance = WP_Agentic_Writer_Settings_V2::get_instance();
|
||||
$available_languages = $settings_instance->get_available_languages();
|
||||
$ai_client_available = wpaw_is_wp_ai_client_available();
|
||||
$ai_capabilities = array();
|
||||
if ( $ai_client_available ) {
|
||||
$client = WPAW_WP_AI_Client::get_instance();
|
||||
$ai_capabilities = $client->get_capabilities();
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ( $ai_client_available && $ai_capabilities['text_support'] ) : ?>
|
||||
<div class="alert alert-info d-flex align-items-start gap-2 mb-4" role="alert">
|
||||
<i class="bi bi-robot fs-5"></i>
|
||||
<div>
|
||||
<strong><?php esc_html_e( 'WordPress 7.0 AI Mode', 'wp-agentic-writer' ); ?></strong>
|
||||
<p class="mb-0 small">
|
||||
<?php esc_html_e( 'This site has WordPress 7.0 AI infrastructure. Agentic Writer will use the built-in AI Client for simple tasks (titles, excerpts) and the plugin for advanced features (streaming, block refinement, SEO/GEO).', 'wp-agentic-writer' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="row g-4">
|
||||
<!-- API Configuration -->
|
||||
<div class="col-12">
|
||||
|
||||
Reference in New Issue
Block a user