Changeset 3691 for trunk/bp-themes/bp-default/registration/register.php
- Timestamp:
- 01/09/2011 10:07:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/registration/register.php
r3592 r3691 222 222 223 223 <?php do_action( 'template_notices' ) ?> 224 <?php do_action( 'bp_before_registration_confirmed' ) ?> 224 225 225 226 <?php if ( bp_registration_needs_activation() ) : ?> … … 229 230 <?php endif; ?> 230 231 231 <?php if ( bp_is_active( 'xprofile' ) && !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?> 232 233 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 234 235 <h4><?php _e( 'Your Current Avatar', 'buddypress' ) ?></h4> 236 <p><?php _e( "We've fetched an avatar for your new account. If you'd like to change this, why not upload a new one?", 'buddypress' ) ?></p> 237 238 <div id="signup-avatar"> 239 <?php bp_signup_avatar() ?> 240 </div> 241 242 <p> 243 <input type="file" name="file" id="file" /> 244 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 245 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 246 <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" /> 247 <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" /> 248 </p> 249 250 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 251 252 <?php endif; ?> 253 254 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 255 256 <h3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3> 257 258 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> 259 260 <div id="avatar-crop-pane"> 261 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> 262 </div> 263 264 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" /> 265 266 <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" /> 267 <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" /> 268 <input type="hidden" name="signup_avatar_dir" id="signup_avatar_dir" value="<?php bp_signup_avatar_dir_value() ?>" /> 269 270 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 271 <input type="hidden" id="x" name="x" /> 272 <input type="hidden" id="y" name="y" /> 273 <input type="hidden" id="w" name="w" /> 274 <input type="hidden" id="h" name="h" /> 275 276 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?> 277 278 <?php endif; ?> 279 280 <?php endif; ?> 232 <?php do_action( 'bp_after_registration_confirmed' ) ?> 281 233 282 234 <?php endif; // completed-confirmation signup step ?>
Note: See TracChangeset
for help on using the changeset viewer.