Changeset 2077 for trunk/bp-themes/bp-sn-parent/registration/register.php
- Timestamp:
- 11/02/2009 07:54:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-sn-parent/registration/register.php
r1983 r2077 4 4 5 5 <?php do_action( 'bp_before_register_page' ) ?> 6 6 7 7 <div class="page" id="register-page"> 8 8 9 9 <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data"> 10 10 11 11 <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?> 12 12 13 13 <h2 class="pagetitle"><?php _e( 'Sign Up', 'buddypress' ) ?></h2> 14 14 15 15 <?php do_action( 'template_notices' ) ?> 16 16 17 17 <p><?php _e( 'Registering for this site is easy, just fill in the fields below and we\'ll get a new account set up for you in no time.', 'buddypress' ) ?></p> 18 18 19 19 <?php do_action( 'bp_before_account_details_fields' ) ?> 20 20 21 21 <div class="register-section" id="basic-details-section"> 22 22 23 23 <?php /***** Basic Account Details ******/ ?> 24 24 25 25 <h3><?php _e( 'Account Details', 'buddypress' ) ?></h3> 26 26 27 27 <label for="signup_username"><?php _e( 'Username', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label> 28 28 <?php do_action( 'bp_signup_username_errors' ) ?> … … 40 40 <?php do_action( 'bp_signup_password_confirm_errors' ) ?> 41 41 <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" /> 42 42 43 43 </div> 44 44 45 45 <?php do_action( 'bp_after_account_details_fields' ) ?> 46 46 … … 51 51 52 52 <div class="register-section" id="profile-details-section"> 53 53 54 54 <h3><?php _e( 'Profile Details', 'buddypress' ) ?></h3> 55 55 56 56 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> 57 57 <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> … … 62 62 63 63 <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> 64 64 65 65 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 66 66 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 67 67 <input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" /> 68 68 69 69 <?php endif; ?> 70 70 71 71 <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> 72 72 73 73 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 74 74 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 75 75 <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_edit_value() ?></textarea> 76 76 77 77 <?php endif; ?> 78 78 … … 84 84 <?php bp_the_profile_field_options() ?> 85 85 </select> 86 86 87 87 <?php endif; ?> 88 88 … … 101 101 <div class="radio"> 102 102 <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span> 103 103 104 104 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 105 105 <?php bp_the_profile_field_options() ?> 106 106 107 107 <?php if ( !bp_get_the_profile_field_is_required() ) : ?> 108 108 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a> … … 110 110 </div> 111 111 112 <?php endif; ?> 112 <?php endif; ?> 113 113 114 114 <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?> … … 116 116 <div class="checkbox"> 117 117 <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span> 118 118 119 119 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 120 120 <?php bp_the_profile_field_options() ?> 121 </div> 122 123 <?php endif; ?> 121 </div> 122 123 <?php endif; ?> 124 124 125 125 <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?> … … 128 128 <label for="<?php bp_the_profile_field_input_name() ?>_day"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 129 129 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 130 130 131 131 <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day"> 132 132 <?php bp_the_profile_field_options( 'type=day' ) ?> 133 133 </select> 134 134 135 135 <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month"> 136 136 <?php bp_the_profile_field_options( 'type=month' ) ?> 137 137 </select> 138 138 139 139 <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year"> 140 140 <?php bp_the_profile_field_options( 'type=year' ) ?> 141 </select> 141 </select> 142 142 </div> 143 143 144 <?php endif; ?> 144 <?php endif; ?> 145 145 146 146 <?php do_action( 'bp_custom_profile_edit_fields' ) ?> 147 147 148 148 <p class="description"><?php bp_the_profile_field_description() ?></p> 149 149 150 150 </div> 151 151 … … 153 153 154 154 <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" /> 155 155 156 156 </div> 157 157 158 158 <?php endwhile; endif; endif; ?> 159 159 160 160 <?php do_action( 'bp_after_signup_profile_fields' ) ?> 161 161 162 162 <?php if ( 'all' == bp_get_signup_allowed() || 'blog' == bp_get_signup_allowed() ) : ?> 163 163 … … 167 167 168 168 <div class="register-section" id="blog-details-section"> 169 169 170 170 <h3><?php _e( 'Blog Details', 'buddypress' ) ?></h3> 171 171 172 172 <p><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes, I\'d like to create a new blog', 'buddypress' ) ?></p> 173 173 174 174 <div id="blog-details"> 175 175 176 176 <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label> 177 177 <?php do_action( 'bp_signup_blog_url_errors' ) ?> 178 178 179 179 <?php if ( 'yes' == VHOST ) : ?> 180 180 http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value() ?>" /> .<?php echo str_replace( 'http://', '', site_url() ) ?> 181 181 <?php else : ?> 182 <?php echo site_url() ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value() ?>" /> 183 <?php endif; ?> 184 182 <?php echo site_url() ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value() ?>" /> 183 <?php endif; ?> 184 185 185 <label for="signup_blog_title"><?php _e( 'Blog Title', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label> 186 186 <?php do_action( 'bp_signup_blog_title_errors' ) ?> … … 189 189 <span class="label"><?php _e( 'I would like my blog to appear in search engines, and in public listings around this site', 'buddypress' ) ?>:</span> 190 190 <?php do_action( 'bp_signup_blog_privacy_errors' ) ?> 191 191 192 192 <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes' ) ?></label> 193 193 <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No' ) ?></label> 194 195 </div> 196 194 195 </div> 196 197 197 </div> 198 198 199 199 <?php do_action( 'bp_after_blog_details_fields' ) ?> 200 200 201 201 <?php endif; ?> 202 202 203 203 <?php do_action( 'bp_before_registration_submit_buttons' ) ?> 204 204 205 205 <p class="submit"> 206 206 <input type="submit" name="signup_submit" id="signup_submit" value="<?php _e( 'Complete Sign Up', 'buddypress' ) ?> →" /> … … 212 212 213 213 <?php endif; // request-details signup step ?> 214 214 215 215 <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?> 216 216 217 217 <h2 class="pagetitle"><?php _e( 'Sign Up Complete!', 'buddypress' ) ?></h2> 218 218 219 219 <?php do_action( 'template_notices' ) ?> 220 220 221 221 <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ) ?></p> 222 222 223 223 <?php if ( !(int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?> 224 224 225 225 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 226 226 227 227 <h3><?php _e( 'Your Current Avatar', 'buddypress' ) ?></h3> 228 228 <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 while you wait for your activation email?", 'buddypress' ) ?></p> 229 229 230 230 <div id="signup-avatar"> 231 231 <?php bp_signup_avatar() ?> 232 232 </div> 233 233 234 234 <p> 235 <input type="file" name="file" id="file" /> 235 <input type="file" name="file" id="file" /> 236 236 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 237 237 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> … … 241 241 242 242 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 243 243 244 244 <?php endif; ?> 245 245 246 246 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 247 247 248 248 <h3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3> 249 249 250 250 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> 251 251 252 252 <div id="avatar-crop-pane"> 253 253 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> … … 255 255 256 256 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" /> 257 257 258 258 <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" /> 259 259 <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" /> 260 260 <input type="hidden" name="signup_avatar_dir" id="signup_avatar_dir" value="<?php bp_signup_avatar_dir_value() ?>" /> 261 261 262 262 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 263 263 <input type="hidden" id="x" name="x" /> … … 267 267 268 268 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?> 269 269 270 270 <?php endif; ?> 271 271 272 272 <?php else : ?> 273 273 274 274 <p><?php _e( "We've fetched an avatar for your new account. If you'd like to change this you can use the <a href=\"http://gravatar.com\">Gravatar</a> service to upload a new one.", 'buddypress' ) ?></p> 275 275 276 276 <?php endif; ?> 277 277 278 278 <?php endif; // completed-confirmation signup step ?> 279 279 280 280 <?php do_action( 'bp_custom_signup_steps' ) ?> 281 281 282 282 </form> 283 283 284 284 </div> 285 285 286 286 <?php do_action( 'bp_after_register_page' ) ?> 287 287 288 288 </div> 289 289 290 290 <?php get_sidebar(); ?> 291 291
Note: See TracChangeset
for help on using the changeset viewer.