Changeset 2076 for branches/1.1/bp-themes/bp-sn-parent/profile/edit.php
- Timestamp:
- 11/02/2009 06:56:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-themes/bp-sn-parent/profile/edit.php
r1920 r2076 2 2 3 3 <div class="content-header"> 4 4 5 5 <ul class="content-header-nav"> 6 6 <?php bp_profile_group_tabs(); ?> 7 7 </ul> 8 8 9 9 </div> 10 10 … … 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 14 14 15 15 <?php do_action( 'bp_before_profile_edit_content' ) ?> 16 16 17 17 <?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 18 18 … … 20 20 21 21 <?php do_action( 'bp_before_profile_field_content' ) ?> 22 22 23 23 <h2><?php printf( __( "Editing '%s'", "buddypress" ), bp_get_the_profile_group_name() ); ?></h2> 24 24 25 25 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 26 26 27 27 <div<?php bp_field_css_class( 'editfield' ) ?>> 28 28 29 29 <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> 30 30 31 31 <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> 32 32 <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 34 34 <?php endif; ?> 35 35 36 36 <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> 37 37 38 38 <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> 39 39 <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 41 41 <?php endif; ?> 42 42 43 43 <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?> 44 44 45 45 <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> 46 46 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"> 47 47 <?php bp_the_profile_field_options() ?> 48 48 </select> 49 49 50 50 <?php endif; ?> 51 51 52 52 <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?> 53 53 54 54 <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> 55 55 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple"> 56 56 <?php bp_the_profile_field_options() ?> 57 57 </select> 58 58 59 59 <?php endif; ?> 60 60 61 61 <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?> 62 62 63 63 <div class="radio"> 64 64 <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 66 66 <?php bp_the_profile_field_options() ?> 67 67 68 68 <?php if ( !bp_get_the_profile_field_is_required() ) : ?> 69 69 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a> 70 70 <?php endif; ?> 71 71 </div> 72 73 <?php endif; ?> 74 72 73 <?php endif; ?> 74 75 75 <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?> 76 76 77 77 <div class="checkbox"> 78 78 <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 80 80 <?php bp_the_profile_field_options() ?> 81 </div> 82 83 <?php endif; ?> 81 </div> 82 83 <?php endif; ?> 84 84 85 85 <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?> 86 86 87 87 <div class="datebox"> 88 88 <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 90 90 <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day"> 91 91 <?php bp_the_profile_field_options( 'type=day' ) ?> 92 92 </select> 93 93 94 94 <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month"> 95 95 <?php bp_the_profile_field_options( 'type=month' ) ?> 96 96 </select> 97 97 98 98 <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year"> 99 99 <?php bp_the_profile_field_options( 'type=year' ) ?> 100 </select> 100 </select> 101 101 </div> 102 103 <?php endif; ?> 104 102 103 <?php endif; ?> 104 105 105 <?php do_action( 'bp_custom_profile_edit_fields' ) ?> 106 106 107 107 <p class="description"><?php bp_the_profile_field_description() ?></p> 108 108 </div> … … 111 111 112 112 <?php do_action( 'bp_after_profile_field_content' ) ?> 113 113 114 114 <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?> " /> 115 115 116 116 <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_group_field_ids() ?>" /> 117 117 <?php wp_nonce_field( 'bp_xprofile_edit' ) ?> 118 118 119 119 </form> 120 120 121 121 <?php endwhile; endif; ?> 122 122 123 123 <?php do_action( 'bp_after_profile_edit_content' ) ?> 124 124
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)