Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/18/2018 12:43:27 PM (8 years ago)
Author:
djpaul
Message:

Templates, Nouveau: make inline control structures consistent, and indentation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/edit.php

    r11855 r11861  
    99
    1010if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
    11         while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
     11        while ( bp_profile_groups() ) :
     12                bp_the_profile_group();
     13        ?>
    1214
    13 <form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form profile-edit <?php bp_the_profile_group_slug(); ?>">
     15                <form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form profile-edit <?php bp_the_profile_group_slug(); ?>">
    1416
    15         <?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?>
     17                        <?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?>
    1618
    17                 <?php if ( bp_profile_has_multiple_groups() ) : ?>
    18                         <ul class="button-tabs button-nav">
     19                                <?php if ( bp_profile_has_multiple_groups() ) : ?>
     20                                        <ul class="button-tabs button-nav">
    1921
    20                                 <?php bp_profile_group_tabs(); ?>
     22                                                <?php bp_profile_group_tabs(); ?>
    2123
    22                         </ul>
    23                 <?php endif; ?>
     24                                        </ul>
     25                                <?php endif; ?>
    2426
    25                 <h2 class="screen-heading profile-group-title edit"><?php printf( __( 'Editing \'%s\' Profile Group', 'buddypress' ), bp_get_the_profile_group_name() ); ?></h2>
    26 
    27                 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    28 
    29                         <div<?php bp_field_css_class( 'editfield' ); ?>>
    30                                 <fieldset>
     27                                <h2 class="screen-heading profile-group-title edit"><?php printf( __( 'Editing \'%s\' Profile Group', 'buddypress' ), bp_get_the_profile_group_name() ); ?></h2>
    3128
    3229                                <?php
    33                                 $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    34                                 $field_type->edit_field_html();
     30                                while ( bp_profile_fields() ) :
     31                                        bp_the_profile_field();
    3532                                ?>
    3633
    37                                 <?php bp_nouveau_xprofile_edit_visibilty(); ?>
     34                                        <div<?php bp_field_css_class( 'editfield' ); ?>>
     35                                                <fieldset>
    3836
    39                                 </fieldset>
    40                         </div>
     37                                                <?php
     38                                                $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
     39                                                $field_type->edit_field_html();
     40                                                ?>
    4141
    42                 <?php endwhile; ?>
     42                                                <?php bp_nouveau_xprofile_edit_visibilty(); ?>
    4343
    44         <?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?>
     44                                                </fieldset>
     45                                        </div>
    4546
    46         <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
     47                                <?php endwhile; ?>
    4748
    48         <?php bp_nouveau_submit_button( 'member-profile-edit' ); ?>
     49                        <?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?>
    4950
    50 </form>
     51                        <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    5152
    52         <?php
    53         endwhile;
     53                        <?php bp_nouveau_submit_button( 'member-profile-edit' ); ?>
    5454
    55 endif;
     55                </form>
    5656
     57        <?php endwhile; ?>
     58
     59<?php endif; ?>
     60
     61<?php
    5762bp_nouveau_xprofile_hook( 'after', 'edit_content' );
Note: See TracChangeset for help on using the changeset viewer.