Skip to:
Content

BuddyPress.org

Changeset 2596


Ignore:
Timestamp:
02/04/2010 04:40:54 PM (15 years ago)
Author:
apeatling
Message:

Adding do_action() calls between activity tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/activity/index.php

    r2573 r2596  
    1818            <div class="item-list-tabs activity-type-tabs">
    1919                <ul>
     20                    <?php do_action( 'bp_before_activity_type_tab_all' ) ?>
     21
    2022                    <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ) ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li>
    2123
    2224                    <?php if ( is_user_logged_in() ) : ?>
     25
     26                        <?php do_action( 'bp_before_activity_type_tab_friends' ) ?>
    2327
    2428                        <?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?>
     
    2832                        <?php endif; ?>
    2933
     34                        <?php do_action( 'bp_before_activity_type_tab_groups' ) ?>
     35
    3036                        <?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?>
    3137                            <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
     
    3440                        <?php endif; ?>
    3541
     42                        <?php do_action( 'bp_before_activity_type_tab_favorites' ) ?>
     43
    3644                        <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    3745                            <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/favorites/' ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ) ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
    3846                        <?php endif; ?>
     47
     48                        <?php do_action( 'bp_before_activity_type_tab_mentions' ) ?>
    3949
    4050                        <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/mentions/' ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?>"><?php printf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ) ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '(%s new)', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ?></strong><?php endif; ?></a></li>
Note: See TracChangeset for help on using the changeset viewer.