Changeset 1796
- Timestamp:
- 09/04/2009 11:15:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-cssjs.php
r1688 r1796 95 95 96 96 $image = apply_filters( 'bp_inline_cropper_image', getimagesize( $bp->avatar_admin->image->dir ) ); 97 98 $aspect_ratio = 1; 99 100 /* Calculate Aspect Ratio */ 101 if ( (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) && ( (int) constant( 'BP_AVATAR_FULL_WIDTH' ) != (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) ) ) 102 $aspect_ratio = (int) constant( 'BP_AVATAR_FULL_WIDTH' ) / (int) constant( 'BP_AVATAR_FULL_HEIGHT' ); 97 103 ?> 98 104 <script type="text/javascript"> … … 102 108 onSelect: showPreview, 103 109 onSelect: updateCoords, 104 aspectRatio: 1,110 aspectRatio: <?php echo $aspect_ratio ?>, 105 111 setSelect: [ 50, 50, 200, 200 ] 106 112 }); … … 150 156 .custom .jcrop-vline, .custom .jcrop-hline { background: yellow; } 151 157 .custom .jcrop-handle { border-color: black; background-color: #C7BB00; -moz-border-radius: 3px; -webkit-border-radius: 3px; } 152 158 #avatar-crop-pane { width: <?php echo BP_AVATAR_FULL_WIDTH ?>px; height: <?php echo BP_AVATAR_FULL_HEIGHT ?>px; overflow: hidden; } 153 159 </style> 154 160 <?php
Note: See TracChangeset
for help on using the changeset viewer.