Changeset 4994 for trunk/bp-themes/bp-default/activity/index.php
- Timestamp:
- 08/17/2011 08:34:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/activity/index.php
r4676 r4994 10 10 ?> 11 11 12 <?php get_header( 'buddypress' ) ?> 12 <?php get_header( 'buddypress' ); ?> 13 14 <?php do_action( 'bp_before_directory_activity_page' ); ?> 13 15 14 16 <div id="content"> 15 17 <div class="padder"> 16 18 19 <?php do_action( 'bp_before_directory_activity' ); ?> 20 17 21 <?php if ( !is_user_logged_in() ) : ?> 18 22 19 <h3><?php _e( 'Site Activity', 'buddypress' ) ?></h3>23 <h3><?php _e( 'Site Activity', 'buddypress' ); ?></h3> 20 24 21 25 <?php endif; ?> 22 26 23 <?php do_action( 'bp_before_directory_activity_content' ) ?>27 <?php do_action( 'bp_before_directory_activity_content' ); ?> 24 28 25 29 <?php if ( is_user_logged_in() ) : ?> 26 30 27 <?php locate_template( array( 'activity/post-form.php'), true ) ?>31 <?php locate_template( array( 'activity/post-form.php'), true ); ?> 28 32 29 33 <?php endif; ?> 30 34 31 <?php do_action( 'template_notices' ) ?>35 <?php do_action( 'template_notices' ); ?> 32 36 33 37 <div class="item-list-tabs activity-type-tabs" role="navigation"> 34 38 <ul> 35 <?php do_action( 'bp_before_activity_type_tab_all' ) ?>39 <?php do_action( 'bp_before_activity_type_tab_all' ); ?> 36 40 37 <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ) ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_site_member_count() )?></a></li>41 <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/'; ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_site_member_count() ); ?></a></li> 38 42 39 43 <?php if ( is_user_logged_in() ) : ?> … … 45 49 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 46 50 47 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) )?></a></li>51 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li> 48 52 49 53 <?php endif; ?> … … 57 61 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 58 62 59 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) )?></a></li>63 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 60 64 61 65 <?php endif; ?> … … 63 67 <?php endif; ?> 64 68 65 <?php do_action( 'bp_before_activity_type_tab_favorites' ) ?>69 <?php do_action( 'bp_before_activity_type_tab_favorites' ); ?> 66 70 67 71 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 68 72 69 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_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>73 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_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> 70 74 71 75 <?php endif; ?> 72 76 73 <?php do_action( 'bp_before_activity_type_tab_mentions' ) ?>77 <?php do_action( 'bp_before_activity_type_tab_mentions' ); ?> 74 78 75 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/' ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?>"><?php _e( 'Public Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) )?></strong><?php endif; ?></a></li>79 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Public Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></strong><?php endif; ?></a></li> 76 80 77 81 <?php endif; ?> 78 82 79 <?php do_action( 'bp_activity_type_tabs' ) ?>83 <?php do_action( 'bp_activity_type_tabs' ); ?> 80 84 </ul> 81 85 </div><!-- .item-list-tabs --> … … 83 87 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 84 88 <ul> 85 <li class="feed"><a href="<?php bp_sitewide_activity_feed_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ) ?></a></li>89 <li class="feed"><a href="<?php bp_sitewide_activity_feed_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li> 86 90 87 <?php do_action( 'bp_activity_syndication_options' ) ?>91 <?php do_action( 'bp_activity_syndication_options' ); ?> 88 92 89 93 <li id="activity-filter-select" class="last"> 90 94 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label> 91 95 <select id="activity-filter-by"> 92 <option value="-1"><?php _e( 'Everything', 'buddypress' ) ?></option>93 <option value="activity_update"><?php _e( 'Updates', 'buddypress' ) ?></option>96 <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option> 97 <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option> 94 98 95 99 <?php if ( bp_is_active( 'blogs' ) ) : ?> 96 100 97 <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ) ?></option>98 <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ) ?></option>101 <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option> 102 <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option> 99 103 100 104 <?php endif; ?> … … 129 133 </div><!-- .item-list-tabs --> 130 134 131 <?php do_action( 'bp_before_directory_activity_list' ) ?>135 <?php do_action( 'bp_before_directory_activity_list' ); ?> 132 136 133 137 <div class="activity" role="main"> 134 138 135 <?php locate_template( array( 'activity/activity-loop.php' ), true ) ?>139 <?php locate_template( array( 'activity/activity-loop.php' ), true ); ?> 136 140 137 141 </div><!-- .activity --> 138 142 139 <?php do_action( 'bp_ directory_activity_content' )?>143 <?php do_action( 'bp_after_directory_activity_list' ); ?> 140 144 141 <?php do_action( 'bp_after_directory_activity_content' ) ?> 145 <?php do_action( 'bp_directory_activity_content' ); ?> 146 147 <?php do_action( 'bp_after_directory_activity_content' ); ?> 148 149 <?php do_action( 'bp_after_directory_activity' ); ?> 142 150 143 151 </div><!-- .padder --> 144 152 </div><!-- #content --> 145 153 146 <?php get_sidebar( 'buddypress' )?>154 <?php do_action( 'bp_after_directory_activity_page' ); ?> 147 155 148 <?php get_footer( 'buddypress' ) ?> 156 <?php get_sidebar( 'buddypress' ); ?> 157 <?php get_footer( 'buddypress' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.