Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 07:54:21 PM (16 years ago)
Author:
apeatling
Message:

Merging 1.1 branch changes and syncing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-parent/registration/register.php

    r1983 r2077  
    44
    55        <?php do_action( 'bp_before_register_page' ) ?>
    6    
     6
    77        <div class="page" id="register-page">
    8        
     8
    99            <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
    10            
     10
    1111            <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
    12        
     12
    1313                <h2 class="pagetitle"><?php _e( 'Sign Up', 'buddypress' ) ?></h2>
    14    
     14
    1515                <?php do_action( 'template_notices' ) ?>
    16    
     16
    1717                <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>
    1818
    1919                <?php do_action( 'bp_before_account_details_fields' ) ?>
    20            
     20
    2121                <div class="register-section" id="basic-details-section">
    22            
     22
    2323                    <?php /***** Basic Account Details ******/ ?>
    24        
     24
    2525                    <h3><?php _e( 'Account Details', 'buddypress' ) ?></h3>
    26    
     26
    2727                    <label for="signup_username"><?php _e( 'Username', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
    2828                    <?php do_action( 'bp_signup_username_errors' ) ?>
     
    4040                    <?php do_action( 'bp_signup_password_confirm_errors' ) ?>
    4141                    <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />
    42            
     42
    4343                </div>
    44            
     44
    4545                <?php do_action( 'bp_after_account_details_fields' ) ?>
    4646
     
    5151
    5252                <div class="register-section" id="profile-details-section">
    53        
     53
    5454                    <h3><?php _e( 'Profile Details', 'buddypress' ) ?></h3>
    55        
     55
    5656                    <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    5757                    <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
     
    6262
    6363                            <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    64                        
     64
    6565                                <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>
    6666                                <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    6767                                <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
    6969                            <?php endif; ?>
    7070
    7171                            <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    72    
     72
    7373                                <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>
    7474                                <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    7575                                <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
    7777                            <?php endif; ?>
    7878
     
    8484                                    <?php bp_the_profile_field_options() ?>
    8585                                </select>
    86    
     86
    8787                            <?php endif; ?>
    8888
     
    101101                                <div class="radio">
    102102                                    <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
    104104                                    <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    105105                                    <?php bp_the_profile_field_options() ?>
    106        
     106
    107107                                    <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    108108                                        <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a>
     
    110110                                </div>
    111111
    112                             <?php endif; ?> 
     112                            <?php endif; ?>
    113113
    114114                            <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
     
    116116                                <div class="checkbox">
    117117                                    <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
    119119                                    <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    120120                                    <?php bp_the_profile_field_options() ?>
    121                                 </div> 
    122 
    123                             <?php endif; ?>                 
     121                                </div>
     122
     123                            <?php endif; ?>
    124124
    125125                            <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
     
    128128                                    <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>
    129129                                    <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    130                        
     130
    131131                                    <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
    132132                                        <?php bp_the_profile_field_options( 'type=day' ) ?>
    133133                                    </select>
    134        
     134
    135135                                    <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
    136136                                        <?php bp_the_profile_field_options( 'type=month' ) ?>
    137137                                    </select>
    138        
     138
    139139                                    <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
    140140                                        <?php bp_the_profile_field_options( 'type=year' ) ?>
    141                                     </select>                               
     141                                    </select>
    142142                                </div>
    143143
    144                             <?php endif; ?> 
     144                            <?php endif; ?>
    145145
    146146                            <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
    147147
    148148                            <p class="description"><?php bp_the_profile_field_description() ?></p>
    149        
     149
    150150                        </div>
    151151
     
    153153
    154154                    <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />
    155        
     155
    156156                </div>
    157            
     157
    158158                <?php endwhile; endif; endif; ?>
    159    
     159
    160160                <?php do_action( 'bp_after_signup_profile_fields' ) ?>
    161            
     161
    162162                <?php if ( 'all' == bp_get_signup_allowed() || 'blog' == bp_get_signup_allowed() ) : ?>
    163163
     
    167167
    168168                    <div class="register-section" id="blog-details-section">
    169                
     169
    170170                        <h3><?php _e( 'Blog Details', 'buddypress' ) ?></h3>
    171    
     171
    172172                        <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>
    173173
    174174                        <div id="blog-details">
    175        
     175
    176176                            <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
    177177                            <?php do_action( 'bp_signup_blog_url_errors' ) ?>
    178            
     178
    179179                            <?php if ( 'yes' == VHOST ) : ?>
    180180                                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() ) ?>
    181181                            <?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
    185185                            <label for="signup_blog_title"><?php _e( 'Blog Title', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
    186186                            <?php do_action( 'bp_signup_blog_title_errors' ) ?>
     
    189189                            <span class="label"><?php _e( 'I would like my blog to appear in search engines, and in public listings around this site', 'buddypress' ) ?>:</span>
    190190                            <?php do_action( 'bp_signup_blog_privacy_errors' ) ?>
    191            
     191
    192192                            <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>
    193193                            <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
    197197                    </div>
    198            
     198
    199199                    <?php do_action( 'bp_after_blog_details_fields' ) ?>
    200200
    201201                <?php endif; ?>
    202            
     202
    203203                <?php do_action( 'bp_before_registration_submit_buttons' ) ?>
    204    
     204
    205205                <p class="submit">
    206206                    <input type="submit" name="signup_submit" id="signup_submit" value="<?php _e( 'Complete Sign Up', 'buddypress' ) ?> &rarr;" />
     
    212212
    213213            <?php endif; // request-details signup step ?>
    214            
     214
    215215            <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
    216        
     216
    217217                <h2 class="pagetitle"><?php _e( 'Sign Up Complete!', 'buddypress' ) ?></h2>
    218        
     218
    219219                <?php do_action( 'template_notices' ) ?>
    220        
     220
    221221                <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>
    222222
    223223                <?php if ( !(int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?>
    224                
     224
    225225                    <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    226        
     226
    227227                        <h3><?php _e( 'Your Current Avatar', 'buddypress' ) ?></h3>
    228228                        <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
    230230                        <div id="signup-avatar">
    231231                            <?php bp_signup_avatar() ?>
    232232                        </div>
    233                
     233
    234234                        <p>
    235                             <input type="file" name="file" id="file" /> 
     235                            <input type="file" name="file" id="file" />
    236236                            <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
    237237                            <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
     
    241241
    242242                        <?php wp_nonce_field( 'bp_avatar_upload' ) ?>
    243            
     243
    244244                    <?php endif; ?>
    245                
     245
    246246                    <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    247        
     247
    248248                        <h3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3>
    249            
     249
    250250                        <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
    251            
     251
    252252                        <div id="avatar-crop-pane">
    253253                            <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
     
    255255
    256256                        <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
    257                    
     257
    258258                        <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" />
    259259                        <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
    260260                        <input type="hidden" name="signup_avatar_dir" id="signup_avatar_dir" value="<?php bp_signup_avatar_dir_value() ?>" />
    261                    
     261
    262262                        <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
    263263                        <input type="hidden" id="x" name="x" />
     
    267267
    268268                        <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>
    269            
     269
    270270                    <?php endif; ?>
    271                
     271
    272272                <?php else : ?>
    273                
     273
    274274                    <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
    276276                <?php endif; ?>
    277            
     277
    278278            <?php endif; // completed-confirmation signup step ?>
    279        
     279
    280280            <?php do_action( 'bp_custom_signup_steps' ) ?>
    281        
     281
    282282            </form>
    283            
     283
    284284        </div>
    285285
    286286        <?php do_action( 'bp_after_register_page' ) ?>
    287    
     287
    288288    </div>
    289    
     289
    290290    <?php get_sidebar(); ?>
    291291
Note: See TracChangeset for help on using the changeset viewer.