Changeset 3171 for branches/1.2/bp-themes/bp-default/functions.php
- Timestamp:
- 08/10/2010 12:04:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-themes/bp-default/functions.php
r3170 r3171 141 141 142 142 function bp_dtheme_activity_secondary_avatars( $action, $activity ) { 143 global $bp;144 143 145 144 switch ( $activity->component ) { 146 case $bp->groups->id : 147 case $bp->blogs->id : 148 case $bp->friends->id : 149 $reverse_content = strrev( $action ); 150 $position = strpos( $reverse_content, 'a<' ); 151 $action = substr_replace( $action, bp_get_activity_secondary_avatar(), -$position - 2, 0 ); 145 case 'groups' : 146 case 'blogs' : 147 case 'friends' : 148 // Only insert avatar if one exists 149 if ( $secondary_avatar = bp_get_activity_secondary_avatar() ) { 150 $reverse_content = strrev( $action ); 151 $position = strpos( $reverse_content, 'a<' ); 152 $action = substr_replace( $action, $secondary_avatar, -$position - 2, 0 ); 153 } 152 154 break; 153 155 }
Note: See TracChangeset
for help on using the changeset viewer.