Changeset 3751 for trunk/bp-themes/bp-default/activity/index.php
- Timestamp:
- 01/20/2011 03:56:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/activity/index.php
r3698 r3751 1 <?php 2 3 /** 4 * Template Name: BuddyPress - Activity Directory 5 * 6 * @package bbPress 7 * @subpackage Theme 8 */ 9 10 ?> 11 1 12 <?php get_header() ?> 2 13 … … 5 16 6 17 <?php if ( !is_user_logged_in() ) : ?> 18 7 19 <h3><?php _e( 'Site Activity', 'buddypress' ) ?></h3> 20 8 21 <?php endif; ?> 9 22 … … 11 24 12 25 <?php if ( is_user_logged_in() ) : ?> 26 13 27 <?php locate_template( array( 'activity/post-form.php'), true ) ?> 28 14 29 <?php endif; ?> 15 30 … … 20 35 <?php do_action( 'bp_before_activity_type_tab_all' ) ?> 21 36 22 <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>37 <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . bp_get_group_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> 23 38 24 39 <?php if ( is_user_logged_in() ) : ?> … … 27 42 28 43 <?php if ( bp_is_active( 'friends' ) ) : ?> 44 29 45 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 30 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_FRIENDS_SLUG . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 46 47 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_group_slug() . '/' . BP_FRIENDS_SLUG . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 48 31 49 <?php endif; ?> 50 32 51 <?php endif; ?> 33 52 … … 35 54 36 55 <?php if ( bp_is_active( 'groups' ) ) : ?> 56 37 57 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 38 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_GROUPS_SLUG . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 58 59 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_group_slug() . '/' . BP_GROUPS_SLUG . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 60 39 61 <?php endif; ?> 62 40 63 <?php endif; ?> 41 64 … … 43 66 44 67 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 45 <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> 68 69 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_group_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> 70 46 71 <?php endif; ?> 47 72 48 73 <?php do_action( 'bp_before_activity_type_tab_mentions' ) ?> 49 74 50 <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>75 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_group_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> 51 76 52 77 <?php endif; ?> … … 68 93 69 94 <?php if ( bp_is_active( 'blogs' ) ) : ?> 95 70 96 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 71 97 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 98 72 99 <?php endif; ?> 73 100 74 101 <?php if ( bp_is_active( 'forums' ) ) : ?> 75 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 76 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 102 103 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ); ?></option> 104 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ); ?></option> 105 77 106 <?php endif; ?> 78 107 79 108 <?php if ( bp_is_active( 'groups' ) ) : ?> 80 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 81 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 109 110 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ); ?></option> 111 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ); ?></option> 112 82 113 <?php endif; ?> 83 114 84 115 <?php if ( bp_is_active( 'friends' ) ) : ?> 85 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 116 117 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ); ?></option> 118 86 119 <?php endif; ?> 87 120 88 <option value="new_member"><?php _e( 'Show New Members', 'buddypress' ) ?></option>121 <option value="new_member"><?php _e( 'Show New Members', 'buddypress' ); ?></option> 89 122 90 <?php do_action( 'bp_activity_filter_options' ) ?> 123 <?php do_action( 'bp_activity_filter_options' ); ?> 124 91 125 </select> 92 126 </li> … … 97 131 98 132 <div class="activity" role="main"> 133 99 134 <?php locate_template( array( 'activity/activity-loop.php' ), true ) ?> 135 100 136 </div><!-- .activity --> 101 137 … … 107 143 </div><!-- #content --> 108 144 109 145 <?php get_sidebar() ?> 110 146 111 147 <?php get_footer() ?>
Note: See TracChangeset
for help on using the changeset viewer.