PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.4.0
Forumax – AI Powered Advanced Community Forum Plugin v2.4.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 2.0.0 2.1.0 All 29 releases
bbp-core / templates / content-single-user.php

content-single-user.php in Forumax – AI Powered Advanced Community Forum Plugin 2.4.0, at templates/content-single-user.php

59 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Single User Content Part
4 *
5 * @package bbPress
6 * @subpackage Theme
7 */
8
9 // Exit if accessed directly
10 defined('ABSPATH') || exit;
11 ?>
12
13 <div id="bbpress-forums" class="bbpress-wrapper">
14
15 <?php do_action('bbp_template_notices'); ?>
16
17 <?php do_action('bbp_template_before_user_wrapper'); ?>
18
19 <div id="bbp-user-wrapper" class="frmx-row">
20
21 <?php bbp_get_template_part('user', 'details'); ?>
22
23 <div class="frmx-col-md-9">
24 <div class="frmx-shadow-lg frmx-p-md-5 frmx-p-3 frmx-mx-3 bbp-user-body">
25 <?php if (bbp_is_favorites())
26 bbp_get_template_part('user', 'favorites'); ?>
27 <?php if (bbp_is_subscriptions())
28 bbp_get_template_part('user', 'subscriptions'); ?>
29 <?php if (bbp_is_single_user_engagements())
30 bbp_get_template_part('user', 'engagements'); ?>
31 <?php if (bbp_is_single_user_topics())
32 bbp_get_template_part('user', 'topics-created'); ?>
33 <?php if (bbp_is_single_user_replies())
34 bbp_get_template_part('user', 'replies-created'); ?>
35 <?php if (bbp_is_single_user_edit())
36 bbp_get_template_part('form', 'user-edit'); ?>
37 <?php
38 /**
39 * Render badges & gamification tab content.
40 *
41 * When the frmx_tab=badges query parameter is set,
42 * display the gamification section instead of the
43 * default profile content.
44 */
45 $frmx_active_tab = isset( $_GET['frmx_tab'] ) ? sanitize_text_field( wp_unslash( $_GET['frmx_tab'] ) ) : '';
46
47 if ( 'badges' === $frmx_active_tab && function_exists( 'frmx_display_user_profile_gamification' ) ) {
48 frmx_display_user_profile_gamification();
49 } elseif ( bbp_is_single_user_profile() ) {
50 bbp_get_template_part('user', 'profile');
51 }
52 ?>
53 </div>
54 </div>
55 </div>
56
57 <?php do_action('bbp_template_after_user_wrapper'); ?>
58
59 </div>