Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/14/2009 03:24:05 PM (16 years ago)
Author:
apeatling
Message:

Committing core code support for new default theme.

Removed all deprecated code since it will be released as a separate plugin for backwards compatibility if people need it.

Removed the wire and status updates components since there is no support in the theme for these. If people still want this functionality then I'm sure there is someone in the community that could spend a bit of time and release them as plugins. I'm happy to guide.

Removed a lot of template loop duplication. There are no longer site loops and user loops (e.g. bp_has_site_groups() / bp_has_groups() ). There are now bp_has_members(), bp_has_groups(), bp_has_blogs() and you can pass a "user_id" parameter into these loops to limit results to only that user or users.

Merged activity stream functions. There are no longer functions for bp_activity_get_sitewide() / bp_activity_get_for_user() / bp_activity_get_friends_activity() instead there is simply one function: bp_activity_get() and you can pass in parameters to filter on just friends, for a single user, or anything your heart desires. Actually, filtering is extremely fine grained, so I encourage devs to check out the filter functions.

Lots of other code cleanup.

The new default theme will be committed straight after this. The original default folder will be renamed to bp-classic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-parent/directories/members/index.php

    r2077 r2168  
    7979            <h3><?php _e( 'Random Members', 'buddypress' ) ?></h3>
    8080
    81             <?php if ( bp_has_site_members( 'type=random&max=3' ) ) : ?>
     81            <?php if ( bp_has_members( 'type=random&max=3' ) ) : ?>
    8282
    8383                <ul id="featured-members-list" class="item-list">
    84                 <?php while ( bp_site_members() ) : bp_the_site_member(); ?>
     84                <?php while ( bp_members() ) : bp_the_member(); ?>
    8585
    8686                    <li>
    8787                        <div class="item-avatar">
    88                             <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_avatar() ?></a>
     88                            <a href="<?php bp_member_link() ?>"><?php bp_member_avatar() ?></a>
    8989                        </div>
    9090
    9191                        <div class="item">
    92                             <div class="item-title"><a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a></div>
    93                             <div class="item-meta"><span class="activity"><?php bp_the_site_member_last_active() ?></span></div>
     92                            <div class="item-title"><a href="<?php bp_member_link() ?>"><?php bp_member_name() ?></a></div>
     93                            <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
    9494
    9595                            <div class="field-data">
    96                                 <div class="field-name"><?php bp_the_site_member_total_friend_count() ?></div>
    97                                 <div class="field-name xprofile-data"><?php bp_the_site_member_random_profile_data() ?></div>
     96                                <div class="field-name xprofile-data"><?php bp_member_random_profile_data() ?></div>
    9897                            </div>
    9998
Note: See TracChangeset for help on using the changeset viewer.