Skip to:
Content

BuddyPress.org

Ticket #5343: bp_group_current_avatar.patch

File bp_group_current_avatar.patch, 772 bytes (added by plocha, 11 years ago)
Line 
12632,2640c2632,2638
2<       if ( $bp->groups->current_group->avatar_full ) { ?>
3<
4<               <img src="<?php echo esc_url( $bp->groups->current_group->avatar_full ); ?>" alt="<?php _e( 'Group Avatar', 'buddypress' ) ?>" class="avatar" />
5<
6<       <?php } else { ?>
7<
8<               <img src="<?php echo esc_url( $bp->groups->image_base . '/none.gif' ); ?>" alt="<?php _e( 'No Group Avatar', 'buddypress' ) ?>" class="avatar" />
9<
10<       <?php }
11---
12>       if ( $bp->groups->current_group->avatar_full ) {
13>               return "<img src='" . esc_url( $bp->groups->current_group->avatar_full ) .
14>                       "' alt='" . __( 'Group Avatar', 'buddypress' ) . "' class='avatar' />";
15>       }
16>       return "<img src='{$bp->groups->image_base}/none.gif' alt='" .
17>               __( 'No Group Avatar', 'buddypress' ) .
18>               "' class='avatar' />";