PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 2.5.8
MxChat – AI Chatbot & Content Generation for WordPress v2.5.8
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
← All changes | includes/class-mxchat-addons.php +232 -96 2.0.52.5.8 View file →
@@ -17,48 +17,152 @@
17 17 * Initialize the class and set its properties.
18 18 */
19 19 public function __construct() {
20 20 $this->addons_config = array(
21 - 'mxchat-pinecone' => array(
22 - 'title' => __('Pinecone DB Manager', 'mxchat'),
23 - 'description' => __('Seamlessly manage your vectorized content in Pinecone\'s vector database directly from your WordPress dashboard. This integration provides an efficient alternative to the default WordPress database storage.', 'mxchat'),
24 - 'license' => 'free',
21 +
22 + 'mxchat-theme' => array(
23 + 'title' => __('MxChat Theme Customizer', 'mxchat'),
24 + 'description' => __('Make your chatbot uniquely yours. Generate beautiful themes instantly using simple descriptions or customize manually with precise color controls—zero coding required. Perfect for matching your brand identity.', 'mxchat'),
25 + 'key_benefits' => array(
26 + __('AI-powered theme generator', 'mxchat'),
27 + __('Live preview customizer', 'mxchat'),
28 + __('One-click theme application', 'mxchat')
29 + ),
30 + 'license' => 'MxChat PRO',
25 31 'accent' => '#fa73e6',
26 - 'url' => 'https://quickdeploywp.com/plugin/mxchat-pinecone/',
27 - 'plugin_file' => 'mxchat-pinecone/pinecone-manager.php',
28 - 'config_page' => 'mxchat-pinecone'
32 + 'url' => 'https://mxchat.ai/ai-theme-customizer/',
33 + 'plugin_file' => 'mxchat-theme/mxchat-theme.php',
34 + 'config_page' => 'mxchat-theme-settings'
29 35 ),
36 +
37 + 'mxchat-admin-assistant' => array(
38 + 'title' => __('MxChat Admin Assistant', 'mxchat'),
39 + 'description' => __('Your AI powerhouse inside WordPress. Chat with multiple AI models, generate images, research the web, and boost productivity—all without leaving your dashboard.', 'mxchat'),
40 + 'key_benefits' => array(
41 + __('ChatGPT-like admin interface', 'mxchat'),
42 + __('Generate images & research web', 'mxchat'),
43 + __('Searchable chat history', 'mxchat')
44 + ),
45 + 'license' => 'MxChat PRO',
46 + 'accent' => '#fa73e6',
47 + 'url' => 'https://mxchat.ai/ai-admin-assistant/',
48 + 'plugin_file' => 'mxchat-admin-chat/mxchat-admin-chat.php',
49 + 'config_page' => 'mxchat-admin-chat'
50 + ),
51 +
52 + 'mxchat-veo' => array(
53 + 'title' => __('MxChat Video Generation', 'mxchat'),
54 + 'description' => __('Generate stunning AI videos using Google Veo 2 and Veo 3 models directly from your WordPress dashboard. Create high-quality videos from text prompts with audio, multiple aspect ratios, and optimized generation speeds.', 'mxchat'),
55 + 'key_benefits' => array(
56 + __('Multiple Veo models (Veo 2, 3, 3 Fast)', 'mxchat'),
57 + __('8-second videos with native audio', 'mxchat'),
58 + __('Media library integration', 'mxchat')
59 + ),
60 + 'license' => 'MxChat PRO',
61 + 'accent' => '#ff6b35',
62 + 'url' => 'https://mxchat.ai/mxchat-veo-video-generation/',
63 + 'plugin_file' => 'mxchat-veo/mxchat-veo.php',
64 + 'config_page' => 'mxchat-veo'
65 + ),
66 +
67 + 'mxchat-image-analysis' => array(
68 + 'title' => __('MxChat Image Analysis', 'mxchat'),
69 + 'description' => __('Enhance your chatbot with AI-powered image analysis. Users can upload images for intelligent descriptions, OCR text extraction, and get answers about visual content using OpenAI Vision and Grok APIs.', 'mxchat'),
70 + 'key_benefits' => array(
71 + __('Multiple AI vision models', 'mxchat'),
72 + __('Drag & drop image uploads', 'mxchat'),
73 + __('Custom analysis prompts', 'mxchat')
74 + ),
75 + 'license' => 'MxChat PRO',
76 + 'accent' => '#fa73e6',
77 + 'url' => 'https://mxchat.ai/image-analysis/',
78 + 'plugin_file' => 'mxchat-vision/mxchat-vision.php',
79 + 'config_page' => 'mxchat-vision'
80 + ),
81 +
30 82 'mxchat-forms' => array(
31 83 'title' => __('MxChat Forms', 'mxchat'),
32 - 'description' => __('Create and manage smart forms that automatically trigger during chat conversations. Build custom forms with multiple field types, collect submissions, and export data—all seamlessly integrated with MxChat\'s intent system. No coding required, just intuitive form building for enhanced chat interactions.', 'mxchat'),
84 + 'description' => __('Convert conversations into data collection. Create smart forms that trigger during chats, collect user information, and turn casual visitors into qualified leads.', 'mxchat'),
85 + 'key_benefits' => array(
86 + __('No-code form builder', 'mxchat'),
87 + __('Intent-triggered activation', 'mxchat'),
88 + __('Export lead data easily', 'mxchat')
89 + ),
33 90 'license' => 'MxChat PRO',
34 91 'accent' => '#fa73e6',
35 - 'url' => 'https://quickdeploywp.com/plugin/mxchat-forms/',
92 + 'url' => 'https://mxchat.ai/forms-action/',
36 93 'plugin_file' => 'mxchat-forms/mxchat-forms.php',
37 94 'config_page' => 'mxchat-forms'
38 95 ),
39 96
97 + 'mxchat-multi-bot' => array(
98 + 'title' => __('MxChat Multi-Bot Manager', 'mxchat'),
99 + 'description' => __('Create unlimited specialized chatbots for every purpose. Deploy dedicated bots with separate knowledge bases, custom personalities, and page-specific assignments—perfect for support, sales, and department-specific assistance.', 'mxchat'),
100 + 'key_benefits' => array(
101 + __('Unlimited specialized chatbots', 'mxchat'),
102 + __('Separate Pinecone knowledge bases', 'mxchat'),
103 + __('Page-specific bot assignments', 'mxchat')
104 + ),
105 + 'license' => 'MxChat PRO',
106 + 'accent' => '#8b5cf6',
107 + 'url' => 'https://mxchat.ai/multi-bot/',
108 + 'plugin_file' => 'mxchat-multi-bot/mxchat-multi-bot.php',
109 + 'config_page' => 'mxchat-multi-bot'
110 + ),
111 +
40 112 'mxchat-woo' => array(
41 113 'title' => __('MxChat WooCommerce', 'mxchat'),
42 - 'description' => __('Enhance your WooCommerce store with AI-powered chat interactions. This add-on enables intelligent product recommendations, order history retrieval, cart management, and seamless checkout assistance—fully integrated with MxChat\'s intent system.', 'mxchat'),
114 + 'description' => __('Boost sales with AI-powered shopping assistance. Help customers find products, manage carts, and complete purchases—all through natural conversation.', 'mxchat'),
115 + 'key_benefits' => array(
116 + __('Smart product recommendations', 'mxchat'),
117 + __('Cart & checkout assistance', 'mxchat'),
118 + __('Order history access', 'mxchat')
119 + ),
43 120 'license' => 'MxChat PRO',
44 121 'accent' => '#fa73e6',
45 - 'url' => 'https://quickdeploywp.com/plugin/mxchat-woo/',
122 + 'url' => 'https://mxchat.ai/woocommerce/',
46 123 'plugin_file' => 'mxchat-woo/mxchat-woo.php',
47 124 'config_page' => 'mxchat-woo'
48 125 ),
49 - 'mxchat-theme' => array(
50 - 'title' => __('MxChat Theme Customizer', 'mxchat'),
51 - 'description' => __('MxChat Theme Customizer is a powerful add-on for MxChat Pro that makes it effortless to personalize your chatbot’s appearance. With an intuitive color picker, you can instantly adjust background colors, and interface elements—all with real-time previews. No coding required, just simple, live customization to match your brand’s look.', 'mxchat'),
126 +
127 + 'mxchat-assistant-api' => array(
128 + 'title' => __('MxChat Assistant API', 'mxchat'),
129 + 'description' => __('Unlock the full power of OpenAI Assistants. Bypass MxChat\'s knowledge base and connect directly to your custom OpenAI Assistant for advanced AI capabilities and specialized responses.', 'mxchat'),
130 + 'key_benefits' => array(
131 + __('Custom OpenAI Assistant integration', 'mxchat'),
132 + __('Advanced AI capabilities', 'mxchat'),
133 + __('24-hour conversation persistence', 'mxchat')
134 + ),
52 135 'license' => 'MxChat PRO',
136 + 'accent' => '#00d4aa',
137 + 'url' => 'https://mxchat.ai/openai-assistants-api/',
138 + 'plugin_file' => 'mxchat-assistant-api/mxchat-assistant-api.php',
139 + 'config_page' => 'mxchat-assistant-api'
140 + ),
141 +
142 + 'mxchat-perplexity' => array(
143 + 'title' => __('MxChat Perplexity', 'mxchat'),
144 + 'description' => __('Give your chatbot real-time knowledge. Add powerful web search capabilities so your bot can answer questions about current events and time-sensitive information.', 'mxchat'),
145 + 'key_benefits' => array(
146 + __('Real-time web search', 'mxchat'),
147 + __('Intent-triggered research', 'mxchat'),
148 + __('Up-to-date information', 'mxchat')
149 + ),
150 + 'license' => 'MxChat PRO',
53 151 'accent' => '#fa73e6',
54 - 'url' => 'https://quickdeploywp.com/plugin/mxchat-theme/',
55 - 'plugin_file' => 'mxchat-theme/mxchat-theme.php',
56 - 'config_page' => 'mxchat-theme-settings'
152 + 'url' => 'https://quickdeploywp.com/plugin/mxchat-perplexity/',
153 + 'plugin_file' => 'mxchat-perplexity/mxchat-perplexity.php',
154 + 'config_page' => 'mxchat-perplexity'
57 155 ),
156 +
58 157 'mxchat-moderation' => array(
59 158 'title' => __('MxChat Moderation', 'mxchat'),
60 - 'description' => __('MxChat Moderation is the ultimate add-on for MxChat, giving you full control over who interacts with your chatbot. Effortlessly block spammers, trolls, or unwanted users using IP and email-based bans—keeping your chat clean, safe, and enjoyable. Say goodbye to disruptive users and hello to a smoother, more secure chatbot experience!', 'mxchat'),
159 + 'description' => __('Keep your chat clean and professional. Block unwanted users, filter inappropriate content, and ensure your chatbot represents your brand properly.', 'mxchat'),
160 + 'key_benefits' => array(
161 + __('IP & email-based blocking', 'mxchat'),
162 + __('Content filtering', 'mxchat'),
163 + __('Spam protection', 'mxchat')
164 + ),
61 165 'license' => 'MxChat PRO',
62 166 'accent' => '#fa73e6',
63 167 'url' => 'https://quickdeploywp.com/plugin/mxchat-moderation/',
64 168 'plugin_file' => 'mxchat-moderation/mx-chat-moderation.php',
@@ -63,18 +167,9 @@
63 167 'url' => 'https://quickdeploywp.com/plugin/mxchat-moderation/',
64 168 'plugin_file' => 'mxchat-moderation/mx-chat-moderation.php',
65 169 'config_page' => 'mx-chat-moderation'
66 170 ),
67 - 'mxchat-intent-tester' => array(
68 - 'title' => __('MxChat Intent Tester', 'mxchat'),
69 - 'description' => __('MxChat Intent Tester is an essential add-on for MxChat Pro, empowering you to optimize your chatbot’s intent recognition. Test user queries against your defined intents, view similarity scores, and fine-tune thresholds to ensure accurate responses. Perfect for admins who want to enhance their chatbot’s performance with precision!', 'mxchat'),
70 - 'license' => 'MxChat PRO',
71 - 'accent' => '#fa73e6',
72 - 'url' => 'https://quickdeploywp.com/plugin/mxchat-intent-tester/',
73 - 'plugin_file' => 'mxchat-intent-tester/mxchat-intent-tester.php',
74 - 'config_page' => 'mxchat-intent-tester'
75 - ),
76 -
171 +
77 172 );
78 173 }
79 174
80 175 /**
@@ -80,15 +175,13 @@
80 175 /**
81 176 * Register the stylesheets for the admin area.
82 177 */
83 178 public function enqueue_styles() {
84 - $plugin_version = '2.0.5';
85 -
86 179 wp_enqueue_style(
87 180 'mxchat-addons',
88 181 plugin_dir_url(__FILE__) . '../css/admin-add-ons.css',
89 182 array(),
90 - $plugin_version,
183 + MXCHAT_VERSION,
91 184 'all'
92 185 );
93 186 }
94 187
@@ -97,76 +190,86 @@
97 190 *
98 191 * @param string $plugin_file The plugin's main file path
99 192 * @return array Status information
100 193 */
101 - private function get_addon_status($plugin_file) {
102 - if (!function_exists('get_plugins')) {
103 - require_once ABSPATH . 'wp-admin/includes/plugin.php';
104 - }
194 + private function get_addon_status($plugin_file) {
195 + if (!function_exists('get_plugins')) {
196 + require_once ABSPATH . 'wp-admin/includes/plugin.php';
197 + }
105 198
106 - $all_plugins = get_plugins();
107 - $active_plugins = get_option('active_plugins', array());
199 + $all_plugins = get_plugins();
200 + $active_plugins = get_option('active_plugins', array());
108 201
109 - // Find the addon by iterating through configs
110 - $config_page = '';
111 - foreach ($this->addons_config as $slug => $addon) {
112 - if ($addon['plugin_file'] === $plugin_file) {
113 - $config_page = $addon['config_page'];
114 - break;
202 + // Find the addon by iterating through configs
203 + $config_page = '';
204 + foreach ($this->addons_config as $slug => $addon) {
205 + if ($addon['plugin_file'] === $plugin_file) {
206 + $config_page = $addon['config_page'];
207 + break;
208 + }
115 209 }
116 - }
117 210
118 - if (isset($all_plugins[$plugin_file])) {
119 - if (in_array($plugin_file, $active_plugins)) {
120 - return array(
121 - 'status' => 'active',
122 - 'action_url' => admin_url('admin.php?page=' . $config_page),
123 - 'action_text' => __('Configure', 'mxchat')
124 - );
125 - } else {
126 - return array(
127 - 'status' => 'inactive',
128 - 'action_url' => wp_nonce_url(
129 - admin_url('plugins.php?action=activate&plugin=' . $plugin_file),
130 - 'activate-plugin_' . $plugin_file
131 - ),
132 - 'action_text' => __('Activate', 'mxchat')
133 - );
211 + if (isset($all_plugins[$plugin_file])) {
212 + if (in_array($plugin_file, $active_plugins)) {
213 + return array(
214 + 'status' => 'active',
215 + 'action_url' => admin_url('admin.php?page=' . $config_page),
216 + 'action_text' => __('Configure', 'mxchat')
217 + );
218 + } else {
219 + return array(
220 + 'status' => 'inactive',
221 + 'action_url' => wp_nonce_url(
222 + admin_url('plugins.php?action=activate&plugin=' . $plugin_file),
223 + 'activate-plugin_' . $plugin_file
224 + ),
225 + 'action_text' => __('Activate', 'mxchat')
226 + );
227 + }
134 228 }
229 +
230 + return array(
231 + 'status' => 'not-installed',
232 + 'action_url' => '',
233 + 'action_text' => __('Get Extension', 'mxchat')
234 + );
135 235 }
136 236
137 - return array(
138 - 'status' => 'not-installed',
139 - 'action_url' => '',
140 - 'action_text' => __('Get Extension', 'mxchat')
141 - );
142 -}
143 -
144 237 /**
145 238 * Render the Add Ons page content.
146 239 */
147 240 public function render_page() {
148 241 $this->enqueue_styles();
242 + // Remove the sorting logic and just use the original order
243 + $sorted_addons = $this->addons_config;
244 +
149 245 ?>
150 246 <div class="wrap mxchat-addons-wrapper">
151 - <div class="mxchat-addons-hero">
152 - <h1 class="mxchat-main-title">
153 - <span class="mxchat-gradient-text">Power Up</span> Your Chatbot
154 - </h1>
155 - <p class="mxchat-hero-subtitle">
156 - <?php esc_html_e('Enhance your chatbot with premium & free extensions available through QuickDeployWP, an official distribution platform made by MxChat.', 'mxchat'); ?>
157 - </p>
247 + <div class="mxchat-addons-hero">
248 + <h1 class="mxchat-main-title">
249 + <span class="mxchat-gradient-text">Power Up</span> Your Chatbot
250 + </h1>
251 + <p class="mxchat-hero-subtitle">
252 + <?php esc_html_e('Extend MxChat with these powerful extensions and unlock advanced features.', 'mxchat'); ?>
253 + </p>
254 + </div>
255 +
256 + <div class="mxchat-addons-section">
257 + <div class="mxchat-addons-grid">
258 + <?php foreach ($sorted_addons as $slug => $addon): ?>
259 + <?php $this->render_addon_card($slug, $addon); ?>
260 + <?php endforeach; ?>
261 + </div>
262 + </div>
263 +
264 + <div class="mxchat-cta-section">
265 + <h2><?php esc_html_e('Ready to take your chatbot to the next level?', 'mxchat'); ?></h2>
266 + <p><?php esc_html_e('Get MxChat PRO today and access all premium extensions at one low price.', 'mxchat'); ?></p>
267 + <a href="https://mxchat.ai/" class="mxchat-cta-button" target="_blank"><?php esc_html_e('Learn More', 'mxchat'); ?></a>
268 + </div>
158 269 </div>
159 - <div class="mxchat-addons-grid">
160 - <?php
161 - foreach ($this->addons_config as $slug => $addon) {
162 - $this->render_addon_card($slug, $addon);
163 - }
164 - ?>
165 - </div>
166 - </div>
167 - <?php
168 - }
270 + <?php
271 + }
169 272
170 273 /**
171 274 * Render individual add-on card
172 275 *
@@ -176,26 +279,59 @@
176 279 private function render_addon_card($slug, $addon) {
177 280 $status_info = $this->get_addon_status($addon['plugin_file']);
178 281 $button_url = $status_info['status'] === 'not-installed' ? $addon['url'] : $status_info['action_url'];
179 282 $button_target = $status_info['status'] === 'not-installed' ? '_blank' : '_self';
283 +
284 + // Check if addon is deprecated
285 + $is_deprecated = isset($addon['status']) && $addon['status'] === 'deprecated';
180 286 ?>
181 - <div class="mxchat-addon-card" style="--card-accent: <?php echo esc_attr($addon['accent']); ?>">
182 - <div class="mxchat-addon-badge"><?php echo esc_html(ucfirst($addon['license'])); ?></div>
287 + <div class="mxchat-addon-card <?php echo $is_deprecated ? 'deprecated' : ''; ?>" style="--card-accent: <?php echo esc_attr($addon['accent']); ?>">
288 + <div class="mxchat-addon-badge">
289 + <?php if ($is_deprecated): ?>
290 + <?php esc_html_e('Deprecated', 'mxchat'); ?>
291 + <?php else: ?>
292 + <?php echo esc_html(ucfirst($addon['license'])); ?>
293 + <?php endif; ?>
294 + </div>
183 295 <div class="mxchat-addon-content">
184 296 <h3 class="mxchat-addon-title"><?php echo esc_html($addon['title']); ?></h3>
185 297 <p class="mxchat-addon-description"><?php echo esc_html($addon['description']); ?></p>
298 +
299 + <?php if (!empty($addon['key_benefits'])): ?>
300 + <div class="mxchat-benefits-list">
301 + <?php foreach ($addon['key_benefits'] as $benefit): ?>
302 + <div class="mxchat-benefit-item">
303 + <span class="mxchat-benefit-icon">✓</span>
304 + <?php echo esc_html($benefit); ?>
305 + </div>
306 + <?php endforeach; ?>
307 + </div>
308 + <?php endif; ?>
309 +
186 310 <div class="mxchat-addon-footer">
187 - <div class="mxchat-status-indicator <?php echo esc_attr($status_info['status']); ?>">
188 - <?php echo esc_html(ucfirst(str_replace('-', ' ', $status_info['status']))); ?>
189 - </div>
190 - <a href="<?php echo esc_url($button_url); ?>"
191 - class="mxchat-action-button"
192 - target="<?php echo esc_attr($button_target); ?>"
193 - data-action="<?php echo esc_attr($status_info['status']); ?>">
194 - <?php echo esc_html($status_info['action_text']); ?>
195 - </a>
311 + <?php if ($is_deprecated): ?>
312 + <div class="mxchat-status-indicator deprecated">
313 + <?php esc_html_e('Now Built-in', 'mxchat'); ?>
314 + </div>
315 + <a href="<?php echo esc_url(admin_url('admin.php?page=mxchat-prompts')); ?>"
316 + class="mxchat-action-button deprecated"
317 + target="_self">
318 + <?php esc_html_e('Go to Knowledge Tab', 'mxchat'); ?>
319 + </a>
320 + <?php else: ?>
321 + <div class="mxchat-status-indicator <?php echo esc_attr($status_info['status']); ?>">
322 + <?php echo esc_html(ucfirst(str_replace('-', ' ', $status_info['status']))); ?>
323 + </div>
324 + <a href="<?php echo esc_url($button_url); ?>"
325 + class="mxchat-action-button"
326 + target="<?php echo esc_attr($button_target); ?>"
327 + data-action="<?php echo esc_attr($status_info['status']); ?>">
328 + <?php echo esc_html($status_info['action_text']); ?>
329 + </a>
330 + <?php endif; ?>
196 331 </div>
197 332 </div>
198 333 </div>
199 334 <?php
200 335 }
201 -}
336 +
337 +}