Changeset 12269
- Timestamp:
- 11/02/2018 12:39:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php
r12156 r12269 359 359 case 'groups': 360 360 case 'friends': 361 $secondary_avatar = bp_get_activity_secondary_avatar( array( 'linked' => false ) ); 362 361 363 // Only insert avatar if one exists. 362 if ( $secondary_avatar = bp_get_activity_secondary_avatar() ) { 363 $reverse_content = strrev( $action ); 364 $position = strpos( $reverse_content, 'a<' ); 365 $action = substr_replace( $action, $secondary_avatar, -$position - 2, 0 ); 364 if ( $secondary_avatar ) { 365 $link_close = '">'; 366 $first_link = strpos( $action, $link_close ); 367 $second_link = strpos( $action, $link_close, $first_link + strlen( link_close ) ); 368 $action = substr_replace( $action, $secondary_avatar, $second_link + 2, 0 ); 366 369 } 367 370 break;
Note: See TracChangeset
for help on using the changeset viewer.