Changeset 12892 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-profile.php
- Timestamp:
- 09/17/2023 06:18:29 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-profile.php
r10584 r12892 93 93 94 94 <?php if ( ! $hide_profile_fields && ( $custom_title = get_user_option( 'title', bbp_get_displayed_user_id() ) ) ) : ?> 95 95 96 96 <p class="bbp-user-custom-title"><?php 97 97 /* translators: %s: user's custom title */ 98 98 printf( esc_html__( 'Title: %s', 'wporg-forums' ), esc_html( $custom_title ) ); 99 99 ?></p> 100 100 101 101 <?php endif; ?> 102 102 103 103 <?php 104 // Only show the forum role when they're privledged, or the current user is privledged.105 if (106 current_user_can( 'moderate' ) ||107 bbpress()->displayed_user->has_cap( bbp_get_moderator_role() ) ||108 bbpress()->displayed_user->has_cap( bbp_get_keymaster_role() )109 ) {110 ?><p class="bbp-user-forum-role"><?php111 /* translators: %s: user's forum role */112 printf( esc_html__( 'Forum Role: %s', 'wporg-forums' ), bbp_get_user_display_role() );113 ?></p><?php114 }104 // Only show the forum role when they're privledged, or the current user is privledged. 105 if ( 106 current_user_can( 'moderate' ) || 107 bbpress()->displayed_user->has_cap( bbp_get_moderator_role() ) || 108 bbpress()->displayed_user->has_cap( bbp_get_keymaster_role() ) 109 ) { 110 ?><p class="bbp-user-forum-role"><?php 111 /* translators: %s: user's forum role */ 112 printf( esc_html__( 'Forum Role: %s', 'wporg-forums' ), bbp_get_user_display_role() ); 113 ?></p><?php 114 } 115 115 ?> 116 116 117 117 <?php if ( is_user_logged_in() && ! $hide_profile_fields && ( $website = bbp_get_displayed_user_field( 'user_url' ) ) ) : ?> 118 118 119 119 <p class="bbp-user-website"><?php 120 /* translators: %s: link to user's website */121 printf( esc_html__( 'Website: %s', 'wporg-forums' ), sprintf( '<a href="%s" rel="nofollow ugc">%s</a>', esc_url( $website ), esc_html( $website ) ) );120 /* translators: %s: link to user's website */ 121 printf( esc_html__( 'Website: %s', 'wporg-forums' ), sprintf( '<a href="%s" rel="nofollow ugc">%s</a>', esc_url( $website ), esc_html( $website ) ) ); 122 122 ?></p> 123 123 124 124 <?php endif; ?> 125 125 … … 145 145 ?></p> 146 146 <?php endif; ?> 147 148 <?php if ( bbp_is_user_home() || current_user_can( 'moderate' ) ) : ?> 149 <p class="bbp-user-report-count"><?php 150 /* translators: %s: number of user's reviews */ 151 printf( esc_html__( 'Reports Submitted: %s', 'wporg-forums' ), number_format_i18n( wporg_support_get_user_report_count() ) ); 152 ?></p> 153 <?php endif; ?> 147 154 </div> 148 155 </div><!-- #bbp-author-topics-started -->
Note: See TracChangeset
for help on using the changeset viewer.