| @@ -15,35 +15,20 @@ | ||
| 15 | 15 | <div id="bbp-user-profile" class="bbp-user-profile"> |
| 16 | 16 | <h2 class="entry-title">@<?php bbp_displayed_user_field( 'user_nicename' ); ?></h2> |
| 17 | 17 | <div class="bbp-user-section"> |
| 18 | 18 | <h3><?php esc_html_e( 'Profile', 'bbpress' ); ?></h3> |
| 19 | + <p class="bbp-user-forum-role"><?php printf( esc_html__( 'Registered: %s', 'bbpress' ), bbp_get_time_since( bbp_get_displayed_user_field( 'user_registered' ) ) ); ?></p> | |
| 19 | 20 | |
| 20 | - <p class="bbp-user-forum-role"> | |
| 21 | - <?php | |
| 22 | - printf( | |
| 23 | - /* translators: %s: Registration date in "time ago" format */ | |
| 24 | - esc_html__( 'Registered: %s', 'bbpress' ), | |
| 25 | - bbp_get_time_since( bbp_get_displayed_user_field( 'user_registered' ) ) | |
| 26 | - ); | |
| 27 | - ?> | |
| 28 | - </p> | |
| 21 | + <?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?> | |
| 29 | 22 | |
| 30 | - <?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?> | |
| 31 | - <p class="bbp-user-description"> | |
| 32 | - <?php echo bbp_rel_nofollow( bbp_get_displayed_user_field( 'description' ) ); ?> | |
| 33 | - </p> | |
| 23 | + <p class="bbp-user-description"><?php echo bbp_rel_nofollow( bbp_get_displayed_user_field( 'description' ) ); ?></p> | |
| 24 | + | |
| 34 | 25 | <?php endif; ?> |
| 35 | 26 | |
| 36 | 27 | <?php if ( bbp_get_displayed_user_field( 'user_url' ) ) : ?> |
| 37 | - <p class="bbp-user-website"> | |
| 38 | - <?php | |
| 39 | - printf( | |
| 40 | - /* translators: %s: User's website URL */ | |
| 41 | - esc_html__( 'Website: %s', 'bbpress' ), | |
| 42 | - bbp_rel_nofollow( bbp_make_clickable( bbp_get_displayed_user_field( 'user_url' ) ) ) | |
| 43 | - ); | |
| 44 | - ?> | |
| 45 | - </p> | |
| 28 | + | |
| 29 | + <p class="bbp-user-website"><?php printf( esc_html__( 'Website: %s', 'bbpress' ), bbp_rel_nofollow( bbp_make_clickable( bbp_get_displayed_user_field( 'user_url' ) ) ) ); ?></p> | |
| 30 | + | |
| 46 | 31 | <?php endif; ?> |
| 47 | 32 | |
| 48 | 33 | <hr> |
| 49 | 34 | <h3><?php esc_html_e( 'Forums', 'bbpress' ); ?></h3> |
| @@ -48,46 +33,16 @@ | ||
| 48 | 33 | <hr> |
| 49 | 34 | <h3><?php esc_html_e( 'Forums', 'bbpress' ); ?></h3> |
| 50 | 35 | |
| 51 | 36 | <?php if ( bbp_get_user_last_posted() ) : ?> |
| 52 | - <p class="bbp-user-last-activity"> | |
| 53 | - <?php | |
| 54 | - printf( | |
| 55 | - /* translators: %s: Last activity time in "time ago" format */ | |
| 56 | - esc_html__( 'Last Activity: %s', 'bbpress' ), | |
| 57 | - bbp_get_time_since( bbp_get_user_last_posted(), false, true ) | |
| 58 | - ); | |
| 59 | - ?> | |
| 60 | - </p> | |
| 37 | + | |
| 38 | + <p class="bbp-user-last-activity"><?php printf( esc_html__( 'Last Activity: %s', 'bbpress' ), bbp_get_time_since( bbp_get_user_last_posted(), false, true ) ); ?></p> | |
| 39 | + | |
| 61 | 40 | <?php endif; ?> |
| 62 | 41 | |
| 63 | - <p class="bbp-user-topic-count"> | |
| 64 | - <?php | |
| 65 | - printf( | |
| 66 | - /* translators: %s: Number of topics */ | |
| 67 | - esc_html__( 'Topics Started: %s', 'bbpress' ), | |
| 68 | - bbp_get_user_topic_count() | |
| 69 | - ); | |
| 70 | - ?> | |
| 71 | - </p> | |
| 72 | - <p class="bbp-user-reply-count"> | |
| 73 | - <?php | |
| 74 | - printf( | |
| 75 | - /* translators: %s: Number of replies */ | |
| 76 | - esc_html__( 'Replies Created: %s', 'bbpress' ), | |
| 77 | - bbp_get_user_reply_count() | |
| 78 | - ); | |
| 79 | - ?> | |
| 80 | - </p> | |
| 81 | - <p class="bbp-user-forum-role"> | |
| 82 | - <?php | |
| 83 | - printf( | |
| 84 | - /* translators: %s: User's forum role */ | |
| 85 | - esc_html__( 'Forum Role: %s', 'bbpress' ), | |
| 86 | - bbp_get_user_display_role() | |
| 87 | - ); | |
| 88 | - ?> | |
| 89 | - </p> | |
| 42 | + <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Topics Started: %s', 'bbpress' ), bbp_get_user_topic_count() ); ?></p> | |
| 43 | + <p class="bbp-user-reply-count"><?php printf( esc_html__( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count() ); ?></p> | |
| 44 | + <p class="bbp-user-forum-role"><?php printf( esc_html__( 'Forum Role: %s', 'bbpress' ), bbp_get_user_display_role() ); ?></p> | |
| 90 | 45 | </div> |
| 91 | 46 | </div><!-- #bbp-author-topics-started --> |
| 92 | 47 | |
| 93 | 48 | <?php do_action( 'bbp_template_after_user_profile' ); |