| @@ -1,48 +1,48 @@ | ||
| 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' ); | |
| 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' ); | |