[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/activity/ -> activity-loop.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Activity Loop
   4   *
   5   * @version 3.1.0
   6   */
   7  
   8  bp_nouveau_before_loop(); ?>
   9  
  10  <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
  11  
  12      <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
  13          <ul class="activity-list item-list bp-list">
  14      <?php endif; ?>
  15  
  16      <?php
  17      while ( bp_activities() ) :
  18          bp_the_activity();
  19      ?>
  20  
  21          <?php bp_get_template_part( 'activity/entry' ); ?>
  22  
  23      <?php endwhile; ?>
  24  
  25      <?php if ( bp_activity_has_more_items() ) : ?>
  26  
  27          <li class="load-more">
  28              <a href="<?php bp_activity_load_more_link(); ?>"><?php echo esc_html_x( 'Load More', 'button', 'buddypress' ); ?></a>
  29          </li>
  30  
  31      <?php endif; ?>
  32  
  33      <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
  34          </ul>
  35      <?php endif; ?>
  36  
  37  <?php else : ?>
  38  
  39          <?php bp_nouveau_user_feedback( 'activity-loop-none' ); ?>
  40  
  41  <?php endif; ?>
  42  
  43  <?php bp_nouveau_after_loop(); ?>


Generated: Fri Jul 19 01:01:43 2019 Cross-referenced by PHPXref 0.7.1