| | 1 | <?php |
| | 2 | |
| | 3 | /** |
| | 4 | * User Profile |
| | 5 | * |
| | 6 | * @package bbPress |
| | 7 | * @subpackage Theme |
| | 8 | */ |
| | 9 | |
| | 10 | do_action( 'bbp_template_before_user_profile' ); ?> |
| | 11 | |
| | 12 | <div id="bbp-user-profile" class="bbp-user-profile"> |
| | 13 | <h2 class="entry-title"><?php esc_html_e( 'Profile', 'wporg-forums' ); ?></h2> |
| | 14 | <div class="bbp-user-section"> |
| | 15 | |
| | 16 | <?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?> |
| | 17 | |
| | 18 | <p class="bbp-user-description"><?php bbp_displayed_user_field( 'description' ); ?></p> |
| | 19 | |
| | 20 | <?php endif; ?> |
| | 21 | |
| | 22 | <p class="bbp-user-forum-role"><?php printf( esc_html__( 'Forum Role: %s', 'wporg-forums' ), bbp_get_user_display_role() ); ?></p> |
| | 23 | <p class="bbp-user-member-since"><?php printf( esc_html__( 'Member Since: %s', 'wporg-forums' ), wporg_support_get_user_registered_date() ); ?></p> |
| | 24 | <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Topics Started: %s', 'wporg-forums' ), bbp_get_user_topic_count_raw() ); ?></p> |
| | 25 | <p class="bbp-user-reply-count"><?php printf( esc_html__( 'Replies Created: %s', 'wporg-forums' ), bbp_get_user_reply_count_raw() ); ?></p> |
| | 26 | </div> |
| | 27 | </div><!-- #bbp-author-topics-started --> |
| | 28 | |
| | 29 | <?php do_action( 'bbp_template_after_user_profile' ); |