Changeset 2284 for trunk/bp-themes/bp-default/activity/index.php
- Timestamp:
- 01/09/2010 04:16:51 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/activity/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/activity/index.php
r2253 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_activity_content' ) ?>4 2 5 3 <div id="content"> … … 10 8 <?php endif; ?> 11 9 12 < div class="widget_bp_activity_widget">10 <?php do_action( 'bp_before_directory_activity_content' ) ?> 13 11 14 <?php if ( is_user_logged_in() ) : ?>15 <?php locate_template( array( 'activity/post-form.php'), true ) ?>16 <?php endif; ?>12 <?php if ( is_user_logged_in() ) : ?> 13 <?php locate_template( array( 'activity/post-form.php'), true ) ?> 14 <?php endif; ?> 17 15 18 <div class="clear"></div>16 <?php do_action( 'template_notices' ) ?> 19 17 20 <?php do_action( 'template_notices' ) ?> 18 <div class="item-list-tabs"> 19 <ul> 20 <li class="selected" id="activity-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li> 21 21 22 <div class="item-list-tabs"> 23 <ul> 24 <li class="selected" id="activity-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li> 22 <?php if ( is_user_logged_in() ) : ?> 25 23 26 <?php if ( is_user_logged_in() ) : ?> 27 28 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 29 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 30 <?php endif; ?> 31 32 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 33 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 34 <?php endif; ?> 35 36 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 37 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-favorites/' ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 38 <?php endif; ?> 39 24 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 25 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 40 26 <?php endif; ?> 41 27 42 <?php do_action( 'bp_activity_type_tabs' ) ?> 28 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 29 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 30 <?php endif; ?> 43 31 44 <li id="activity-filter-select" class="last"> 45 <select> 46 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 47 <option value="new_wire_post"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 48 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 49 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 50 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 51 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 52 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 53 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 54 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 55 <option value="new_member"><?php _e( 'Show New Members', 'buddypress' ) ?></option> 32 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 33 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-favorites/' ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 34 <?php endif; ?> 56 35 57 <?php do_action( 'bp_activity_filter_options' ) ?> 58 </select> 59 </li> 60 </ul> 61 </div> 36 <?php endif; ?> 62 37 63 <div class="activity"> 64 <?php // The loop will be loaded here via AJAX on page load to retain selected settings. ?> 65 </div> 38 <?php do_action( 'bp_activity_type_tabs' ) ?> 66 39 67 <form action="" name="activity-widget-form" id="activity-widget-form" method="post"> 68 <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?> 69 <input type="hidden" id="aw-querystring" name="aw-querystring" value="" /> 70 <input type="hidden" id="aw-oldestpage" name="aw-oldestpage" value="1" /> 71 </form> 40 <li id="activity-filter-select" class="last"> 41 <select> 42 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 43 <option value="new_wire_post"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 44 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 45 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 46 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 47 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 48 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 49 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 50 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 51 <option value="new_member"><?php _e( 'Show New Members', 'buddypress' ) ?></option> 72 52 73 </div><!-- .widget_bp_activity_widget --> 53 <?php do_action( 'bp_activity_filter_options' ) ?> 54 </select> 55 </li> 56 </ul> 57 </div><!-- .item-list-tabs --> 58 59 <div class="activity"> 60 <?php 61 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 62 // If you're concerned about no-script functionality, uncomment the following line. 63 64 // locate_template( array( 'activity/activity-loop.php' ), true ); 65 ?> 66 </div><!-- .activity --> 67 68 <form action="" name="activity-widget-form" id="activity-widget-form" method="post"> 69 <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?> 70 <input type="hidden" id="aw-querystring" name="aw-querystring" value="" /> 71 <input type="hidden" id="aw-oldestpage" name="aw-oldestpage" value="1" /> 72 </form> 73 74 <?php do_action( 'bp_after_directory_activity_content' ) ?> 74 75 75 76 </div><!-- .padder --> … … 78 79 <?php locate_template( array( 'sidebar.php' ), true ) ?> 79 80 80 <?php do_action( 'bp_after_directory_activity_content' ) ?>81 82 81 <?php get_footer() ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)