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