Changeset 2963
- Timestamp:
- 04/28/2010 08:29:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-themes/bp-default/registration/register.php
r2773 r2963 46 46 <?php do_action( 'bp_after_account_details_fields' ) ?> 47 47 48 <?php do_action( 'bp_before_blog_details_fields' ) ?>49 50 51 48 <?php /***** Extra Profile Details ******/ ?> 52 49 53 50 <?php if ( bp_is_active( 'xprofile' ) ) : ?> 54 <div class="register-section" id="profile-details-section"> 55 56 <h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4> 57 58 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> 59 <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 60 61 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 62 63 <div class="editfield"> 64 65 <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> 66 67 <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> 68 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 69 <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() ?>" /> 70 71 <?php endif; ?> 72 73 <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> 74 75 <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> 76 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 77 <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> 78 79 <?php endif; ?> 80 81 <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?> 82 83 <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> 84 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 85 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"> 86 <?php bp_the_profile_field_options() ?> 87 </select> 88 89 <?php endif; ?> 90 91 <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?> 92 93 <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> 94 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 95 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple"> 96 <?php bp_the_profile_field_options() ?> 97 </select> 98 99 <?php endif; ?> 100 101 <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?> 102 103 <div class="radio"> 104 <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> 105 51 52 <?php do_action( 'bp_before_signup_profile_fields' ) ?> 53 54 <div class="register-section" id="profile-details-section"> 55 56 <h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4> 57 58 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> 59 <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 60 61 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 62 63 <div class="editfield"> 64 65 <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> 66 67 <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> 106 68 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 107 <?php bp_the_profile_field_options() ?> 108 109 <?php if ( !bp_get_the_profile_field_is_required() ) : ?> 110 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a> 111 <?php endif; ?> 112 </div> 113 114 <?php endif; ?> 115 116 <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?> 117 118 <div class="checkbox"> 119 <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> 120 69 <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() ?>" /> 70 71 <?php endif; ?> 72 73 <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> 74 75 <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> 121 76 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 122 <?php bp_the_profile_field_options() ?> 123 </div> 124 125 <?php endif; ?> 126 127 <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?> 128 129 <div class="datebox"> 130 <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> 77 <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> 78 79 <?php endif; ?> 80 81 <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?> 82 83 <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> 131 84 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 132 133 <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day"> 134 <?php bp_the_profile_field_options( 'type=day' ) ?> 85 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"> 86 <?php bp_the_profile_field_options() ?> 135 87 </select> 136 88 137 <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month"> 138 <?php bp_the_profile_field_options( 'type=month' ) ?> 89 <?php endif; ?> 90 91 <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?> 92 93 <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> 94 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 95 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple"> 96 <?php bp_the_profile_field_options() ?> 139 97 </select> 140 98 141 <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year"> 142 <?php bp_the_profile_field_options( 'type=year' ) ?> 143 </select> 144 </div> 145 146 <?php endif; ?> 147 148 <?php do_action( 'bp_custom_profile_edit_fields' ) ?> 149 150 <p class="description"><?php bp_the_profile_field_description() ?></p> 151 152 </div> 153 154 <?php endwhile; ?> 155 156 <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" /> 157 158 <?php endwhile; endif; endif; ?> 159 160 </div><!-- #profile-details-section --> 99 <?php endif; ?> 100 101 <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?> 102 103 <div class="radio"> 104 <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> 105 106 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 107 <?php bp_the_profile_field_options() ?> 108 109 <?php if ( !bp_get_the_profile_field_is_required() ) : ?> 110 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a> 111 <?php endif; ?> 112 </div> 113 114 <?php endif; ?> 115 116 <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?> 117 118 <div class="checkbox"> 119 <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> 120 121 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 122 <?php bp_the_profile_field_options() ?> 123 </div> 124 125 <?php endif; ?> 126 127 <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?> 128 129 <div class="datebox"> 130 <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> 131 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?> 132 133 <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day"> 134 <?php bp_the_profile_field_options( 'type=day' ) ?> 135 </select> 136 137 <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month"> 138 <?php bp_the_profile_field_options( 'type=month' ) ?> 139 </select> 140 141 <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year"> 142 <?php bp_the_profile_field_options( 'type=year' ) ?> 143 </select> 144 </div> 145 146 <?php endif; ?> 147 148 <?php do_action( 'bp_custom_profile_edit_fields' ) ?> 149 150 <p class="description"><?php bp_the_profile_field_description() ?></p> 151 152 </div> 153 154 <?php endwhile; ?> 155 156 <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" /> 157 158 <?php endwhile; endif; endif; ?> 159 160 </div><!-- #profile-details-section --> 161 162 <?php do_action( 'bp_after_signup_profile_fields' ) ?> 163 161 164 <?php endif; ?> 162 163 <?php do_action( 'bp_after_signup_profile_fields' ) ?> 164 165 165 166 <?php if ( bp_get_blog_signup_allowed() ) : ?> 166 167
Note: See TracChangeset
for help on using the changeset viewer.