/bp-themes/bp-default/members/single/activity.php

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress - Users Activity 
  5. * 
  6. * @package BuddyPress 
  7. * @subpackage bp-default 
  8. */ 
  9.  
  10. ?> 
  11.  
  12. <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 
  13. <ul> 
  14.  
  15. <?php bp_get_options_nav(); ?> 
  16.  
  17. <li id="activity-filter-select" class="last"> 
  18. <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label> 
  19. <select id="activity-filter-by"> 
  20. <option value="-1"><?php _e( '— Everything —', 'buddypress' ); ?></option> 
  21. <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option> 
  22.  
  23. <?php 
  24. if ( !bp_is_current_action( 'groups' ) ) : 
  25. if ( bp_is_active( 'blogs' ) ) : ?> 
  26.  
  27. <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option> 
  28. <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option> 
  29.  
  30. <?php 
  31. endif; 
  32.  
  33. if ( bp_is_active( 'friends' ) ) : ?> 
  34.  
  35. <option value="friendship_accepted, friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option> 
  36.  
  37. <?php endif; 
  38.  
  39. endif; 
  40.  
  41. if ( bp_is_active( 'forums' ) ) : ?> 
  42.  
  43. <option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option> 
  44. <option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option> 
  45.  
  46. <?php endif; 
  47.  
  48. if ( bp_is_active( 'groups' ) ) : ?> 
  49.  
  50. <option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option> 
  51. <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option> 
  52.  
  53. <?php endif; 
  54.  
  55. do_action( 'bp_member_activity_filter_options' ); ?> 
  56.  
  57. </select> 
  58. </li> 
  59. </ul> 
  60. </div><!-- .item-list-tabs --> 
  61.  
  62. <?php do_action( 'bp_before_member_activity_post_form' ); ?> 
  63.  
  64. <?php 
  65. if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( 'just-me' ) ) ) 
  66. locate_template( array( 'activity/post-form.php'), true ); 
  67.  
  68. do_action( 'bp_after_member_activity_post_form' ); 
  69. do_action( 'bp_before_member_activity_content' ); ?> 
  70.  
  71. <div class="activity" role="main"> 
  72.  
  73. <?php locate_template( array( 'activity/activity-loop.php' ), true ); ?> 
  74.  
  75. </div><!-- .activity --> 
  76.  
  77. <?php do_action( 'bp_after_member_activity_content' ); ?> 
.