Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 09:45:45 PM (15 years ago)
Author:
boonebgorges
Message:

Introduces wrapper functions for avatar-related constants. Also moves avatar settings into bp global so that they are more easily configurable. See #3314

File:
1 edited

Legend:

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

    r4602 r4632  
    7373        global $bp;
    7474
    75         $image = apply_filters( 'bp_inline_cropper_image', getimagesize( BP_AVATAR_UPLOAD_PATH . $bp->avatar_admin->image->dir ) );
     75        $image = apply_filters( 'bp_inline_cropper_image', getimagesize( bp_core_avatar_upload_path() . $bp->avatar_admin->image->dir ) );
    7676        $aspect_ratio = 1;
    7777       
    78         $full_height = (int) constant( 'BP_AVATAR_FULL_HEIGHT' );
    79         $full_width  = (int) constant( 'BP_AVATAR_FULL_WIDTH'  );
    80 
     78        $full_height = bp_core_avatar_full_height();
     79        $full_width  = bp_core_avatar_full_width();
     80       
    8181        // Calculate Aspect Ratio
    8282        if ( $full_height && ( $full_width != $full_height ) )
     
    146146                .custom .jcrop-vline, .custom .jcrop-hline { background: yellow; }
    147147                .custom .jcrop-handle { border-color: black; background-color: #C7BB00; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
    148                 #avatar-crop-pane { width: <?php echo BP_AVATAR_FULL_WIDTH ?>px; height: <?php echo BP_AVATAR_FULL_HEIGHT ?>px; overflow: hidden; }
     148                #avatar-crop-pane { width: <?php echo bp_core_avatar_full_width() ?>px; height: <?php echo bp_core_avatar_full_height() ?>px; overflow: hidden; }
    149149                #avatar-crop-submit { margin: 20px 0; }
    150150                #avatar-upload-form img, #create-group-form img, #group-settings-form img { border: none !important; }
Note: See TracChangeset for help on using the changeset viewer.