PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.1
Forumax – AI Powered Advanced Community Forum Plugin v2.5.1
2.5.1 2.5.0 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 All 31 releases
bbp-core / includes / admin / menu / dashboard.php

dashboard.php in Forumax – AI Powered Advanced Community Forum Plugin 2.5.1, at includes/admin/menu/dashboard.php

687 lines 36.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Forumax Dashboard Template
4 *
5 * Displays comprehensive forum statistics, quick actions, and system status.
6 *
7 * @package Forumax
8 * @since 2.1.0
9 */
10
11 if (!defined('ABSPATH')) {
12 exit;
13 }
14
15 ?>
16 <style>
17 .forumax-stat-unanswered .forumax-stat-number {
18 color: #f59e0b;
19 }
20 .forumax-recent-unanswered .forumax-empty-state .dashicons {
21 color: #4ade80;
22 }
23 </style>
24 <?php
25
26 if (!class_exists('bbPress')) {
27 ?>
28 <div class="wrap">
29 <div class="forumax-dashboard-error">
30 <h2>
31 <?php esc_html_e('bbPress is Required', 'forumax'); ?>
32 </h2>
33 <p>
34 <?php esc_html_e('The Forumax Dashboard requires bbPress to be installed and activated.', 'forumax'); ?>
35 </p>
36 </div>
37 </div>
38 <?php
39 return;
40 }
41
42 // Get forum statistics.
43 $stats = bbp_get_statistics();
44
45 // Extract statistics with defaults.
46 $forum_count = isset($stats['forum_count_int']) ? (int) $stats['forum_count_int'] : 0;
47 $topic_count = isset($stats['topic_count_int']) ? (int) $stats['topic_count_int'] : 0;
48 $topic_count_hidden = isset($stats['topic_count_hidden_int']) ? (int) $stats['topic_count_hidden_int'] : 0;
49 $reply_count = isset($stats['reply_count_int']) ? (int) $stats['reply_count_int'] : 0;
50 $reply_count_hidden = isset($stats['reply_count_hidden_int']) ? (int) $stats['reply_count_hidden_int'] : 0;
51 $topic_tag_count = isset($stats['topic_tag_count_int']) ? (int) $stats['topic_tag_count_int'] : 0;
52 $user_count = isset($stats['user_count_int']) ? (int) $stats['user_count_int'] : 0;
53
54 // Get additional statistics.
55 $published_topics = $topic_count - $topic_count_hidden;
56 $published_replies = $reply_count - $reply_count_hidden;
57
58 // Get recent topics.
59 $recent_topics = new WP_Query(array(
60 'post_type' => bbp_get_topic_post_type(),
61 'posts_per_page' => 5,
62 'post_status' => 'publish',
63 'orderby' => 'date',
64 'order' => 'DESC',
65 ));
66
67 // Get recent replies.
68 $recent_replies = new WP_Query(array(
69 'post_type' => bbp_get_reply_post_type(),
70 'posts_per_page' => 5,
71 'post_status' => 'publish',
72 'orderby' => 'date',
73 'order' => 'DESC',
74 ));
75
76 // Get pending/spam topics.
77 $pending_topics = new WP_Query(array(
78 'post_type' => bbp_get_topic_post_type(),
79 'posts_per_page' => 1,
80 'post_status' => array('pending', 'spam'),
81 'fields' => 'ids',
82 'update_post_meta_cache' => false,
83 'update_post_term_cache' => false,
84 ));
85 $pending_count = $pending_topics->found_posts;
86
87 // Calculate engagement metrics.
88 $avg_replies_per_topic = $published_topics > 0 ? round($published_replies / $published_topics, 1) : 0;
89
90 ?>
91 <div class="wrap forumax-dashboard-wrap">
92 <div class="forumax-dashboard">
93 <!-- Dashboard Header -->
94 <header class="forumax-dashboard-header">
95 <div class="forumax-dashboard-header-left">
96 <div class="forumax-logo">
97 <img src="<?php echo esc_url(FORUMAX_IMG . 'logo.svg'); ?>"
98 alt="<?php esc_attr_e('Forumax Logo', 'forumax'); ?>">
99 </div>
100 <div class="forumax-header-text">
101 <h1>
102 <?php esc_html_e('Dashboard', 'forumax'); ?>
103 </h1>
104 <p>
105 <?php esc_html_e('Your forum overview at a glance', 'forumax'); ?>
106 </p>
107 </div>
108 </div>
109 <div class="forumax-dashboard-header-right">
110 <span class="forumax-version">
111 <?php echo esc_html('v' . FORUMAX_VERSION); ?>
112 </span>
113 <a href="<?php echo esc_url(admin_url('admin.php?page=forumax-settings')); ?>"
114 class="forumax-btn forumax-btn-secondary">
115 <span class="dashicons dashicons-admin-generic"></span>
116 <?php esc_html_e('Settings', 'forumax'); ?>
117 </a>
118 </div>
119 </header>
120
121 <!-- Statistics Cards -->
122 <section class="forumax-stats-section">
123 <div class="forumax-stats-grid">
124 <!-- Forums Card -->
125 <div class="forumax-stat-card forumax-stat-forums">
126 <div class="forumax-stat-icon">
127 <span class="dashicons dashicons-buddicons-forums"></span>
128 </div>
129 <div class="forumax-stat-content">
130 <span class="forumax-stat-number">
131 <?php echo esc_html(number_format_i18n($forum_count)); ?>
132 </span>
133 <span class="forumax-stat-label">
134 <?php esc_html_e('Forums', 'forumax'); ?>
135 </span>
136 </div>
137 <a href="<?php echo esc_url(admin_url('edit.php?post_type=forum')); ?>"
138 class="forumax-stat-link">
139 <?php esc_html_e('View All', 'forumax'); ?>
140 <span class="dashicons dashicons-arrow-right-alt2"></span>
141 </a>
142 </div>
143
144 <!-- Unanswered Topics Card -->
145 <div class="forumax-stat-card forumax-stat-unanswered">
146 <div class="forumax-stat-icon">
147 <span class="dashicons dashicons-format-status"></span>
148 </div>
149 <div class="forumax-stat-content">
150 <span class="forumax-stat-number">
151 <?php echo esc_html(number_format_i18n(forumax_get_unanswered_topics_count())); ?>
152 </span>
153 <span class="forumax-stat-label">
154 <?php esc_html_e('Unanswered', 'forumax'); ?>
155 </span>
156 </div>
157 <a href="<?php echo esc_url(admin_url('edit.php?post_type=topic&post_status=publish&forumax_filter=unanswered')); ?>"
158 class="forumax-stat-link">
159 <?php esc_html_e('View All', 'forumax'); ?>
160 <span class="dashicons dashicons-arrow-right-alt2"></span>
161 </a>
162 </div>
163
164 <!-- Topics Card -->
165 <div class="forumax-stat-card forumax-stat-topics">
166 <div class="forumax-stat-icon">
167 <span class="dashicons dashicons-buddicons-topics"></span>
168 </div>
169 <div class="forumax-stat-content">
170 <span class="forumax-stat-number">
171 <?php echo esc_html(number_format_i18n($published_topics)); ?>
172 </span>
173 <span class="forumax-stat-label">
174 <?php esc_html_e('Topics', 'forumax'); ?>
175 </span>
176 </div>
177 <?php if ($topic_count_hidden > 0): ?>
178 <span class="forumax-stat-badge forumax-badge-warning"
179 title="<?php esc_attr_e('Hidden Topics', 'forumax'); ?>">
180 +
181 <?php echo esc_html($topic_count_hidden); ?>
182 <?php esc_html_e('hidden', 'forumax'); ?>
183 </span>
184 <?php endif; ?>
185 <a href="<?php echo esc_url(admin_url('edit.php?post_type=topic')); ?>"
186 class="forumax-stat-link">
187 <?php esc_html_e('View All', 'forumax'); ?>
188 <span class="dashicons dashicons-arrow-right-alt2"></span>
189 </a>
190 </div>
191
192 <!-- Replies Card -->
193 <div class="forumax-stat-card forumax-stat-replies">
194 <div class="forumax-stat-icon">
195 <span class="dashicons dashicons-buddicons-replies"></span>
196 </div>
197 <div class="forumax-stat-content">
198 <span class="forumax-stat-number">
199 <?php echo esc_html(number_format_i18n($published_replies)); ?>
200 </span>
201 <span class="forumax-stat-label">
202 <?php esc_html_e('Replies', 'forumax'); ?>
203 </span>
204 </div>
205 <a href="<?php echo esc_url(admin_url('edit.php?post_type=reply')); ?>"
206 class="forumax-stat-link">
207 <?php esc_html_e('View All', 'forumax'); ?>
208 <span class="dashicons dashicons-arrow-right-alt2"></span>
209 </a>
210 </div>
211
212 <!-- Users Card -->
213 <div class="forumax-stat-card forumax-stat-users">
214 <div class="forumax-stat-icon">
215 <span class="dashicons dashicons-groups"></span>
216 </div>
217 <div class="forumax-stat-content">
218 <span class="forumax-stat-number">
219 <?php echo esc_html(number_format_i18n($user_count)); ?>
220 </span>
221 <span class="forumax-stat-label">
222 <?php esc_html_e('Users', 'forumax'); ?>
223 </span>
224 </div>
225 <a href="<?php echo esc_url(admin_url('users.php')); ?>" class="forumax-stat-link">
226 <?php esc_html_e('View All', 'forumax'); ?>
227 <span class="dashicons dashicons-arrow-right-alt2"></span>
228 </a>
229 </div>
230
231 <!-- Topic Tags Card -->
232 <div class="forumax-stat-card forumax-stat-tags">
233 <div class="forumax-stat-icon">
234 <span class="dashicons dashicons-tag"></span>
235 </div>
236 <div class="forumax-stat-content">
237 <span class="forumax-stat-number">
238 <?php echo esc_html(number_format_i18n($topic_tag_count)); ?>
239 </span>
240 <span class="forumax-stat-label">
241 <?php esc_html_e('Topic Tags', 'forumax'); ?>
242 </span>
243 </div>
244 <a href="<?php echo esc_url(admin_url('edit-tags.php?taxonomy=topic-tag')); ?>"
245 class="forumax-stat-link">
246 <?php esc_html_e('View All', 'forumax'); ?>
247 <span class="dashicons dashicons-arrow-right-alt2"></span>
248 </a>
249 </div>
250
251 <!-- Pending Moderation Card -->
252 <div
253 class="forumax-stat-card forumax-stat-pending <?php echo $pending_count > 0 ? 'has-pending' : ''; ?>">
254 <div class="forumax-stat-icon">
255 <span class="dashicons dashicons-visibility"></span>
256 </div>
257 <div class="forumax-stat-content">
258 <span class="forumax-stat-number">
259 <?php echo esc_html(number_format_i18n($pending_count)); ?>
260 </span>
261 <span class="forumax-stat-label">
262 <?php esc_html_e('Pending Review', 'forumax'); ?>
263 </span>
264 </div>
265 <?php if ($pending_count > 0): ?>
266 <span class="forumax-stat-badge forumax-badge-alert">
267 <?php esc_html_e('Needs Attention', 'forumax'); ?>
268 </span>
269 <?php endif; ?>
270 <a href="<?php echo esc_url(admin_url('edit.php?post_type=topic&post_status=pending')); ?>"
271 class="forumax-stat-link">
272 <?php esc_html_e('View All', 'forumax'); ?>
273 <span class="dashicons dashicons-arrow-right-alt2"></span>
274 </a>
275 </div>
276 </div>
277 </section>
278
279 <!-- Main Dashboard Content -->
280 <div class="forumax-dashboard-content">
281 <!-- Left Column -->
282 <div class="forumax-dashboard-main">
283 <!-- Quick Actions -->
284 <section class="forumax-card forumax-quick-actions">
285 <div class="forumax-card-header">
286 <h2><span class="dashicons dashicons-superhero"></span>
287 <?php esc_html_e('Quick Actions', 'forumax'); ?>
288 </h2>
289 </div>
290 <div class="forumax-card-body">
291 <div class="forumax-actions-grid">
292 <a href="<?php echo esc_url(admin_url('admin.php?page=forumax-builder')); ?>"
293 class="forumax-action-item">
294 <div class="forumax-action-icon">
295 <span class="dashicons dashicons-welcome-widgets-menus"></span>
296 </div>
297 <span class="forumax-action-label">
298 <?php esc_html_e('Forum Builder', 'forumax'); ?>
299 </span>
300 </a>
301 <a href="<?php echo esc_url(admin_url('post-new.php?post_type=forum')); ?>"
302 class="forumax-action-item">
303 <div class="forumax-action-icon">
304 <span class="dashicons dashicons-plus-alt"></span>
305 </div>
306 <span class="forumax-action-label">
307 <?php esc_html_e('New Forum', 'forumax'); ?>
308 </span>
309 </a>
310 <a href="<?php echo esc_url(admin_url('post-new.php?post_type=topic')); ?>"
311 class="forumax-action-item">
312 <div class="forumax-action-icon">
313 <span class="dashicons dashicons-edit-page"></span>
314 </div>
315 <span class="forumax-action-label">
316 <?php esc_html_e('New Topic', 'forumax'); ?>
317 </span>
318 </a>
319 <a href="<?php echo esc_url(admin_url('admin.php?page=forumax-settings')); ?>"
320 class="forumax-action-item">
321 <div class="forumax-action-icon">
322 <span class="dashicons dashicons-admin-settings"></span>
323 </div>
324 <span class="forumax-action-label">
325 <?php esc_html_e('Settings', 'forumax'); ?>
326 </span>
327 </a>
328 </div>
329 </div>
330 </section>
331
332 <!-- Recent Topics -->
333 <section class="forumax-card forumax-recent-topics">
334 <div class="forumax-card-header">
335 <h2><span class="dashicons dashicons-buddicons-topics"></span>
336 <?php esc_html_e('Recent Topics', 'forumax'); ?>
337 </h2>
338 <a href="<?php echo esc_url(admin_url('edit.php?post_type=topic')); ?>"
339 class="forumax-view-all">
340 <?php esc_html_e('View All', 'forumax'); ?>
341 </a>
342 </div>
343 <div class="forumax-card-body">
344 <?php if ($recent_topics->have_posts()): ?>
345 <ul class="forumax-activity-list">
346 <?php
347 while ($recent_topics->have_posts()):
348 $recent_topics->the_post();
349 $topic_id = get_the_ID();
350 $author_id = get_the_author_meta('ID');
351 $author_name = get_the_author();
352 $topic_forum = bbp_get_topic_forum_id($topic_id);
353 $forum_title = get_the_title($topic_forum);
354 $reply_count_topic = bbp_get_topic_reply_count($topic_id);
355 ?>
356 <li class="forumax-activity-item">
357 <div class="forumax-activity-avatar">
358 <?php echo get_avatar($author_id, 40); ?>
359 </div>
360 <div class="forumax-activity-content">
361 <a href="<?php echo esc_url(get_edit_post_link($topic_id)); ?>"
362 class="forumax-activity-title">
363 <?php the_title(); ?>
364 </a>
365 <div class="forumax-activity-meta">
366 <span class="forumax-activity-author">
367 <?php echo esc_html($author_name); ?>
368 </span>
369 <span class="forumax-activity-separator">•</span>
370 <span class="forumax-activity-forum">
371 <?php echo esc_html($forum_title); ?>
372 </span>
373 <span class="forumax-activity-separator">•</span>
374 <span class="forumax-activity-date">
375 <?php echo esc_html(human_time_diff(get_the_time('U'), current_time('timestamp'))); ?>
376 <?php esc_html_e('ago', 'forumax'); ?>
377 </span>
378 </div>
379 </div>
380 <div class="forumax-activity-stats">
381 <span class="forumax-reply-count"
382 title="<?php esc_attr_e('Replies', 'forumax'); ?>">
383 <span class="dashicons dashicons-admin-comments"></span>
384 <?php echo esc_html($reply_count_topic); ?>
385 </span>
386 </div>
387 </li>
388 <?php endwhile; ?>
389 <?php wp_reset_postdata(); ?>
390 </ul>
391 <?php else: ?>
392 <div class="forumax-empty-state">
393 <span class="dashicons dashicons-format-chat"></span>
394 <p>
395 <?php esc_html_e('No topics yet. Create your first topic!', 'forumax'); ?>
396 </p>
397 </div>
398 <?php endif; ?>
399 </div>
400 </section>
401
402 <!-- Recent Unanswered Topics -->
403 <section class="forumax-card forumax-recent-unanswered">
404 <div class="forumax-card-header">
405 <h2><span class="dashicons dashicons-flag"></span>
406 <?php esc_html_e('Unanswered Topics', 'forumax'); ?>
407 </h2>
408 <a href="<?php echo esc_url(admin_url('edit.php?post_type=topic&post_status=publish&forumax_filter=unanswered')); ?>"
409 class="forumax-view-all">
410 <?php esc_html_e('View All', 'forumax'); ?>
411 </a>
412 </div>
413 <div class="forumax-card-body">
414 <?php
415 $recent_unanswered = forumax_get_recent_unanswered_topics( 5 );
416 if ($recent_unanswered): ?>
417 <ul class="forumax-activity-list">
418 <?php
419 foreach ($recent_unanswered as $unanswered_topic):
420 $topic_id = $unanswered_topic->ID;
421 $author_id = $unanswered_topic->post_author;
422 $author_name = get_the_author_meta('display_name', $author_id);
423 $topic_forum = bbp_get_topic_forum_id($topic_id);
424 $forum_title = get_the_title($topic_forum);
425 ?>
426 <li class="forumax-activity-item">
427 <div class="forumax-activity-avatar">
428 <?php echo get_avatar($author_id, 40); ?>
429 </div>
430 <div class="forumax-activity-content">
431 <a href="<?php echo esc_url(get_edit_post_link($topic_id)); ?>"
432 class="forumax-activity-title">
433 <?php echo esc_html($unanswered_topic->post_title); ?>
434 </a>
435 <div class="forumax-activity-meta">
436 <span class="forumax-activity-author">
437 <?php echo esc_html($author_name); ?>
438 </span>
439 <span class="forumax-activity-separator">•</span>
440 <span class="forumax-activity-forum">
441 <?php echo esc_html($forum_title); ?>
442 </span>
443 <span class="forumax-activity-separator">•</span>
444 <span class="forumax-activity-date">
445 <?php echo esc_html(human_time_diff(strtotime($unanswered_topic->post_date), current_time('timestamp'))); ?>
446 <?php esc_html_e('ago', 'forumax'); ?>
447 </span>
448 </div>
449 </div>
450 </li>
451 <?php endforeach; ?>
452 </ul>
453 <?php else: ?>
454 <div class="forumax-empty-state">
455 <span class="dashicons dashicons-yes"></span>
456 <p>
457 <?php esc_html_e('Great job! No unanswered topics.', 'forumax'); ?>
458 </p>
459 </div>
460 <?php endif; ?>
461 </div>
462 </section>
463
464 <!-- Recent Replies -->
465 <section class="forumax-card forumax-recent-replies">
466 <div class="forumax-card-header">
467 <h2><span class="dashicons dashicons-buddicons-replies"></span>
468 <?php esc_html_e('Recent Replies', 'forumax'); ?>
469 </h2>
470 <a href="<?php echo esc_url(admin_url('edit.php?post_type=reply')); ?>"
471 class="forumax-view-all">
472 <?php esc_html_e('View All', 'forumax'); ?>
473 </a>
474 </div>
475 <div class="forumax-card-body">
476 <?php if ($recent_replies->have_posts()): ?>
477 <ul class="forumax-activity-list">
478 <?php
479 while ($recent_replies->have_posts()):
480 $recent_replies->the_post();
481 $reply_id = get_the_ID();
482 $author_id = get_the_author_meta('ID');
483 $author_name = get_the_author();
484 $reply_topic = bbp_get_reply_topic_id($reply_id);
485 $topic_title = get_the_title($reply_topic);
486 $reply_content = wp_trim_words(get_the_content(), 15, '...');
487 ?>
488 <li class="forumax-activity-item">
489 <div class="forumax-activity-avatar">
490 <?php echo get_avatar($author_id, 40); ?>
491 </div>
492 <div class="forumax-activity-content">
493 <div class="forumax-activity-excerpt">
494 <?php echo esc_html($reply_content); ?>
495 </div>
496 <div class="forumax-activity-meta">
497 <span class="forumax-activity-author">
498 <?php echo esc_html($author_name); ?>
499 </span>
500 <span class="forumax-activity-separator">•</span>
501 <span class="forumax-activity-topic">
502 <?php esc_html_e('on', 'forumax'); ?> <a
503 href="<?php echo esc_url(get_edit_post_link($reply_topic)); ?>">
504 <?php echo esc_html($topic_title); ?>
505 </a>
506 </span>
507 <span class="forumax-activity-separator">•</span>
508 <span class="forumax-activity-date">
509 <?php echo esc_html(human_time_diff(get_the_time('U'), current_time('timestamp'))); ?>
510 <?php esc_html_e('ago', 'forumax'); ?>
511 </span>
512 </div>
513 </div>
514 </li>
515 <?php endwhile; ?>
516 <?php wp_reset_postdata(); ?>
517 </ul>
518 <?php else: ?>
519 <div class="forumax-empty-state">
520 <span class="dashicons dashicons-format-chat"></span>
521 <p>
522 <?php esc_html_e('No replies yet.', 'forumax'); ?>
523 </p>
524 </div>
525 <?php endif; ?>
526 </div>
527 </section>
528 </div>
529
530 <!-- Right Column / Sidebar -->
531 <div class="forumax-dashboard-sidebar">
532 <!-- Engagement Stats -->
533 <section class="forumax-card forumax-engagement-stats">
534 <div class="forumax-card-header">
535 <h2><span class="dashicons dashicons-chart-bar"></span>
536 <?php esc_html_e('Engagement', 'forumax'); ?>
537 </h2>
538 </div>
539 <div class="forumax-card-body">
540 <div class="forumax-engagement-item">
541 <span class="forumax-engagement-label">
542 <?php esc_html_e('Avg. Replies per Topic', 'forumax'); ?>
543 </span>
544 <span class="forumax-engagement-value">
545 <?php echo esc_html($avg_replies_per_topic); ?>
546 </span>
547 </div>
548 <div class="forumax-engagement-item">
549 <span class="forumax-engagement-label">
550 <?php esc_html_e('Total Discussions', 'forumax'); ?>
551 </span>
552 <span class="forumax-engagement-value">
553 <?php echo esc_html(number_format_i18n($published_topics + $published_replies)); ?>
554 </span>
555 </div>
556 </div>
557 </section>
558
559 <!-- Pro Features / Upgrade -->
560 <?php if (!forumax_is_premium()): ?>
561 <section class="forumax-card forumax-pro-upgrade">
562 <div class="forumax-card-header forumax-gradient-header">
563 <h2><span class="dashicons dashicons-star-filled"></span>
564 <?php esc_html_e('Upgrade to Pro', 'forumax'); ?>
565 </h2>
566 </div>
567 <div class="forumax-card-body">
568 <ul class="forumax-pro-features">
569 <li><span class="dashicons dashicons-yes-alt"></span>
570 <?php esc_html_e('Private Replies (Pro)', 'forumax'); ?>
571 </li>
572 <li><span class="dashicons dashicons-yes-alt"></span>
573 <?php esc_html_e('Topic Voting System', 'forumax'); ?>
574 </li>
575 <li><span class="dashicons dashicons-yes-alt"></span>
576 <?php esc_html_e('Advanced Attachments', 'forumax'); ?>
577 </li>
578 <li><span class="dashicons dashicons-yes-alt"></span>
579 <?php esc_html_e('Notifications', 'forumax'); ?>
580 </li>
581 <li><span class="dashicons dashicons-yes-alt"></span>
582 <?php esc_html_e('Elementor Templates', 'forumax'); ?>
583 </li>
584 </ul>
585 <a href="<?php echo esc_url(bc_fs()->get_upgrade_url()); ?>"
586 class="forumax-btn forumax-btn-upgrade">
587 <?php esc_html_e('Upgrade Now', 'forumax'); ?>
588 <span class="dashicons dashicons-arrow-right-alt"></span>
589 </a>
590 </div>
591 </section>
592 <?php endif; ?>
593
594 <!-- System Info -->
595 <section class="forumax-card forumax-system-info">
596 <div class="forumax-card-header">
597 <h2><span class="dashicons dashicons-info-outline"></span>
598 <?php esc_html_e('System Info', 'forumax'); ?>
599 </h2>
600 </div>
601 <div class="forumax-card-body">
602 <div class="forumax-info-item">
603 <span class="forumax-info-label">
604 <?php esc_html_e('Forumax Version', 'forumax'); ?>
605 </span>
606 <span class="forumax-info-value">
607 <?php echo esc_html(FORUMAX_VERSION); ?>
608 </span>
609 </div>
610 <div class="forumax-info-item">
611 <span class="forumax-info-label">
612 <?php esc_html_e('bbPress Version', 'forumax'); ?>
613 </span>
614 <span class="forumax-info-value">
615 <?php echo esc_html(bbp_get_version()); ?>
616 </span>
617 </div>
618 <div class="forumax-info-item">
619 <span class="forumax-info-label">
620 <?php esc_html_e('WordPress Version', 'forumax'); ?>
621 </span>
622 <span class="forumax-info-value">
623 <?php echo esc_html(get_bloginfo('version')); ?>
624 </span>
625 </div>
626 <div class="forumax-info-item">
627 <span class="forumax-info-label">
628 <?php esc_html_e('PHP Version', 'forumax'); ?>
629 </span>
630 <span class="forumax-info-value">
631 <?php echo esc_html(phpversion()); ?>
632 </span>
633 </div>
634 <div class="forumax-info-item">
635 <span class="forumax-info-label">
636 <?php esc_html_e('Plan', 'forumax'); ?>
637 </span>
638 <span
639 class="forumax-info-value forumax-plan-badge <?php echo forumax_is_premium() ? 'pro' : 'free'; ?>">
640 <?php echo forumax_is_premium() ? esc_html__('Pro', 'forumax') : esc_html__('Free', 'forumax'); ?>
641 </span>
642 </div>
643 </div>
644 </section>
645
646 <!-- Helpful Links -->
647 <section class="forumax-card forumax-helpful-links">
648 <div class="forumax-card-header">
649 <h2><span class="dashicons dashicons-editor-help"></span>
650 <?php esc_html_e('Helpful Links', 'forumax'); ?>
651 </h2>
652 </div>
653 <div class="forumax-card-body">
654 <ul class="forumax-links-list">
655 <li>
656 <a href="https://helpdesk.spider-themes.net/docs/forumax-wordpress-plugin/"
657 target="_blank" rel="noopener noreferrer">
658 <span class="dashicons dashicons-book"></span>
659 <?php esc_html_e('Documentation', 'forumax'); ?>
660 </a>
661 </li>
662 <li>
663 <a href="https://wordpress.org/support/plugin/bbp-core" target="_blank" rel="noopener noreferrer">
664 <span class="dashicons dashicons-sos"></span>
665 <?php esc_html_e('Support', 'forumax'); ?>
666 </a>
667 </li>
668 <li>
669 <a href="https://forumax.spider-themes.net/" target="_blank" rel="noopener noreferrer">
670 <span class="dashicons dashicons-desktop"></span>
671 <?php esc_html_e('Live Demo', 'forumax'); ?>
672 </a>
673 </li>
674 <li>
675 <a href="https://wordpress.org/support/plugin/bbp-core/reviews/#new-post" target="_blank"
676 rel="noopener noreferrer">
677 <span class="dashicons dashicons-star-filled"></span>
678 <?php esc_html_e('Leave a Review', 'forumax'); ?>
679 </a>
680 </li>
681 </ul>
682 </div>
683 </section>
684 </div>
685 </div>
686 </div>
687 </div>