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

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