Changeset 5019
- Timestamp:
- 08/20/2011 02:33:05 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r4989 r5019 566 566 global $activities_template, $bp; 567 567 568 // On activity permalink pages, default to the full-size avatar 569 $type_default = bp_is_single_activity() ? 'full' : 'thumb'; 570 568 571 $defaults = array( 569 572 'alt' => __( 'Profile picture of %s', 'buddypress' ), 570 573 'class' => 'avatar', 571 574 'email' => false, 572 'type' => 'thumb',575 'type' => $type_default, 573 576 'user_id' => false 574 577 ); … … 577 580 extract( $r, EXTR_SKIP ); 578 581 579 if ( !isset( $height ) && !isset( $width ) ) { // Backpat 580 if ( 'full' == $type || ( 'thumb' == $type && bp_is_single_activity() ) ) { 581 $height = $bp->avatar->full->height; 582 $width = $bp->avatar->full->width; 583 584 } elseif ( 'thumb' == $type ) { 585 $height = $bp->avatar->thumb->height; 586 $width = $bp->avatar->thumb->width; 582 if ( !isset( $height ) && !isset( $width ) ) { 583 // Backpat 584 if ( isset( $bp->avatar->full->height ) || isset( $bp->avatar->thumb->height ) ) { 585 $height = ( 'full' == $type ) ? $bp->avatar->full->height : $bp->avatar->thumb->height; 586 } else { 587 $height = 20; 587 588 } 589 590 // Backpat 591 if ( isset( $bp->avatar->full->width ) || isset( $bp->avatar->thumb->width ) ) { 592 $width = ( 'full' == $type ) ? $bp->avatar->full->width : $bp->avatar->thumb->width; 593 } else { 594 $width = 20; 595 } 596 588 597 } 589 590 // Backpat591 if ( !isset( $width ) )592 $width = 20;593 594 if ( !isset( $height ) )595 $height = 20;596 598 597 599 // Within the loop, we the current activity should be set first to the -
trunk/bp-themes/bp-default/activity/entry.php
r4961 r5019 19 19 <a href="<?php bp_activity_user_link(); ?>"> 20 20 21 <?php bp_activity_avatar( 'type=thumb'); ?>21 <?php bp_activity_avatar(); ?> 22 22 23 23 </a>
Note: See TracChangeset
for help on using the changeset viewer.