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/friends/requests.php

    r2077 r2168  
    66    <div id="content">
    77
    8         <div class="pagination">
    9 
    10             <div class="pagination-links" id="pag">
    11                 <?php bp_friend_pagination() ?>
    12             </div>
    13 
    14         </div>
    15 
    168        <h2><?php _e( 'Friendship Requests', 'buddypress' ); ?></h2>
    179        <?php do_action( 'template_notices' ) // (error/success feedback) ?>
     
    1911        <?php do_action( 'bp_before_friend_requests_content' ) ?>
    2012
    21         <?php if ( bp_has_friendships() ) : ?>
     13        <?php if ( bp_has_members( 'include=' . bp_get_friendship_requests() ) ) : ?>
    2214
    2315            <ul id="friend-list" class="item-list">
    24                 <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?>
     16                <?php while ( bp_members() ) : bp_the_member(); ?>
    2517
    26                     <li>
    27                         <?php bp_friend_avatar_thumb() ?>
    28                         <h4><?php bp_friend_link() ?></h4>
    29                         <span class="activity"><?php bp_friend_time_since_requested() ?></span>
     18                <li>
     19                    <div class="item-avatar">
     20                        <a href="<?php bp_member_link() ?>"><?php bp_member_avatar() ?></a>
     21                    </div>
    3022
    31                         <?php do_action( 'bp_friend_requests_item' ) ?>
     23                    <div class="item">
     24                        <div class="item-title"><a href="<?php bp_member_link() ?>"><?php bp_member_name() ?></a></div>
     25                        <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
     26                    </div>
    3227
    33                         <div class="action">
    34                             <div class="generic-button accept">
    35                                 <a href="<?php bp_friend_accept_request_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a>
    36                             </div>
     28                    <div class="action">
     29                        <div class="generic-button accept">
     30                            <a href="<?php bp_friend_accept_request_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a>
     31                        </div>
    3732
    38                             &nbsp;
     33                        &nbsp;
    3934
    40                             <div class="generic-button reject">
    41                                 <a href="<?php bp_friend_reject_request_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    42                             </div>
     35                        <div class="generic-button reject">
     36                            <a href="<?php bp_friend_reject_request_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
     37                        </div>
    4338
    44                             <?php do_action( 'bp_friend_requests_item_action' ) ?>
    45                         </div>
    46                     </li>
     39                        <?php do_action( 'bp_friend_requests_item_action' ) ?>
     40                    </div>
     41
     42
     43                    <div class="clear"></div>
     44                </li>
    4745
    4846                <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.