[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Activity Loop
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires before the start of the activity loop.
  12   *
  13   * @since 1.2.0
  14   */
  15  do_action( 'bp_before_activity_loop' ); ?>
  16  
  17  <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
  18  
  19      <?php if ( empty( $_POST['page'] ) ) : ?>
  20  
  21          <ul id="activity-stream" class="activity-list item-list">
  22  
  23      <?php endif; ?>
  24  
  25      <?php while ( bp_activities() ) : bp_the_activity(); ?>
  26  
  27          <?php bp_get_template_part( 'activity/entry' ); ?>
  28  
  29      <?php endwhile; ?>
  30  
  31      <?php if ( bp_activity_has_more_items() ) : ?>
  32  
  33          <li class="load-more">
  34              <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>
  35          </li>
  36  
  37      <?php endif; ?>
  38  
  39      <?php if ( empty( $_POST['page'] ) ) : ?>
  40  
  41          </ul>
  42  
  43      <?php endif; ?>
  44  
  45  <?php else : ?>
  46  
  47      <div id="message" class="info">
  48          <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
  49      </div>
  50  
  51  <?php endif; ?>
  52  
  53  <?php
  54  
  55  /**
  56   * Fires after the finish of the activity loop.
  57   *
  58   * @since 1.2.0
  59   */
  60  do_action( 'bp_after_activity_loop' ); ?>
  61  
  62  <?php if ( empty( $_POST['page'] ) ) : ?>
  63  
  64      <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
  65  
  66          <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
  67  
  68      </form>
  69  
  70  <?php endif;


Generated: Mon Sep 16 01:01:39 2019 Cross-referenced by PHPXref 0.7.1