Skip to:
Content

BuddyPress.org

Changeset 6877


Ignore:
Timestamp:
04/01/2013 10:34:00 PM (12 years ago)
Author:
djpaul
Message:

Don't wrap the members widget AJAX response in <div class="avatar-block">. Fixes #4902

These tags are already present in the surrounding area on the page, so this avoids duplicating markup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-widgets.php

    r6865 r6877  
    302302    if ( bp_has_members( 'user_id=0&type=' . $type . '&per_page=' . $_POST['max-members'] . '&max=' . $_POST['max-members'] . '&populate_extras=1' ) ) : ?>
    303303        <?php echo '0[[SPLIT]]'; // return valid result. TODO: remove this. ?>
    304         <div class="avatar-block">
    305             <?php while ( bp_members() ) : bp_the_member(); ?>
    306                 <li class="vcard">
    307                     <div class="item-avatar">
    308                         <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar() ?></a>
    309                     </div>
    310 
    311                     <div class="item">
    312                         <div class="item-title fn"><a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name() ?>"><?php bp_member_name() ?></a></div>
    313                         <?php if ( 'active' == $type ) : ?>
    314                             <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
    315                         <?php elseif ( 'newest' == $type ) : ?>
    316                             <div class="item-meta"><span class="activity"><?php bp_member_registered() ?></span></div>
    317                         <?php elseif ( bp_is_active( 'friends' ) ) : ?>
    318                             <div class="item-meta"><span class="activity"><?php bp_member_total_friend_count() ?></span></div>
    319                         <?php endif; ?>
    320                     </div>
    321                 </li>
    322 
    323             <?php endwhile; ?>
    324         </div>
     304        <?php while ( bp_members() ) : bp_the_member(); ?>
     305            <li class="vcard">
     306                <div class="item-avatar">
     307                    <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar() ?></a>
     308                </div>
     309
     310                <div class="item">
     311                    <div class="item-title fn"><a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name() ?>"><?php bp_member_name() ?></a></div>
     312                    <?php if ( 'active' == $type ) : ?>
     313                        <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
     314                    <?php elseif ( 'newest' == $type ) : ?>
     315                        <div class="item-meta"><span class="activity"><?php bp_member_registered() ?></span></div>
     316                    <?php elseif ( bp_is_active( 'friends' ) ) : ?>
     317                        <div class="item-meta"><span class="activity"><?php bp_member_total_friend_count() ?></span></div>
     318                    <?php endif; ?>
     319                </div>
     320            </li>
     321        <?php endwhile; ?>
    325322
    326323    <?php else: ?>
Note: See TracChangeset for help on using the changeset viewer.