Changeset 8214
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/buddypress/members/single/settings/profile.php
r8210 r8214 7 7 <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 8 8 9 <table class="profile-settings" id="xprofile-settings-<?php bp_the_profile_group_slug(); ?>"> 10 <thead> 11 <tr> 12 <th class="title field-group-name"><?php bp_the_profile_group_name(); ?></th> 13 <th class="title"><?php _e( 'Visibility', 'buddypress' ); ?></th> 14 </tr> 15 </thead> 9 <?php if ( bp_profile_fields() ) : ?> 16 10 17 <tbody> 11 <table class="profile-settings" id="xprofile-settings-<?php bp_the_profile_group_slug(); ?>"> 12 <thead> 13 <tr> 14 <th class="title field-group-name"><?php bp_the_profile_group_name(); ?></th> 15 <th class="title"><?php _e( 'Visibility', 'buddypress' ); ?></th> 16 </tr> 17 </thead> 18 18 19 < ?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>19 <tbody> 20 20 21 <tr <?php bp_field_css_class(); ?>> 22 <td class="field-name"><?php bp_the_profile_field_name(); ?></td> 23 <td class="field-visibility"><?php bp_profile_settings_visibility_select(); ?></td> 24 </tr> 21 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 25 22 26 <?php endwhile; ?> 23 <tr <?php bp_field_css_class(); ?>> 24 <td class="field-name"><?php bp_the_profile_field_name(); ?></td> 25 <td class="field-visibility"><?php bp_profile_settings_visibility_select(); ?></td> 26 </tr> 27 27 28 </tbody> 29 </table> 28 <?php endwhile; ?> 29 30 </tbody> 31 </table> 32 33 <?php endif; ?> 30 34 31 35 <?php endwhile; ?> -
trunk/bp-themes/bp-default/members/single/settings/profile.php
r8210 r8214 57 57 <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 58 58 59 <table class="profile-settings" id="xprofile-settings-<?php bp_the_profile_group_slug(); ?>"> 60 <thead> 61 <tr> 62 <th class="title field-group-name"><?php bp_the_profile_group_name(); ?></th> 63 <th class="title"><?php _e( 'Visibility', 'buddypress' ); ?></th> 64 </tr> 65 </thead> 59 <?php if ( bp_profile_fields() ) : ?> 66 60 67 <tbody> 61 <table class="profile-settings" id="xprofile-settings-<?php bp_the_profile_group_slug(); ?>"> 62 <thead> 63 <tr> 64 <th class="title field-group-name"><?php bp_the_profile_group_name(); ?></th> 65 <th class="title"><?php _e( 'Visibility', 'buddypress' ); ?></th> 66 </tr> 67 </thead> 68 68 69 < ?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>69 <tbody> 70 70 71 <tr <?php bp_field_css_class(); ?>> 72 <td class="field-name"><?php bp_the_profile_field_name(); ?></td> 73 <td class="field-visibility"><?php bp_profile_settings_visibility_select(); ?></td> 74 </tr> 71 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 75 72 76 <?php endwhile; ?> 73 <tr <?php bp_field_css_class(); ?>> 74 <td class="field-name"><?php bp_the_profile_field_name(); ?></td> 75 <td class="field-visibility"><?php bp_profile_settings_visibility_select(); ?></td> 76 </tr> 77 77 78 </tbody> 79 </table> 78 <?php endwhile; ?> 79 80 </tbody> 81 </table> 82 83 <?php endif; ?> 80 84 81 85 <?php endwhile; ?> -
trunk/bp-xprofile/bp-xprofile-template.php
r8210 r8214 290 290 291 291 $field_ids = ''; 292 foreach ( (array) $group->fields as $field ) 293 $field_ids .= $field->id . ','; 292 293 if ( !empty( $group->fields ) ) { 294 foreach ( (array) $group->fields as $field ) { 295 $field_ids .= $field->id . ','; 296 } 297 } 294 298 295 299 return substr( $field_ids, 0, -1 );
Note: See TracChangeset
for help on using the changeset viewer.