PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / trunk
Forumax – AI Powered Advanced Community Forum Plugin vtrunk
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 2.0.0 2.1.0 All 29 releases
bbp-core / includes / admin / menu / dashboard.php

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

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