Changeset 4849
- Timestamp:
- 07/25/2011 07:55:01 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
bp-activity/bp-activity-template.php (modified) (2 diffs)
-
bp-themes/bp-default/_inc/css/default-rtl.css (modified) (1 diff)
-
bp-themes/bp-default/_inc/css/default.css (modified) (3 diffs)
-
bp-themes/bp-default/activity/comment.php (modified) (1 diff)
-
bp-themes/bp-default/activity/entry.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r4847 r4849 563 563 */ 564 564 function bp_get_activity_avatar( $args = '' ) { 565 global $ bp, $activities_template;565 global $activities_template, $bp; 566 566 567 567 $defaults = array( 568 'alt' => __( 'Profile picture of %s', 'buddypress' ), 569 'class' => 'avatar', 570 'email' => false, 568 571 'type' => 'thumb', 569 'width' => 20,570 'height' => 20,571 'class' => 'avatar',572 'alt' => __( 'Profile picture of %s', 'buddypress' ),573 'email' => false,574 572 'user_id' => false 575 573 ); … … 577 575 $r = wp_parse_args( $args, $defaults ); 578 576 extract( $r, EXTR_SKIP ); 577 578 if ( !isset( $height ) && !isset( $width ) ) { // Backpat 579 if ( 'full' == $type ) { 580 $height = $bp->avatar->full->height; 581 $width = $bp->avatar->full->width; 582 583 } elseif ( 'thumb' == $type ) { 584 $height = $bp->avatar->thumb->height; 585 $width = $bp->avatar->thumb->width; 586 } 587 } 588 589 // Backpat 590 if ( !isset( $width ) ) 591 $width = 20; 592 593 if ( !isset( $height ) ) 594 $height = 20; 579 595 580 596 // Within the loop, we the current activity should be set first to the -
trunk/bp-themes/bp-default/_inc/css/default-rtl.css
r4804 r4849 418 418 margin-left: 0; 419 419 } 420 .activity-list li.activity_comment .activity-avatar img.avatar,421 .activity-list li.activity_comment .activity-avatar img.FB_profile_pic {422 margin-right: 10px;423 margin-left: 0;424 }425 body.activity-permalink .activity-list li .activity-avatar img.avatar,426 body.activity-permalink .activity-list li .activity-avatar img.FB_profile_pic {427 margin-left: auto;428 margin-right: 0;429 }430 420 body.activity-permalink .activity-list li .activity-header > p { 431 421 margin-left: auto; -
trunk/bp-themes/bp-default/_inc/css/default.css
r4837 r4849 1127 1127 width: 20px; 1128 1128 } 1129 .activity-list li.activity_comment .activity-avatar img.avatar,1130 .activity-list li.activity_comment .activity-avatar img.FB_profile_pic {1131 height: 40px;1132 margin-left: 20px;1133 width: 40px;1134 }1135 1129 body.activity-permalink .activity-list > li:first-child { 1136 1130 padding-top: 0; 1137 }1138 body.activity-permalink .activity-list li .activity-avatar img.avatar,1139 body.activity-permalink .activity-list li .activity-avatar img.FB_profile_pic {1140 height: 100px;1141 margin-left: 0;1142 width: 100px;1143 1131 } 1144 1132 .activity-list li .activity-content { … … 1175 1163 overflow: hidden; 1176 1164 padding: 0; 1177 }1178 .activity-list .activity-avatar img {1179 width: 50px;1180 height: 50px;1181 }1182 body.activity-permalink .activity-list .activity-avatar img {1183 width: 100px;1184 height: 100px;1185 1165 } 1186 1166 .activity-list .activity-content { … … 1384 1364 border-width: 2px !important; 1385 1365 float: left; 1366 height: 25px; 1386 1367 margin-right: 10px; 1368 width: 25px; 1387 1369 } 1388 1370 div.activity-comments div.acomment-content { -
trunk/bp-themes/bp-default/activity/comment.php
r4744 r4849 18 18 <div class="acomment-avatar"> 19 19 <a href="<?php bp_activity_comment_user_link(); ?>"> 20 <?php bp_activity_avatar( 'type= full&width=25&height=25&user_id=' . bp_get_activity_comment_user_id() ); ?>20 <?php bp_activity_avatar( 'type=thumb&user_id=' . bp_get_activity_comment_user_id() ); ?> 21 21 </a> 22 22 </div> -
trunk/bp-themes/bp-default/activity/entry.php
r4808 r4849 19 19 <a href="<?php bp_activity_user_link(); ?>"> 20 20 21 <?php bp_activity_avatar( 'type= full&width=100&height=100' ); ?>21 <?php bp_activity_avatar( 'type=thumb' ); ?> 22 22 23 23 </a>
Note: See TracChangeset
for help on using the changeset viewer.