Advertisement
Guest User

activity loop.php

a guest
Dec 21st, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * BuddyPress - Activity Loop
  5. *
  6. * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
  7. *
  8. * @package BuddyPress
  9. * @subpackage bp-default
  10. */
  11.  
  12. ?>
  13.  
  14. <?php do_action( 'bp_before_activity_loop' ); ?>
  15.  
  16. <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
  17.  
  18. <?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
  19. <noscript>
  20. <div class="pagination">
  21. <div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
  22. <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
  23. </div>
  24. </noscript>
  25.  
  26. <?php if ( empty( $_POST['page'] ) ) : ?>
  27.  
  28. <ul id="activity-stream" class="activity-list item-list">
  29.  
  30. <?php endif; ?>
  31.  
  32. <?php while ( bp_activities() ) : bp_the_activity(); ?>
  33.  
  34. <?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
  35.  
  36. <?php endwhile; ?>
  37.  
  38. <?php if ( bp_activity_has_more_items() ) : ?>
  39.  
  40. <li class="load-more">
  41. <a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a>
  42. </li>
  43.  
  44. <?php endif; ?>
  45.  
  46. <?php if ( empty( $_POST['page'] ) ) : ?>
  47.  
  48. </ul>
  49.  
  50. <?php endif; ?>
  51.  
  52. <?php else : ?>
  53.  
  54. <div id="message" class="info">
  55. <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
  56. </div>
  57.  
  58. <?php endif; ?>
  59.  
  60. <?php do_action( 'bp_after_activity_loop' ); ?>
  61.  
  62. <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
  63.  
  64. <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
  65.  
  66. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement