Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 06:56:42 PM (17 years ago)
Author:
apeatling
Message:

Merging last few trunk changes and stripping all whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-themes/bp-sn-parent/profile/edit.php

    r1920 r2076  
    22
    33        <div class="content-header">
    4        
     4
    55                <ul class="content-header-nav">
    66                        <?php bp_profile_group_tabs(); ?>
    77                </ul>
    8        
     8
    99        </div>
    1010
    … …  
    1212
    1313                <?php do_action( 'template_notices' ) // (error/success feedback) ?>
    14        
     14
    1515                <?php do_action( 'bp_before_profile_edit_content' ) ?>
    16                
     16
    1717                <?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    1818
    … …  
    2020
    2121                        <?php do_action( 'bp_before_profile_field_content' ) ?>
    22                
     22
    2323                                <h2><?php printf( __( "Editing '%s'", "buddypress" ), bp_get_the_profile_group_name() ); ?></h2>
    24                        
     24
    2525                                <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    26                                
     26
    2727                                        <div<?php bp_field_css_class( 'editfield' ) ?>>
    28                                        
     28
    2929                                                <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    30                                        
     30
    3131                                                        <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>
    3232                                                        <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() ?>" />
    33                                                
     33
    3434                                                <?php endif; ?>
    35                                
     35
    3636                                                <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    37                                                
     37
    3838                                                        <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>
    3939                                                        <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>
    40                                                
     40
    4141                                                <?php endif; ?>
    4242
    4343                                                <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    44                                        
     44
    4545                                                        <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>
    4646                                                        <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
    4747                                                                <?php bp_the_profile_field_options() ?>
    4848                                                        </select>
    49                                                
     49
    5050                                                <?php endif; ?>
    5151
    5252                                                <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    53                                        
     53
    5454                                                        <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>
    5555                                                        <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
    5656                                                                <?php bp_the_profile_field_options() ?>
    5757                                                        </select>
    58                                        
     58
    5959                                                <?php endif; ?>
    6060
    6161                                                <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
    62                                        
     62
    6363                                                        <div class="radio">
    6464                                                                <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>
    65                                                        
     65
    6666                                                                <?php bp_the_profile_field_options() ?>
    67                                                        
     67
    6868                                                                <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    6969                                                                        <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a>
    7070                                                                <?php endif; ?>
    7171                                                        </div>
    72                                        
    73                                                 <?php endif; ?> 
    74                                
     72
     73                                                <?php endif; ?>
     74
    7575                                                <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
    76                                        
     76
    7777                                                        <div class="checkbox">
    7878                                                                <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>
    79                                                        
     79
    8080                                                                <?php bp_the_profile_field_options() ?>
    81                                                         </div> 
    82                                        
    83                                                 <?php endif; ?>                                 
     81                                                        </div>
     82
     83                                                <?php endif; ?>
    8484
    8585                                                <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
    86                                        
     86
    8787                                                        <div class="datebox">
    8888                                                                <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>
    89                                                        
     89
    9090                                                                <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
    9191                                                                        <?php bp_the_profile_field_options( 'type=day' ) ?>
    9292                                                                </select>
    93                                                        
     93
    9494                                                                <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
    9595                                                                        <?php bp_the_profile_field_options( 'type=month' ) ?>
    9696                                                                </select>
    97                                                        
     97
    9898                                                                <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
    9999                                                                        <?php bp_the_profile_field_options( 'type=year' ) ?>
    100                                                                 </select>                                                               
     100                                                                </select>
    101101                                                        </div>
    102                                        
    103                                                 <?php endif; ?> 
    104                                        
     102
     103                                                <?php endif; ?>
     104
    105105                                                <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
    106                                
     106
    107107                                                <p class="description"><?php bp_the_profile_field_description() ?></p>
    108108                                        </div>
    … …  
    111111
    112112                        <?php do_action( 'bp_after_profile_field_content' ) ?>
    113                        
     113
    114114                        <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?> " />
    115                        
     115
    116116                        <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />
    117117                        <?php wp_nonce_field( 'bp_xprofile_edit' ) ?>
    118                        
     118
    119119                </form>
    120                
     120
    121121                <?php endwhile; endif; ?>
    122                
     122
    123123                <?php do_action( 'bp_after_profile_edit_content' ) ?>
    124124
Note: See TracChangeset for help on using the changeset viewer.