Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/14/2009 03:24:05 PM (17 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/blogs/blogs-loop.php

    r2114 r2168  
    1 <?php if ( bp_has_site_blogs( 'type=active&per_page=10' ) ) : ?>
     1<?php if ( bp_has_blogs( 'type=active&per_page=10' ) ) : ?>
    22
    33        <div class="pagination">
    44
    55                <div class="pag-count" id="blog-dir-count">
    6                         <?php bp_site_blogs_pagination_count() ?>
     6                        <?php bp_blogs_pagination_count() ?>
    77                </div>
    88
    99                <div class="pagination-links" id="blog-dir-pag">
    10                         <?php bp_site_blogs_pagination_links() ?>
     10                        <?php bp_blogs_pagination_links() ?>
    1111                </div>
    1212
    … …  
    1616
    1717        <ul id="blogs-list" class="item-list">
    18         <?php while ( bp_site_blogs() ) : bp_the_site_blog(); ?>
     18        <?php while ( bp_blogs() ) : bp_the_blog(); ?>
    1919
    2020                <li>
    2121                        <div class="item-avatar">
    22                                 <a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_avatar_thumb() ?></a>
     22                                <a href="<?php bp_blog_permalink() ?>"><?php bp_blog_avatar_thumb() ?></a>
    2323                        </div>
    2424
    2525                        <div class="item">
    26                                 <div class="item-title"><a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_name() ?></a></div>
    27                                 <div class="item-meta"><span class="activity"><?php bp_the_site_blog_last_active() ?></span></div>
     26                                <div class="item-title"><a href="<?php bp_blog_permalink() ?>"><?php bp_blog_name() ?></a></div>
     27                                <div class="item-meta"><span class="activity"><?php bp_blog_last_active() ?></span></div>
    2828
    2929                                <?php do_action( 'bp_core_directory_blogs_item' ) ?>
    … …  
    3232                        <div class="action">
    3333                                <div class="generic-button blog-button visit">
    34                                         <a href="<?php bp_the_site_blog_link() ?>" class="visit" title="<?php _e( 'Visit Blog', 'buddypress' ) ?>"><?php _e( 'Visit Blog', 'buddypress' ) ?></a>
     34                                        <a href="<?php bp_blog_permalink() ?>" class="visit" title="<?php _e( 'Visit Blog', 'buddypress' ) ?>"><?php _e( 'Visit Blog', 'buddypress' ) ?></a>
    3535                                </div>
    3636
    3737                                <div class="meta">
    38                                         <?php bp_the_site_blog_latest_post() ?>
     38                                        <?php bp_blog_latest_post() ?>
    3939                                </div>
    4040
    … …  
    5050        <?php do_action( 'bp_after_directory_blogs_list' ) ?>
    5151
    52         <?php bp_the_site_blog_hidden_fields() ?>
     52        <?php bp_blog_hidden_fields() ?>
    5353
    5454<?php else: ?>
Note: See TracChangeset for help on using the changeset viewer.