PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.2.5
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.2.5
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.2.5, at includes/admin/templates/ai-admin.php

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