Changeset 2813
- Timestamp:
- 01/17/2011 10:34:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-themes/bbp-twentyten/page-bbp_register.php
r2810 r2813 27 27 <?php if ( !is_user_logged_in() ) : ?> 28 28 29 <form method="post" action=""> 30 31 <fieldset> 32 <legend><?php _e( 'Profile Information', 'bbpress' ); ?></legend> 33 34 <p><?php _e( 'Your password will be emailed to the address you provide.', 'bbpress' ); ?></p> 35 36 <?php $user_login_error = $bb_register_error->get_error_message( 'user_login' ); ?> 37 38 <table width="100%"> 39 <tr class="form-field form-required required<?php if ( $user_login_error ) echo ' form-invalid error'; ?>"> 40 <th scope="row"> 41 <label for="user_login"><?php _e('Username'); ?></label> 42 43 <?php 44 if ( $user_login_error ) 45 echo "<em>$user_login_error</em>"; 46 ?> 47 48 </th> 49 50 <td> 51 <input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php echo $user_login; ?>" /> 52 </td> 53 </tr> 54 55 <?php 56 57 if ( is_array( $profile_info_keys ) ) : 58 foreach ( $profile_info_keys as $key => $label ) : 59 $class = 'form-field'; 60 61 if ( $label[0] ) 62 $class .= ' form-required required'; 63 64 if ( $profile_info_key_error = $bb_register_error->get_error_message( $key ) ) 65 $class .= ' form-invalid error'; ?> 66 67 <tr class="<?php echo $class; ?>"> 68 <th scope="row"> 69 <label for="<?php echo $key; ?>"><?php echo $label[1]; ?></label> 70 71 <?php 72 if ( $profile_info_key_error ) 73 echo "<em>$profile_info_key_error</em>"; 74 ?> 75 76 </th> 77 <td> 78 <input name="<?php echo $key; ?>" type="text" id="<?php echo $key; ?>" size="30" maxlength="140" value="<?php echo $$key; ?>" /> 79 </td> 80 </tr> 81 82 <?php 83 84 endforeach; // profile_info_keys 85 endif; // profile_info_keys 86 87 ?> 88 89 </table> 90 91 <p class="required-message"><?php _e('These items are <span class="required">required</span>.') ?></p> 92 93 <?php do_action( 'bbp_extra_profile_info', $user ); ?> 94 95 <p class="submit"> 96 <input type="submit" name="Submit" value="<?php echo esc_attr__( 'Register »' ); ?>" /> 97 </p> 98 99 </fieldset> 100 101 </form> 29 <?php get_template_part( 'form', 'bbp_user_register' ); ?> 102 30 103 31 <?php else : ?> 104 32 105 <p><?php _e( 'You’re already logged in, why do you need to register?'); ?></p>33 <p><?php _e( 'You’re already logged in, why do you need to register?', 'bbpress' ); ?></p> 106 34 107 35 <?php endif; ?> 108 36 109 37 </div> 110 </div><!-- #bbp- login-->38 </div><!-- #bbp-register --> 111 39 112 40 <?php endwhile; ?>
Note: See TracChangeset
for help on using the changeset viewer.