Skip to:
Content

BuddyPress.org

Changeset 10813


Ignore:
Timestamp:
05/26/2016 10:42:36 AM (4 years ago)
Author:
hnla
Message:

Re-factor Group requests loop template

Commit addresses issues with member display in loops where heading element is used to render user name and user request comments.

Commit removes heading and removes user comments to a more appropriate paragraph tag.

This brings the request loop into closer parity to other generic loops of this type.

Fixes #6774

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/requests-loop.php

    r10181 r10813  
    3030        <?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?>
    3131
    32             <li>
    33                 <?php bp_group_request_user_avatar_thumb(); ?>
    34                 <h4><?php bp_group_request_user_link(); ?> <span class="comments"><?php bp_group_request_comment(); ?></span></h4>
    35                 <span class="activity"><?php bp_group_request_time_since_requested(); ?></span>
     32            <li class="item-list group-request-list">
    3633
    37                 <?php
     34                <div class="item-avatar"><?php bp_group_request_user_avatar_thumb(); ?></div>
    3835
    39                 /**
    40                  * Fires inside the groups membership request list loop.
    41                  *
    42                  * @since 1.1.0
    43                  */
    44                 do_action( 'bp_group_membership_requests_admin_item' ); ?>
     36                <div class="item">
     37
     38                    <div class="item-title"><?php bp_group_request_user_link(); ?> </div>
     39
     40                    <span class="activity"><?php bp_group_request_time_since_requested(); ?></span>
     41
     42                    <p class="comments"><?php bp_group_request_comment(); ?></p>
     43
     44                    <?php
     45
     46                    /**
     47                     * Fires inside the groups membership request list loop.
     48                     *
     49                     * @since 1.1.0
     50                     */
     51                    do_action( 'bp_group_membership_requests_admin_item' ); ?>
     52
     53                </div>
    4554
    4655                <div class="action">
Note: See TracChangeset for help on using the changeset viewer.