Changeset 3170
- Timestamp:
- 08/09/2010 11:07:56 PM (14 years ago)
- Location:
- branches/1.2/bp-themes/bp-default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-themes/bp-default/_inc/css/default.css
r3104 r3170 1152 1152 line-height: 220%; 1153 1153 } 1154 1155 .activity-list .activity-content .activity-header img.avatar { 1156 float: none !important; 1157 margin: 0 5px -8px 0 !important; 1158 } 1154 1159 1155 1160 .activity-list .activity-header a:first-child, span.highlight { -
branches/1.2/bp-themes/bp-default/functions.php
r3159 r3170 139 139 } 140 140 add_filter( 'the_posts', 'bp_dtheme_fix_the_posts_on_activity_front' ); 141 142 function bp_dtheme_activity_secondary_avatars( $action, $activity ) { 143 global $bp; 144 145 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 ); 152 break; 153 } 154 155 return $action; 156 } 157 add_filter( 'bp_get_activity_action_pre_meta', 'bp_dtheme_activity_secondary_avatars', 10, 2 ); 141 158 142 159 /****
Note: See TracChangeset
for help on using the changeset viewer.