- Timestamp:
- 11/02/2009 06:56:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-themes/bp-sn-parent/profile/change-avatar.php
r1905 r2076 6 6 7 7 <div id="content"> 8 8 9 9 <h2><?php _e( 'Change Avatar', 'buddypress' ) ?></h2> 10 10 11 11 <?php do_action( 'template_notices' ) ?> 12 12 13 13 <?php do_action( 'bp_before_profile_avatar_upload_content' ) ?> 14 14 15 15 <p><?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?></p> 16 17 <form action="" method="post" id="avatar-upload-form" enctype="multipart/form-data"> 18 16 17 <form action="" method="post" id="avatar-upload-form" enctype="multipart/form-data"> 18 19 19 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 20 20 21 21 <h3><?php _e( 'Your Current Avatar', 'buddypress' ) ?></h3> 22 22 23 23 <p id="current-avatar"> 24 24 <?php bp_displayed_user_avatar( 'type=full') ?> 25 25 <?php bp_displayed_user_avatar( 'type=thumb' ) ?> 26 26 </p> 27 27 28 28 <?php if ( bp_get_user_has_avatar() ) : ?> 29 29 <div class="generic-button" id="delete-avatar-button"> … … 31 31 </div> 32 32 <?php endif; ?> 33 33 34 34 <h3><?php _e( 'Upload a New Avatar', 'buddypress' ) ?></h3> 35 35 36 36 <p><?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?></p> 37 37 38 38 <p id="avatar-upload"> 39 <input type="file" name="file" id="file" /> 39 <input type="file" name="file" id="file" /> 40 40 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 41 41 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> … … 43 43 44 44 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 45 45 46 46 <?php endif; ?> 47 47 48 48 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 49 49 50 50 <h3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3> 51 51 52 52 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> 53 53 54 54 <div id="avatar-crop-pane"> 55 55 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> … … 57 57 58 58 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" /> 59 59 60 60 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 61 61 <input type="hidden" id="x" name="x" /> … … 65 65 66 66 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?> 67 67 68 68 <?php endif; ?> 69 69 70 70 </form> 71 71 72 72 <?php do_action( 'bp_after_profile_avatar_upload_content' ) ?> 73 73 74 74 </div> 75 75
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)