Changeset 7828 for trunk/bp-blogs/bp-blogs-template.php
- Timestamp:
- 02/07/2014 06:15:53 PM (11 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.