Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/19/2009 09:22:24 PM (18 years ago)
Author:
apeatling
Message:

Added filters to avatar constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r844 r880  
    1010
    1111/* 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 );
     12define( 'CORE_AVATAR_V1_W', apply_filters( 'bp_core_avatar_v1_w', 50 ) );
     13define( 'CORE_AVATAR_V1_H', apply_filters( 'bp_core_avatar_v1_h', 50 ) );
     14define( 'CORE_AVATAR_V2_W', apply_filters( 'bp_core_avatar_v2_w', 150 ) );
     15define( 'CORE_AVATAR_V2_H', apply_filters( 'bp_core_avatar_v2_h', 150 ) );
     16define( 'CORE_CROPPING_CANVAS_MAX', apply_filters( 'bp_core_avatar_cropping_canvas_max', 450 ) );
    1717define( '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' ) );
     18define( 'CORE_DEFAULT_AVATAR', apply_filters( 'bp_core_avatar_default_src', site_url( MUPLUGINDIR . '/bp-xprofile/images/none.gif' ) ) );
     19define( 'CORE_DEFAULT_AVATAR_THUMB', apply_filters( 'bp_core_avatar_default_thumb_src', site_url( MUPLUGINDIR . '/bp-xprofile/images/none-thumbnail.gif' ) ) );
    2020
    2121function bp_core_get_avatar( $user, $version = 1, $width = null, $height = null, $no_tag = false ) {
Note: See TracChangeset for help on using the changeset viewer.