PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.8.1
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.8.1
8.8.1 8.8.0 8.7.9 8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 All 537 releases
← All changes | includes/admin/templates/ai-admin.php +17 -3 8.6.0 → 8.8.1 View file →
@@ -3,9 +3,10 @@
3 3 $no_ai_active = (
4 4 get_option( 'ai_enabled' ) != 1 &&
5 5 get_option( 'qcld_openrouter_enabled' ) != 1 &&
6 6 get_option( 'qcld_gemini_enabled' ) != 1 &&
7 - get_option( 'qcld_grok_enabled' ) != 1
7 + get_option( 'qcld_grok_enabled' ) != 1 &&
8 + get_option( 'qcld_claude_enabled' ) != 1
8 9 );
9 10 $wizard_done = ( get_option( 'wpbot_ai_setup_wizard_done' ) == 1 );
10 11
11 12 $show_wizard_automatically = $no_ai_active;
@@ -14,9 +15,9 @@
14 15 <div class="wrap qcld-main-wrapper">
15 16 <div class="qcld-wp-chatbot-wrap-header-aisection">
16 17 <div class="qcld-wp-chatbot-wrap-header">
17 18
18 - <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
19 + <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
19 20 <p><strong>Core Version:</strong> v<?php echo esc_html( QCLD_wpCHATBOT_VERSION ); ?></p>
20 21 </div>
21 22 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
22 23 <li>
@@ -41,8 +42,9 @@
41 42
42 43 <?php
43 44 // Determine which provider is currently active
44 45 $active_provider = 'openai'; // default
46 + if (get_option('qcld_claude_enabled') == 1) $active_provider = 'claude';
45 47 if (get_option('qcld_grok_enabled') == 1) $active_provider = 'grok';
46 48 if (get_option('qcld_gemini_enabled') == 1) $active_provider = 'gemini';
47 49 if (get_option('qcld_openrouter_enabled') == 1) $active_provider = 'openrouter';
48 50 if (get_option('ai_enabled') == 1) $active_provider = 'openai';
@@ -64,8 +66,10 @@
64 66 </div>
65 67 </div>
66 68 <!-- AI Provider Cards - Separate Row -->
67 69 <div class="ai-provider-cards-wrapper">
70 +
71 + <h4></h4>
68 72
69 73 <div class="ai-provider-cards">
70 74 <div class="ai-provider-card <?php echo ($active_provider === 'openai') ? 'active' : ''; ?>" data-provider="openai">
71 75 <span class="ai-provider-check"><svg width="14" height="14" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="7" fill="#2563EB"/><path d="M4 7.2L6.2 9.4L10 5" stroke="#fff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
@@ -94,12 +98,19 @@
94 98 <svg viewBox="0 0 24 24" width="32" height="32" fill="none"><path d="M16.778 1.844v1.919q-.569-.026-1.138-.032q-.708-.008-1.415.037c-1.93.126-4.023.728-6.149 2.237c-2.911 2.066-2.731 1.95-4.14 2.75c-.396.223-1.342.574-2.185.798c-.841.225-1.753.333-1.751.333v4.229s.768.108 1.61.333c.842.224 1.789.575 2.185.799c1.41.798 1.228.683 4.14 2.75c2.126 1.509 4.22 2.11 6.148 2.236c.88.058 1.716.041 2.555.005v1.918l7.222-4.168l-7.222-4.17v2.176c-.86.038-1.611.065-2.278.021c-1.364-.09-2.417-.357-3.979-1.465c-2.244-1.593-2.866-2.027-3.68-2.508c.889-.518 1.449-.906 3.822-2.59c1.56-1.109 2.614-1.377 3.978-1.466c.667-.044 1.418-.017 2.278.02v2.176L24 6.014Z" fill="#6B7280"/></svg>
95 99 </div>
96 100 <span class="ai-provider-name"><?php esc_html_e('OpenRouter', 'chatbot'); ?></span>
97 101 </div>
102 + <div class="ai-provider-card <?php echo ($active_provider === 'claude') ? 'active' : ''; ?>" data-provider="claude">
103 + <span class="ai-provider-check"><svg width="14" height="14" viewBox="0 0 14 14" fill="none"><circle cx="7" cy="7" r="7" fill="#2563EB"/><path d="M4 7.2L6.2 9.4L10 5" stroke="#fff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
104 + <div class="ai-provider-icon">
105 + <svg viewBox="0 0 24 24" width="32" height="32" fill="none"><path d="M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zm0-22C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2z" fill="#D97757"/><path d="M15.5 17c-2.3 0-4.1-1.2-5.2-3.1-.2-.3-.5-.7-.8-1-1.3-1.6-3.2-2.3-5-2.1v-1.6c2.2-.2 4.4.6 6 2.5.3.3.6.7.8 1.1 1 1.7 2.6 2.7 4.2 2.7.3 0 .6 0 .8-.1v1.6c-.2 0-.5.1-.8.1z" fill="#D97757"/></svg>
106 + </div>
107 + <span class="ai-provider-name"><?php esc_html_e('Claude', 'chatbot'); ?></span>
108 + </div>
98 109 </div>
99 110 </div>
100 111 <?php
101 - if ( get_option( 'ai_enabled' ) != 1 && get_option( 'qcld_openrouter_enabled' ) != 1 && get_option( 'qcld_gemini_enabled' ) != 1 && get_option( 'qcld_grok_enabled' ) != 1 ) {
112 + if ( get_option( 'ai_enabled' ) != 1 && get_option( 'qcld_openrouter_enabled' ) != 1 && get_option( 'qcld_gemini_enabled' ) != 1 && get_option( 'qcld_grok_enabled' ) != 1 && get_option( 'qcld_claude_enabled' ) != 1 ) {
102 113 ?>
103 114 <div id="openai-settings" class="ai-settings-provider">
104 115 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openai/admin/admin_ui2.php'); ?>
105 116 </div>
@@ -117,8 +128,11 @@
117 128 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/gemini/admin/settings.php'); ?>
118 129 </div>
119 130 <div id="grok-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_grok_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
120 131 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/grok/admin/settings.php'); ?>
132 + </div>
133 + <div id="claude-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_claude_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
134 + <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/claude/admin/settings.php'); ?>
121 135 </div>
122 136 <div id="rag-settings" class="ai-settings-provider" style="display: none;">
123 137 <?php require_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/admin/templates/rag.php'; ?>
124 138 </div>