Beispiel #1
0
			<h5><?php 
        _e('Crop Your New Avatar', 'bp-magic');
        ?>
</h5>

			<img src="<?php 
        bp_avatar_to_crop();
        ?>
" id="avatar-to-crop" class="avatar" alt="<?php 
        _e('Avatar to crop', 'bp-magic');
        ?>
" />

			<div id="avatar-crop-pane">
				<img src="<?php 
        bp_avatar_to_crop();
        ?>
" id="avatar-crop-preview" class="avatar" alt="<?php 
        _e('Avatar preview', 'bp-magic');
        ?>
" />
			</div>

			<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php 
        _e('Crop Image', 'bp-magic');
        ?>
" />

			<input type="hidden" name="image_src" id="image_src" value="<?php 
        bp_avatar_to_crop_src();
        ?>
Beispiel #2
0
				<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>
				<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>
			<?php endif; ?>

			<?php wp_nonce_field( 'bp_avatar_upload' ) ?>

		<?php endif; ?>

		<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>

			<h5><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h5>

			<img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />

			<div id="avatar-crop-pane">
				<img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
			</div>

			<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />

			<input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
			<input type="hidden" id="x" name="x" />
			<input type="hidden" id="y" name="y" />
			<input type="hidden" id="w" name="w" />
			<input type="hidden" id="h" name="h" />

			<?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>

		<?php endif; ?>

	</form>