PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.9.4
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.9.4
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 8.5.5 8.5.4 8.5.3 All 534 releases
chatbot / includes / admin / templates / ai-admin.php

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

119 lines 5.4 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>
39
40
41 </div>
42 </div>
43 <?php
44 if ( get_option( 'ai_enabled' ) != 1 && get_option( 'qcld_openrouter_enabled' ) != 1 && get_option( 'qcld_gemini_enabled' ) != 1 && get_option( 'qcld_grok_enabled' ) != 1 ) {
45 ?>
46 <div id="openai-settings" class="ai-settings-provider">
47 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openai/admin/admin_ui2.php'); ?>
48 </div>
49
50 <?php
51 }
52 ?>
53 <div id="openai-settings" class="ai-settings-provider" <?php echo (get_option( 'ai_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
54 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openai/admin/admin_ui2.php'); ?>
55 </div>
56 <div id="openrouter-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_openrouter_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
57 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/openrouter/admin/settings.php'); ?>
58 </div>
59 <div id="gemini-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_gemini_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
60 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/gemini/admin/settings.php'); ?>
61 </div>
62 <div id="grok-settings" class="ai-settings-provider" <?php echo (get_option( 'qcld_grok_enabled') == 1) ? 'style="display: block;"' :'style="display: none;"';?> >
63 <?php require_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/integration/grok/admin/settings.php'); ?>
64 </div>
65 <div id="rag-settings" class="ai-settings-provider" style="display: none;">
66 <?php require_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . 'includes/admin/templates/rag.php'; ?>
67 </div>
68 <div class="card-footer bg-dark text-white py-sm-4 border-0"></div>
69 </div>
70
71
72
73 </div>
74 </div>
75 </div>
76
77
78
79
80 <style>
81
82 div#promotion-wpchatbot {
83 margin: 0;
84 padding: 0;
85 border: none;
86 max-width: initial !important;
87 padding: 0 !important;
88 margin: 20px 20px 20px 0 !important;
89 padding: 15px 15px 15px 0 !important;
90 border: none !important;
91 border-radius: 6px !important;
92 box-shadow: 0px 4px 6px 1px #ebebeb !important;
93 }
94
95
96 .qc-review-notice{
97 max-width: initial !important;
98 padding: 0 !important;
99 margin: 20px 20px 20px 0 !important;
100 padding: 15px 15px 15px 0 !important;
101 border: none !important;
102 border-radius: 6px !important;
103 box-shadow: 0px 4px 6px 1px #ebebeb !important;
104 background: #fff;
105 color: #000;
106 }
107
108 .qc-review-text h3 {
109 color: #000000;
110 }
111 .qc-review-text p {
112 color: #000000;
113 }
114 </style>
115
116
117
118
119