/svntrunk/bp-themes/bp-legacy/buddypress/members/single/activity.php

https://bitbucket.org/simplemediacode/bptrunk · PHP · 77 lines · 44 code · 27 blank · 6 comment · 9 complexity · e02f81ebe146308ffb6fb53cf2ce2ae6 MD5 · raw file

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