Changeset 7828
- Timestamp:
- 02/07/2014 06:15:53 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-template.php
r7764 r7828 1228 1228 if ( ! empty( $r['user_id'] ) ) { 1229 1229 1230 // Get the user groups1230 // Get the user's blogs 1231 1231 if ( empty( $r['blogs'] ) ) { 1232 1232 $r['blogs'] = absint( bp_blogs_total_blogs_for_user( $r['user_id'] ) ); 1233 1233 } 1234 1234 1235 // If groups exist, show some formatted output1236 $r['output'] = $r['before'] . sprintf( _n( ' 1 site', '<strong>%s</strong> sites', $r['blogs'], 'buddypress' ), $r['blogs']) . $r['after'];1235 // If blogs exist, show some formatted output 1236 $r['output'] = $r['before'] . sprintf( _n( '%s site', '%s sites', $r['blogs'], 'buddypress' ), '<strong>' . $r['blogs'] . '</strong>' ) . $r['after']; 1237 1237 } 1238 1238 } -
trunk/bp-friends/bp-friends-template.php
r7764 r7828 580 580 if ( ! empty( $r['user_id'] ) ) { 581 581 582 // Get the user groups582 // Get the user's friends 583 583 if ( empty( $r['friends'] ) ) { 584 584 $r['friends'] = absint( friends_get_total_friend_count( $r['user_id'] ) ); 585 585 } 586 586 587 // If groups exist, show some formatted output588 $r['output'] = $r['before'] . sprintf( _n( ' 1 friend', '<strong>%s</strong> friends', $r['friends'], 'buddypress' ), $r['friends']) . $r['after'];587 // If friends exist, show some formatted output 588 $r['output'] = $r['before'] . sprintf( _n( '%s friend', '%s friends', $r['friends'], 'buddypress' ), '<strong>' . $r['friends'] . '</strong>' ) . $r['after']; 589 589 } 590 590 } -
trunk/bp-groups/bp-groups-template.php
r7764 r7828 3202 3202 3203 3203 // If groups exist, show some formatted output 3204 $r['output'] = $r['before'] . sprintf( _n( ' 1 group', '<strong>%s</strong> groups', $r['groups'], 'buddypress' ), $r['groups']) . $r['after'];3204 $r['output'] = $r['before'] . sprintf( _n( '%s group', '%s groups', $r['groups'], 'buddypress' ), '<strong>' . $r['groups'] . '</strong>' ) . $r['after']; 3205 3205 } 3206 3206 }
Note: See TracChangeset
for help on using the changeset viewer.