Changeset 880 for trunk/bp-core/bp-core-avatars.php
- Timestamp:
- 01/19/2009 09:22:24 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-avatars.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r844 r880 10 10 11 11 /* Define settings for avatars. [TODO] This will eventually end up as admin configurable settings */ 12 define( 'CORE_AVATAR_V1_W', 50);13 define( 'CORE_AVATAR_V1_H', 50);14 define( 'CORE_AVATAR_V2_W', 150);15 define( 'CORE_AVATAR_V2_H', 150);16 define( 'CORE_CROPPING_CANVAS_MAX', 450);12 define( 'CORE_AVATAR_V1_W', apply_filters( 'bp_core_avatar_v1_w', 50 ) ); 13 define( 'CORE_AVATAR_V1_H', apply_filters( 'bp_core_avatar_v1_h', 50 ) ); 14 define( 'CORE_AVATAR_V2_W', apply_filters( 'bp_core_avatar_v2_w', 150 ) ); 15 define( 'CORE_AVATAR_V2_H', apply_filters( 'bp_core_avatar_v2_h', 150 ) ); 16 define( 'CORE_CROPPING_CANVAS_MAX', apply_filters( 'bp_core_avatar_cropping_canvas_max', 450 ) ); 17 17 define( 'CORE_MAX_FILE_SIZE', get_site_option('fileupload_maxk') * 1024 ); 18 define( 'CORE_DEFAULT_AVATAR', site_url( MUPLUGINDIR . '/bp-xprofile/images/none.gif') );19 define( 'CORE_DEFAULT_AVATAR_THUMB', site_url( MUPLUGINDIR . '/bp-xprofile/images/none-thumbnail.gif') );18 define( 'CORE_DEFAULT_AVATAR', apply_filters( 'bp_core_avatar_default_src', site_url( MUPLUGINDIR . '/bp-xprofile/images/none.gif' ) ) ); 19 define( 'CORE_DEFAULT_AVATAR_THUMB', apply_filters( 'bp_core_avatar_default_thumb_src', site_url( MUPLUGINDIR . '/bp-xprofile/images/none-thumbnail.gif' ) ) ); 20 20 21 21 function bp_core_get_avatar( $user, $version = 1, $width = null, $height = null, $no_tag = false ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)