- Timestamp:
- 02/12/2012 08:09:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/members/single/profile/change-avatar.php
r4495 r5737 1 <h4><?php _e( 'Change Avatar', 'buddypress' ) ?></h4>1 <h4><?php _e( 'Change Avatar', 'buddypress' ); ?></h4> 2 2 3 <?php do_action( 'bp_before_profile_avatar_upload_content' ) ?>3 <?php do_action( 'bp_before_profile_avatar_upload_content' ); ?> 4 4 5 5 <?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?> 6 6 7 <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>7 <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> 8 8 9 9 <form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data"> … … 11 11 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 12 12 13 <?php wp_nonce_field( 'bp_avatar_upload' ) ?>14 <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>13 <?php wp_nonce_field( 'bp_avatar_upload' ); ?> 14 <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> 15 15 16 16 <p id="avatar-upload"> 17 17 <input type="file" name="file" id="file" /> 18 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />18 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" /> 19 19 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 20 20 </p> 21 21 22 22 <?php if ( bp_get_user_has_avatar() ) : ?> 23 <p><?php _e( "If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ) ?></p>24 <p><a class="button edit" href="<?php bp_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete My Avatar', 'buddypress' )?></a></p>23 <p><?php _e( "If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p> 24 <p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ); ?>"><?php _e( 'Delete My Avatar', 'buddypress' ); ?></a></p> 25 25 <?php endif; ?> 26 26 … … 29 29 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 30 30 31 <h5><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h5>31 <h5><?php _e( 'Crop Your New Avatar', 'buddypress' ); ?></h5> 32 32 33 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' )?>" />33 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" /> 34 34 35 35 <div id="avatar-crop-pane"> 36 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' )?>" />36 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" /> 37 37 </div> 38 38 39 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />39 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" /> 40 40 41 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />41 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" /> 42 42 <input type="hidden" id="x" name="x" /> 43 43 <input type="hidden" id="y" name="y" /> … … 45 45 <input type="hidden" id="h" name="h" /> 46 46 47 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>47 <?php wp_nonce_field( 'bp_avatar_cropstore' ); ?> 48 48 49 49 <?php endif; ?> … … 53 53 <?php else : ?> 54 54 55 <p><?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with <a href="http://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ) ?></p>55 <p><?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with <a href="http://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p> 56 56 57 57 <?php endif; ?> 58 58 59 <?php do_action( 'bp_after_profile_avatar_upload_content' ) ?>59 <?php do_action( 'bp_after_profile_avatar_upload_content' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.