Changeset 9315 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 01/08/2015 09:43:47 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-avatars.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r9308 r9315 316 316 if ( false !== $params['width'] ) { 317 317 // Width has been specified. No modification necessary. 318 } else if ( 'thumb' == $params['type'] ) {318 } elseif ( 'thumb' == $params['type'] ) { 319 319 $params['width'] = bp_core_avatar_thumb_width(); 320 320 } else { … … 326 326 if ( false !== $params['height'] ) { 327 327 // Height has been specified. No modification necessary. 328 } else if ( 'thumb' == $params['type'] ) {328 } elseif ( 'thumb' == $params['type'] ) { 329 329 $params['height'] = bp_core_avatar_thumb_height(); 330 330 } else { … … 425 425 if ( empty( $bp->grav_default->{$params['object']} ) ) { 426 426 $default_grav = 'wavatar'; 427 } else if ( 'mystery' == $bp->grav_default->{$params['object']} ) {427 } elseif ( 'mystery' == $bp->grav_default->{$params['object']} ) { 428 428 $default_grav = apply_filters( 'bp_core_mysteryman_src', 'mm', $params['width'] ); 429 429 } else { … … 435 435 if ( 'user' == $params['object'] ) { 436 436 $params['email'] = bp_core_get_user_email( $params['item_id'] ); 437 } else if ( 'group' == $params['object'] || 'blog' == $params['object'] ) {437 } elseif ( 'group' == $params['object'] || 'blog' == $params['object'] ) { 438 438 $params['email'] = $params['item_id'] . '-' . $params['object'] . '@' . bp_get_root_domain(); 439 439 } … … 497 497 if ( 'user' == $object ) 498 498 $item_id = bp_displayed_user_id(); 499 else if ( 'group' == $object )499 elseif ( 'group' == $object ) 500 500 $item_id = buddypress()->groups->current_group->id; 501 else if ( 'blog' == $object )501 elseif ( 'blog' == $object ) 502 502 $item_id = $current_blog->id; 503 503 … … 510 510 if ( 'user' == $object ) 511 511 $avatar_dir = 'avatars'; 512 else if ( 'group' == $object )512 elseif ( 'group' == $object ) 513 513 $avatar_dir = 'group-avatars'; 514 else if ( 'blog' == $object )514 elseif ( 'blog' == $object ) 515 515 $avatar_dir = 'blog-avatars'; 516 516 … … 831 831 832 832 // If passed a number, assume it was a $user_id 833 } else if ( is_numeric( $user ) ) {833 } elseif ( is_numeric( $user ) ) { 834 834 $id = $user; 835 835 … … 1145 1145 1146 1146 // Use the local default image 1147 } else if ( 'local' === $type ) {1147 } elseif ( 'local' === $type ) { 1148 1148 $avatar = buddypress()->plugin_url . 'bp-core/images/mystery-man.jpg'; 1149 1149 … … 1181 1181 1182 1182 // Use the local default image 1183 } else if ( 'local' === $type ) {1183 } elseif ( 'local' === $type ) { 1184 1184 $avatar = buddypress()->plugin_url . 'bp-core/images/mystery-man-50.jpg'; 1185 1185 … … 1222 1222 1223 1223 // Group's avatar create screen 1224 } else if ( bp_is_group_create() ) {1224 } elseif ( bp_is_group_create() ) { 1225 1225 /** 1226 1226 * we can't use bp_get_groups_current_create_step()
Note: See TracChangeset
for help on using the changeset viewer.