Skip to:
Content

BuddyPress.org

Changeset 11861


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.

Location:
trunk/src/bp-templates/bp-nouveau/buddypress
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/activity-loop.php

    r11856 r11861  
    1010    <ul class="activity-list item-list bp-list" >
    1111
    12     <?php while ( bp_activities() ) : bp_the_activity(); ?>
     12    <?php
     13    while ( bp_activities() ) :
     14        bp_the_activity();
     15    ?>
    1316
    1417        <?php bp_get_template_part( 'activity/entry' ); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/widget.php

    r11856 r11861  
    99<?php if ( bp_has_activities( bp_nouveau_activity_widget_query() ) ) : ?>
    1010
    11         <div class="activity-list item-list">
     11    <div class="activity-list item-list">
    1212
    13             <?php while ( bp_activities() ) : bp_the_activity(); ?>
     13        <?php
     14        while ( bp_activities() ) :
     15            bp_the_activity();
     16        ?>
    1417
    15                 <?php if ( bp_activity_has_content() ) : ?>
     18            <?php if ( bp_activity_has_content() ) : ?>
    1619
    17                     <blockquote>
     20                <blockquote>
    1821
    19                         <?php bp_activity_content_body(); ?>
     22                    <?php bp_activity_content_body(); ?>
    2023
    21                         <footer>
     24                    <footer>
    2225
    23                             <cite>
    24                                 <a href="<?php bp_activity_user_link(); ?>">
    25                                     <?php
    26                                     bp_activity_avatar(
    27                                         array(
    28                                             'type'   => 'thumb',
    29                                             'width'  => '40px',
    30                                             'height' => '40px',
    31                                         )
    32                                     );
    33                                     ?>
    34                                 </a>
    35                             </cite>
     26                        <cite>
     27                            <a href="<?php bp_activity_user_link(); ?>">
     28                                <?php
     29                                bp_activity_avatar(
     30                                    array(
     31                                        'type'   => 'thumb',
     32                                        'width'  => '40px',
     33                                        'height' => '40px',
     34                                    )
     35                                );
     36                                ?>
     37                            </a>
     38                        </cite>
    3639
    37                             <?php echo bp_insert_activity_meta(); ?>
     40                        <?php echo bp_insert_activity_meta(); ?>
    3841
    39                         </footer>
     42                    </footer>
    4043
    41                     </blockquote>
     44                </blockquote>
    4245
    43                 <?php else : ?>
     46            <?php else : ?>
    4447
    45                     <p><?php bp_activity_action(); ?></p>
     48                <p><?php bp_activity_action(); ?></p>
    4649
    47                 <?php endif; ?>
     50            <?php endif; ?>
    4851
    49             <?php endwhile; ?>
     52        <?php endwhile; ?>
    5053
    51         </div>
     54    </div>
    5255
    5356<?php else : ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/assets/embeds/activity.php

    r11686 r11861  
     1<?php
     2if ( bp_activity_embed_has_activity( bp_current_action() ) ) :
     3?>
    14
    2         <?php if ( bp_activity_embed_has_activity( bp_current_action() ) ) : ?>
     5    <?php
     6    while ( bp_activities() ) :
     7        bp_the_activity();
     8    ?>
    39
    4             <?php while ( bp_activities() ) : bp_the_activity(); ?>
    5                 <div class="bp-embed-excerpt"><?php bp_activity_embed_excerpt(); ?></div>
     10        <div class="bp-embed-excerpt"><?php bp_activity_embed_excerpt(); ?></div>
    611
    7                 <?php bp_activity_embed_media(); ?>
     12        <?php bp_activity_embed_media(); ?>
    813
    9             <?php endwhile; ?>
     14    <?php endwhile; ?>
    1015
    11         <?php endif; ?>
     16<?php
     17endif;
  • trunk/src/bp-templates/bp-nouveau/buddypress/assets/embeds/header-activity.php

    r11686 r11861  
     1<div id="bp-embed-header">
     2    <div class="bp-embed-avatar">
     3        <a href="<?php bp_displayed_user_link(); ?>">
     4            <?php bp_displayed_user_avatar( 'type=thumb&width=45&height=45' ); ?>
     5        </a>
     6    </div>
    17
    2         <div id="bp-embed-header">
    3             <div class="bp-embed-avatar">
    4                 <a href="<?php bp_displayed_user_link(); ?>">
    5                     <?php bp_displayed_user_avatar( 'type=thumb&width=45&height=45' ); ?>
    6                 </a>
    7             </div>
     8    <?php if ( bp_activity_embed_has_activity( bp_current_action() ) ) : ?>
    89
    9             <?php if ( bp_activity_embed_has_activity( bp_current_action() ) ) : ?>
     10        <?php
     11        while ( bp_activities() ) :
     12            bp_the_activity();
     13        ?>
     14            <p class="bp-embed-activity-action">
     15                <?php bp_activity_action( array( 'no_timestamp' => true ) ); ?>
     16            </p>
     17        <?php endwhile; ?>
    1018
    11                 <?php while ( bp_activities() ) : bp_the_activity(); ?>
    12                     <p class="bp-embed-activity-action">
    13                         <?php bp_activity_action( array( 'no_timestamp' => true ) ); ?>
    14                     </p>
    15                 <?php endwhile; ?>
     19    <?php endif; ?>
    1620
    17             <?php endif; ?>
     21    <p class="bp-embed-header-meta">
     22        <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
     23            <span class="bp-embed-mentionname">@<?php bp_displayed_user_mentionname(); ?> &middot; </span>
     24        <?php endif; ?>
    1825
    19             <p class="bp-embed-header-meta">
    20                 <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
    21                     <span class="bp-embed-mentionname">@<?php bp_displayed_user_mentionname(); ?> &middot; </span>
    22                 <?php endif; ?>
    23 
    24                 <span class="bp-embed-timestamp"><a href="<?php bp_activity_thread_permalink(); ?>"><?php echo date_i18n( get_option( 'time_format' ) . ' - ' . get_option( 'date_format' ), strtotime( bp_get_activity_date_recorded() ) ); ?></a></span>
    25             </p>
    26         </div>
     26        <span class="bp-embed-timestamp"><a href="<?php bp_activity_thread_permalink(); ?>"><?php echo date_i18n( get_option( 'time_format' ) . ' - ' . get_option( 'date_format' ), strtotime( bp_get_activity_date_recorded() ) ); ?></a></span>
     27    </p>
     28</div>
  • trunk/src/bp-templates/bp-nouveau/buddypress/blogs/blogs-loop.php

    r11855 r11861  
    1616    <ul id="blogs-list" class="<?php bp_nouveau_loop_classes(); ?>">
    1717
    18     <?php while ( bp_blogs() ) : bp_the_blog(); ?>
     18    <?php
     19    while ( bp_blogs() ) :
     20        bp_the_blog();
     21    ?>
    1922
    20         <li <?php bp_blog_class( array( 'item-entry' ) ) ?>>
     23        <li <?php bp_blog_class( array( 'item-entry' ) ); ?>>
    2124            <div class="list-wrap">
    2225
     
    3437
    3538                        <?php if ( bp_nouveau_blog_has_latest_post() ) : ?>
    36                         <p class="meta last-post">
     39                            <p class="meta last-post">
    3740
    38                             <?php bp_blog_latest_post(); ?>
     41                                <?php bp_blog_latest_post(); ?>
    3942
    40                         </p>
     43                            </p>
    4144                        <?php endif; ?>
    4245
     
    6063    <?php bp_nouveau_pagination( 'bottom' ); ?>
    6164
    62 <?php
    63 else :
     65<?php else : ?>
    6466
    6567    bp_nouveau_user_feedback( 'blogs-loop-none' );
    6668
    67 endif;
    68 ?>
     69<?php endif; ?>
    6970
    70 <?php bp_nouveau_after_loop(); ?>
     71<?php
     72bp_nouveau_after_loop();
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/nav/directory-nav.php

    r11855 r11861  
    1313        <ul type="list" class="component-navigation <?php bp_nouveau_directory_list_class(); ?>">
    1414
    15             <?php while ( bp_nouveau_nav_items() ) : bp_nouveau_nav_item(); ?>
     15            <?php
     16            while ( bp_nouveau_nav_items() ) :
     17                bp_nouveau_nav_item();
     18            ?>
    1619
    1720                <li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>" <?php bp_nouveau_nav_scope(); ?> data-bp-object="<?php bp_nouveau_directory_nav_object(); ?>">
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/groups-loop.php

    r11855 r11861  
    2020    <ul id="groups-list" class="<?php bp_nouveau_loop_classes(); ?>">
    2121
    22     <?php while ( bp_groups() ) : bp_the_group(); ?>
     22    <?php
     23    while ( bp_groups() ) :
     24        bp_the_group();
     25    ?>
    2326
    2427        <li <?php bp_group_class( array( 'item-entry' ) ); ?> data-bp-item-id="<?php bp_group_id(); ?>" data-bp-item-component="groups">
     
    6568    <?php bp_nouveau_pagination( 'bottom' ); ?>
    6669
    67 <?php
    68 else :
     70<?php else : ?>
    6971
    7072    bp_nouveau_user_feedback( 'groups-loop-none' );
    7173
    72 endif;
    73 ?>
     74<?php endif; ?>
    7475
    75 <?php bp_nouveau_after_loop(); ?>
     76<?php
     77bp_nouveau_after_loop();
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/home.php

    r11686 r11861  
    66 */
    77
    8 ?>
    9 
    10     <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
     8if ( bp_has_groups() ) :
     9    while ( bp_groups() ) :
     10        bp_the_group();
     11    ?>
    1112
    1213        <?php bp_nouveau_group_hook( 'before', 'home_content' ); ?>
     
    3637        <?php bp_nouveau_group_hook( 'after', 'home_content' ); ?>
    3738
    38     <?php endwhile; endif; ?>
     39    <?php endwhile; ?>
     40
     41<?php
     42endif;
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/members-loop.php

    r11855 r11861  
    1717    <ul id="members-list" class="<?php bp_nouveau_loop_classes(); ?>">
    1818
    19         <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
     19        <?php
     20        while ( bp_group_members() ) :
     21            bp_group_the_member();
     22        ?>
    2023
    2124            <li <?php bp_member_class( array( 'item-entry' ) ); ?> data-bp-item-id="<?php echo esc_attr( bp_get_group_member_id() ); ?>" data-bp-item-component="members">
     
    5962    <?php bp_nouveau_group_hook( 'after', 'members_content' ); ?>
    6063
    61     <?php else:
     64<?php else : ?>
    6265
    6366        bp_nouveau_user_feedback( 'group-members-none' );
    6467
    65 endif; ?>
     68<?php
     69endif;
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/parts/admin-subnav.php

    r11855 r11861  
    1313        <ul class="subnav">
    1414
    15             <?php while ( bp_nouveau_nav_items() ) : bp_nouveau_nav_item(); ?>
     15            <?php
     16            while ( bp_nouveau_nav_items() ) :
     17                bp_nouveau_nav_item();
     18            ?>
    1619
    1720                <li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>">
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/parts/header-item-actions.php

    r11686 r11861  
    1010    <?php if ( bp_group_is_visible() ) : ?>
    1111
    12     <dl class="moderators-lists">
    13         <dt class="moderators-title"><?php _e( 'Group Admins', 'buddypress' ); ?></dt>
    14         <dd class="user-list admins"><?php bp_group_list_admins(); ?>
    15             <?php bp_nouveau_group_hook( 'after', 'menu_admins' ); ?>
    16         </dd>
    17     </dl>
     12        <dl class="moderators-lists">
     13            <dt class="moderators-title"><?php _e( 'Group Admins', 'buddypress' ); ?></dt>
     14            <dd class="user-list admins"><?php bp_group_list_admins(); ?>
     15                <?php bp_nouveau_group_hook( 'after', 'menu_admins' ); ?>
     16            </dd>
     17        </dl>
    1818
    19     <?php       if ( bp_group_has_moderators() ) :
    20             bp_nouveau_group_hook( 'before', 'menu_mods' ); ?>
     19        <?php
     20        if ( bp_group_has_moderators() ) :
     21              bp_nouveau_group_hook( 'before', 'menu_mods' );
     22        ?>
    2123
    22     <dl class="moderators-lists">
    23         <dt class="moderators-title"><?php _e( 'Group Mods' , 'buddypress' ); ?></dt>
    24         <dd class="user-list moderators">
    25                 <?php bp_group_list_mods();
    26                 bp_nouveau_group_hook( 'after', 'menu_mods' ); ?>
    27         </dd>
    28     </dl>
     24            <dl class="moderators-lists">
     25                <dt class="moderators-title"><?php _e( 'Group Mods', 'buddypress' ); ?></dt>
     26                <dd class="user-list moderators">
     27                    <?php
     28                    bp_group_list_mods();
     29                    bp_nouveau_group_hook( 'after', 'menu_mods' );
     30                    ?>
     31                </dd>
     32            </dl>
    2933
     34        <?php endif; ?>
    3035
    31 <?php   endif;
    32 
    33     endif; ?>
     36    <?php endif; ?>
    3437
    3538</div><!-- .item-actions -->
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/parts/item-nav.php

    r11855 r11861  
    77?>
    88
    9     <nav class="<?php bp_nouveau_single_item_nav_classes(); ?>" id="object-nav" role="navigation" aria-label="<?php esc_attr_e( 'Group menu', 'buddypress' ); ?>">
     9<nav class="<?php bp_nouveau_single_item_nav_classes(); ?>" id="object-nav" role="navigation" aria-label="<?php esc_attr_e( 'Group menu', 'buddypress' ); ?>">
    1010
    11         <?php if ( bp_nouveau_has_nav( array( 'object' => 'groups' ) ) ) : ?>
     11    <?php if ( bp_nouveau_has_nav( array( 'object' => 'groups' ) ) ) : ?>
    1212
    13             <ul>
     13        <ul>
    1414
    15                 <?php while ( bp_nouveau_nav_items() ) : bp_nouveau_nav_item(); ?>
     15            <?php
     16            while ( bp_nouveau_nav_items() ) :
     17                bp_nouveau_nav_item();
     18            ?>
    1619
    17                     <li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>">
    18                         <a href="<?php bp_nouveau_nav_link(); ?>" id="<?php bp_nouveau_nav_link_id(); ?>">
    19                             <?php bp_nouveau_nav_link_text(); ?>
     20                <li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>">
     21                    <a href="<?php bp_nouveau_nav_link(); ?>" id="<?php bp_nouveau_nav_link_id(); ?>">
     22                        <?php bp_nouveau_nav_link_text(); ?>
    2023
    21                             <?php if ( bp_nouveau_nav_has_count() ) : ?>
    22                                 <span><?php bp_nouveau_nav_count(); ?></span>
    23                             <?php endif; ?>
    24                         </a>
    25                     </li>
     24                        <?php if ( bp_nouveau_nav_has_count() ) : ?>
     25                            <span><?php bp_nouveau_nav_count(); ?></span>
     26                        <?php endif; ?>
     27                    </a>
     28                </li>
    2629
    27                 <?php endwhile; ?>
     30            <?php endwhile; ?>
    2831
    29                 <?php bp_nouveau_group_hook( '', 'options_nav' ); ?>
     32            <?php bp_nouveau_group_hook( '', 'options_nav' ); ?>
    3033
    31             </ul>
     34        </ul>
    3235
    33         <?php endif; ?>
     36    <?php endif; ?>
    3437
    35     </nav>
     38</nav>
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/requests-loop.php

    r11855 r11861  
    1212
    1313    <ul id="request-list" class="item-list bp-list">
    14         <?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?>
     14        <?php
     15        while ( bp_group_membership_requests() ) :
     16            bp_group_the_membership_request();
     17        ?>
    1518
    1619            <li>
     
    2932    <?php bp_nouveau_pagination( 'bottom' ); ?>
    3033
    31     <?php else:
     34<?php else : ?>
    3235
    33         bp_nouveau_user_feedback( 'group-requests-none' );
     36    <?php bp_nouveau_user_feedback( 'group-requests-none' ); ?>
    3437
    35     endif; ?>
     38<?php
     39endif;
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/friends/requests.php

    r11855 r11861  
    1313
    1414    <ul id="friend-list" class="<?php bp_nouveau_loop_classes(); ?>" data-bp-list="friendship_requests">
    15         <?php while ( bp_members() ) : bp_the_member(); ?>
     15        <?php
     16        while ( bp_members() ) :
     17            bp_the_member();
     18        ?>
    1619
    1720            <li id="friendship-<?php bp_friend_friendship_id(); ?>" <?php bp_member_class( array( 'item-entry' ) ); ?> data-bp-item-id="<?php bp_friend_friendship_id(); ?>" data-bp-item-component="members">
     
    3740    <?php bp_nouveau_pagination( 'bottom' ); ?>
    3841
    39 <?php
    40 else :
     42<?php else : ?>
    4143
    42     bp_nouveau_user_feedback( 'member-requests-none' );
     44    <?php bp_nouveau_user_feedback( 'member-requests-none' ); ?>
    4345
    44 endif;
    45 ?>
     46<?php endif; ?>
    4647
    4748<?php
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/groups/invites.php

    r11856 r11861  
    1212    <ul id="group-list" class="invites item-list bp-list" data-bp-list="groups_invites">
    1313
    14         <?php while ( bp_groups() ) : bp_the_group(); ?>
     14        <?php
     15        while ( bp_groups() ) :
     16            bp_the_group();
     17        ?>
    1518
    1619            <li class="item-entry invites-list" data-bp-item-id="<?php bp_group_id(); ?>" data-bp-item-component="groups">
     
    5255    </ul>
    5356
    54 <?php
    55 else :
     57<?php else : ?>
    5658
    57     bp_nouveau_user_feedback( 'member-invites-none' );
     59    <?php bp_nouveau_user_feedback( 'member-invites-none' ); ?>
    5860
    59 endif;
    60 ?>
     61<?php endif; ?>
    6162
    6263<?php
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/notifications/notifications-loop.php

    r11855 r11861  
    2727            <tbody>
    2828
    29                 <?php while ( bp_the_notifications() ) : bp_the_notification(); ?>
     29                <?php
     30                while ( bp_the_notifications() ) :
     31                    bp_the_notification();
     32                ?>
    3033
    3134                    <tr>
     
    4952    </form>
    5053
    51     <?php
    52     bp_nouveau_pagination( 'bottom' );
     54    <?php bp_nouveau_pagination( 'bottom' ); ?>
    5355
    54 else :
     56<?php else : ?>
    5557
    56     bp_nouveau_user_feedback( 'member-notifications-none' );
     58    <?php bp_nouveau_user_feedback( 'member-notifications-none' ); ?>
    5759
    58 endif;
     60<?php endif;
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-nav.php

    r11855 r11861  
    77?>
    88
    9     <nav class="<?php bp_nouveau_single_item_nav_classes(); ?>" id="object-nav" role="navigation" aria-label="<?php esc_attr_e( 'User menu', 'buddypress' ); ?>">
     9<nav class="<?php bp_nouveau_single_item_nav_classes(); ?>" id="object-nav" role="navigation" aria-label="<?php esc_attr_e( 'User menu', 'buddypress' ); ?>">
    1010
    11         <?php if ( bp_nouveau_has_nav( array( 'type' => 'primary' ) ) ) : ?>
     11    <?php if ( bp_nouveau_has_nav( array( 'type' => 'primary' ) ) ) : ?>
    1212
    13             <ul>
     13        <ul>
    1414
    15                 <?php while ( bp_nouveau_nav_items() ) : bp_nouveau_nav_item(); ?>
     15            <?php
     16            while ( bp_nouveau_nav_items() ) :
     17                bp_nouveau_nav_item();
     18            ?>
    1619
    17                     <li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>">
    18                         <a href="<?php bp_nouveau_nav_link(); ?>" id="<?php bp_nouveau_nav_link_id(); ?>">
    19                             <?php bp_nouveau_nav_link_text(); ?>
     20                <li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>">
     21                    <a href="<?php bp_nouveau_nav_link(); ?>" id="<?php bp_nouveau_nav_link_id(); ?>">
     22                        <?php bp_nouveau_nav_link_text(); ?>
    2023
    21                             <?php if ( bp_nouveau_nav_has_count() ) : ?>
    22                                 <span><?php bp_nouveau_nav_count(); ?></span>
    23                             <?php endif; ?>
    24                         </a>
    25                     </li>
     24                        <?php if ( bp_nouveau_nav_has_count() ) : ?>
     25                            <span><?php bp_nouveau_nav_count(); ?></span>
     26                        <?php endif; ?>
     27                    </a>
     28                </li>
    2629
    27                 <?php endwhile; ?>
     30            <?php endwhile; ?>
    2831
    29                 <?php bp_nouveau_member_hook( '', 'options_nav' ); ?>
     32            <?php bp_nouveau_member_hook( '', 'options_nav' ); ?>
    3033
    31             </ul>
     34        </ul>
    3235
    33         <?php endif; ?>
     36    <?php endif; ?>
    3437
    35     </nav>
     38</nav>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-subnav.php

    r11855 r11861  
    99<?php if ( bp_nouveau_has_nav( array( 'type' => 'secondary' ) ) ) : ?>
    1010
    11     <?php while ( bp_nouveau_nav_items() ) : bp_nouveau_nav_item(); ?>
     11    <?php
     12    while ( bp_nouveau_nav_items() ) :
     13        bp_nouveau_nav_item();
     14    ?>
    1215
    1316        <li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>" <?php bp_nouveau_nav_scope(); ?>>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/profile-visibility.php

    r11686 r11861  
    66 */
    77
    8 if ( empty( $GLOBALS['profile_template'] ) ) return;
     8if ( empty( $GLOBALS['profile_template'] ) ) {
     9    return;
     10}
    911?>
    1012
    1113<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    1214
    13     <p class="field-visibility-settings-toggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
     15    <p class="field-visibility-settings-toggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>">
    1416
    15         <?php printf(
     17        <?php
     18        printf(
    1619            __( 'This field may be seen by: %s', 'buddypress' ),
    1720            '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
    18         ); ?>
     21        );
     22        ?>
    1923        <button class="visibility-toggle-link text-button" type="button"><?php _e( 'Change', 'buddypress' ); ?></button>
    2024
    2125    </p>
    2226
    23     <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
     27    <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id(); ?>">
    2428        <fieldset>
    25             <legend><?php _e( 'Who is allowed to see this field?', 'buddypress' ) ?></legend>
     29            <legend><?php _e( 'Who is allowed to see this field?', 'buddypress' ); ?></legend>
    2630
    27             <?php bp_profile_visibility_radio_buttons() ?>
     31            <?php bp_profile_visibility_radio_buttons(); ?>
    2832
    2933        </fieldset>
    30         <button class="field-visibility-settings-close button" type="button"><?php _e( 'Close', 'buddypress' ) ?></button>
     34        <button class="field-visibility-settings-close button" type="button"><?php _e( 'Close', 'buddypress' ); ?></button>
    3135    </div>
    3236
    3337<?php else : ?>
    3438
    35     <p class="field-visibility-settings-notoggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    36         <?php printf(
     39    <p class="field-visibility-settings-notoggle field-visibility-settings-header" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>">
     40        <?php
     41        printf(
    3742            __( 'This field may be seen by: %s', 'buddypress' ),
    3843            '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
    39         ); ?>
     44        );
     45        ?>
    4046    </p>
    4147
    42 <?php endif ?>
     48<?php endif;
  • 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' );
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/profile-loop.php

    r11855 r11861  
    1010<?php if ( bp_has_profile() ) : ?>
    1111
    12     <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
     12    <?php
     13    while ( bp_profile_groups() ) :
     14        bp_the_profile_group();
     15    ?>
    1316
    1417        <?php if ( bp_profile_group_has_fields() ) : ?>
     
    2427                <table class="profile-fields bp-tables-user">
    2528
    26                     <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
     29                    <?php
     30                    while ( bp_profile_fields() ) :
     31                        bp_the_profile_field();
     32                    ?>
    2733
    2834                        <?php if ( bp_field_has_data() ) : ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/profile-wp.php

    r11686 r11861  
    2828        <table class="wp-profile-fields">
    2929
    30             <?php while ( bp_nouveau_wp_profile_fields() ) : bp_nouveau_wp_profile_field(); ?>
     30            <?php
     31            while ( bp_nouveau_wp_profile_fields() ) :
     32                bp_nouveau_wp_profile_field();
     33            ?>
    3134
    32                 <tr id="<?php bp_nouveau_wp_profile_field_id();?>">
    33                     <td class="label"><?php bp_nouveau_wp_profile_field_label();?></td>
    34                     <td class="data"><?php bp_nouveau_wp_profile_field_data();?></td>
     35                <tr id="<?php bp_nouveau_wp_profile_field_id(); ?>">
     36                    <td class="label"><?php bp_nouveau_wp_profile_field_label(); ?></td>
     37                    <td class="data"><?php bp_nouveau_wp_profile_field_data(); ?></td>
    3538                </tr>
    3639
    37             <?php endwhile ;?>
     40            <?php endwhile; ?>
    3841
    3942        </table>
    4043
    41     <?php else :
     44    <?php else : ?>
    4245
    43         bp_nouveau_user_feedback( 'member-wp-profile-none' );
     46        <?php bp_nouveau_user_feedback( 'member-wp-profile-none' ); ?>
    4447
    45     endif; ?>
     48    <?php endif; ?>
    4649
    4750</div>
    4851
    49 <?php bp_nouveau_wp_profile_hooks( 'after' ); ?>
     52<?php
     53bp_nouveau_wp_profile_hooks( 'after' );
     54
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/capabilities.php

    r11855 r11861  
    1616    <label for="user-spammer">
    1717        <input type="checkbox" name="user-spammer" id="user-spammer" value="1" <?php checked( bp_is_user_spammer( bp_displayed_user_id() ) ); ?> />
    18          <?php _e( 'This user is a spammer.', 'buddypress' ); ?>
     18            <?php _e( 'This user is a spammer.', 'buddypress' ); ?>
    1919    </label>
    2020
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/group-invites.php

    r11855 r11861  
    2424    <label for="account-group-invites-preferences">
    2525        <input type="checkbox" name="account-group-invites-preferences" id="account-group-invites-preferences" value="1" <?php checked( 1, bp_nouveau_groups_get_group_invites_setting() ); ?>/>
    26          <?php esc_html_e( 'I want to restrict Group invites to my friends only.', 'buddypress' ); ?>
     26            <?php esc_html_e( 'I want to restrict Group invites to my friends only.', 'buddypress' ); ?>
    2727    </label>
    2828
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/profile.php

    r11855 r11861  
    2020    <?php if ( bp_xprofile_get_settings_fields() ) : ?>
    2121
    22         <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
     22        <?php
     23        while ( bp_profile_groups() ) :
     24            bp_the_profile_group();
     25        ?>
    2326
    2427            <?php if ( bp_profile_fields() ) : ?>
     
    3437                    <tbody>
    3538
    36                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
     39                        <?php
     40                        while ( bp_profile_fields() ) :
     41                            bp_the_profile_field();
     42                        ?>
    3743
    3844                            <tr <?php bp_field_css_class(); ?>>
Note: See TracChangeset for help on using the changeset viewer.