PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.3.8
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.3.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 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / includes / admin / templates / ai-admin.php

ai-admin.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.3.8, at includes/admin/templates/ai-admin.php

140 lines 6.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $no_ai_active = (
3 get_option( 'ai_enabled' ) != 1 &&
4 get_option( 'qcld_openrouter_enabled' ) != 1 &&
5 get_option( 'qcld_gemini_enabled' ) != 1 &&
6 get_option( 'qcld_grok_enabled' ) != 1
7 );
8 $wizard_done = ( get_option( 'wpbot_ai_setup_wizard_done' ) == 1 );
9
10 $show_wizard_automatically = $no_ai_active;
11 require_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/admin/templates/wizard-popup.php';
12 ?>
13 <div class="wrap qcld-main-wrapper">
14 <div class="qcld-wp-chatbot-wrap-header-aisection">
15 <div class="qcld-wp-chatbot-wrap-header">
16
17 <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>
18 <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p>
19 </div>
20 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
21 <li>
22 <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
23
24 </li>
25 </ul>
26 </div>
27 </div>
28 </div>
29
30 <div class="qcl-openai">
31 <div class="row gx-0">
32
33 <div class="card admin-maxwith qcld-openai-main-box">
34 <div class="card-header bg-dark text-white py-sm-4 border-0">
35 <div class="row">
36
37 <div class="col-auto me-auto ai-settings-title-container">
38
39 <a href="<?php echo admin_url( 'admin.php?page=wpbot_openAi' ); ?>"><h4><?php esc_html_e( 'AI Settings','chatbot');?></h4></a>
40
41 <select id="ai-provider-selector" class="form-select ai-settings-selector">
42 <option value="openai" <?php echo (get_option( 'ai_enabled') == 1) ? esc_attr( 'selected') :'';?> ><?php echo esc_html__( 'OpenAI','chatbot')?></option>
43 <option value="openrouter" <?php echo (get_option( 'qcld_openrouter_enabled') == 1) ? esc_attr( 'selected') :'';?> ><?php echo esc_html__( 'OpenRouter','chatbot')?></option>
44 <option value="gemini" <?php echo (get_option( 'qcld_gemini_enabled') == 1) ? esc_attr( 'selected') :'';?> ><?php echo esc_html__( 'Gemini','chatbot')?></option>
45 <option value="grok" <?php echo (get_option( 'qcld_grok_enabled') == 1) ? esc_attr( 'selected') :'';?> ><?php echo esc_html__( 'Grok','chatbot')?></option>
46 </select>
47 <div class="col-auto ai-settings-title-container">
48 <button id="wpbot-trigger-wizard" class="qcld-btn-primary"><?php esc_html_e( 'AI Wizard', 'chatbot' ); ?></button>
49 </div>
50 <div class="col-auto ai-settings-title-container">
51 <button id="ai-knowledge-base-tab" class="qcld-btn-primary" link="page=wpbot_openAi#ai-knowledge-base-tab"><?php esc_html_e( 'Knowledge Base (RAG)', 'chatbot' ); ?></button>
52 </div>
53 <div class="col-auto ai-settings-title-container">
54 <button id="qcld-common-ai-settings" class="qcld-btn-primary" link="page=wpbot_openAi#common-ai-settings-tab"><?php esc_html_e( 'Common AI Settings', 'chatbot' ); ?></button>
55 </div>
56 </div>
57
58
59 </div>
60 </div>
61 <?php
62 if ( get_option( 'ai_enabled' ) != 1 && get_option( 'qcld_openrouter_enabled' ) != 1 && get_option( 'qcld_gemini_enabled' ) != 1 && get_option( 'qcld_grok_enabled' ) != 1 ) {
63 ?>
64 <div id="openai-settings" class="ai-settings-provider">
65 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openai/admin/admin_ui2.php'); ?>
66 </div>
67
68 <?php
69 }
70 ?>
71 <div id="openai-settings" class="ai-settings-provider" <?php echo (get_option( 'ai_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
72 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openai/admin/admin_ui2.php'); ?>
73 </div>
74 <div id="openrouter-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_openrouter_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
75 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openrouter/admin/settings.php'); ?>
76 </div>
77 <div id="gemini-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_gemini_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
78 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/gemini/admin/settings.php'); ?>
79 </div>
80 <div id="grok-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_grok_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
81 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/grok/admin/settings.php'); ?>
82 </div>
83 <div id="rag-settings" class="ai-settings-provider" style="display: none;">
84 <?php require_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/admin/templates/rag.php'; ?>
85 </div>
86 <div id="common-ai-settings" class="ai-settings-provider" style="display: none;">
87 <?php require_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/admin/templates/common-ai-settings.php'; ?>
88 </div>
89 <div class="card-footer bg-dark text-white py-sm-4 border-0"></div>
90 </div>
91
92
93
94 </div>
95 </div>
96 </div>
97
98
99
100
101 <style>
102
103 div#promotion-wpchatbot {
104 margin: 0;
105 padding: 0;
106 border: none;
107 max-width: initial !important;
108 padding: 0 !important;
109 margin: 20px 20px 20px 0 !important;
110 padding: 15px 15px 15px 0 !important;
111 border: none !important;
112 border-radius: 6px !important;
113 box-shadow: 0px 4px 6px 1px #ebebeb !important;
114 }
115
116
117 .qc-review-notice{
118 max-width: initial !important;
119 padding: 0 !important;
120 margin: 20px 20px 20px 0 !important;
121 padding: 15px 15px 15px 0 !important;
122 border: none !important;
123 border-radius: 6px !important;
124 box-shadow: 0px 4px 6px 1px #ebebeb !important;
125 background: #fff;
126 color: #000;
127 }
128
129 .qc-review-text h3 {
130 color: #000000;
131 }
132 .qc-review-text p {
133 color: #000000;
134 }
135 </style>
136
137
138
139
140