PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.0.0
Forumax – AI Powered Advanced Community Forum Plugin v2.0.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 / user-profile.php

user-profile.php in Forumax – AI Powered Advanced Community Forum Plugin 2.0.0, at templates/user-profile.php

49 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * User Profile
5 *
6 * @package bbPress
7 * @subpackage Theme
8 */
9
10 // Exit if accessed directly
11 defined( 'ABSPATH' ) || exit;
12
13 do_action( 'bbp_template_before_user_profile' ); ?>
14
15 <div id="bbp-user-profile" class="bbp-user-profile">
16 <h2 class="entry-title">@<?php bbp_displayed_user_field( 'user_nicename' ); ?></h2>
17 <div class="bbp-user-section">
18 <h3><?php esc_html_e( 'Profile', 'forumax' ); ?></h3>
19 <p class="bbp-user-forum-role"><?php printf( esc_html__( 'Registered: %s', 'forumax' ), bbp_get_time_since( bbp_get_displayed_user_field( 'user_registered' ) ) ); ?></p>
20
21 <?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?>
22
23 <p class="bbp-user-description"><?php echo bbp_rel_nofollow( bbp_get_displayed_user_field( 'description' ) ); ?></p>
24
25 <?php endif; ?>
26
27 <?php if ( bbp_get_displayed_user_field( 'user_url' ) ) : ?>
28
29 <p class="bbp-user-website"><?php printf( esc_html__( 'Website: %s', 'forumax' ), bbp_rel_nofollow( bbp_make_clickable( bbp_get_displayed_user_field( 'user_url' ) ) ) ); ?></p>
30
31 <?php endif; ?>
32
33 <hr>
34 <h3><?php esc_html_e( 'Forums', 'forumax' ); ?></h3>
35
36 <?php if ( bbp_get_user_last_posted() ) : ?>
37
38 <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Last Activity: %s', 'forumax' ), bbp_get_time_since( bbp_get_user_last_posted() ) ); ?></p>
39
40 <?php endif; ?>
41
42 <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Topics Started: %s', 'forumax' ), bbp_get_user_topic_count() ); ?></p>
43 <p class="bbp-user-reply-count"><?php printf( esc_html__( 'Replies Created: %s', 'forumax' ), bbp_get_user_reply_count() ); ?></p>
44 <p class="bbp-user-forum-role"><?php printf( esc_html__( 'Forum Role: %s', 'forumax' ), bbp_get_user_display_role() ); ?></p>
45 </div>
46 </div><!-- #bbp-author-topics-started -->
47
48 <?php do_action( 'bbp_template_after_user_profile' );
49