[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Loop
   4   *
   5   * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
   6   *
   7   * @package BuddyPress
   8   * @subpackage bp-legacy
   9   * @version 3.0.0
  10   */
  11  
  12  /**
  13   * Fires before the display of the members loop.
  14   *
  15   * @since 1.2.0
  16   */
  17  do_action( 'bp_before_members_loop' ); ?>
  18  
  19  <?php if ( bp_get_current_member_type() ) : ?>
  20      <p class="current-member-type"><?php bp_current_member_type_message() ?></p>
  21  <?php endif; ?>
  22  
  23  <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
  24  
  25      <div id="pag-top" class="pagination">
  26  
  27          <div class="pag-count" id="member-dir-count-top">
  28  
  29              <?php bp_members_pagination_count(); ?>
  30  
  31          </div>
  32  
  33          <div class="pagination-links" id="member-dir-pag-top">
  34  
  35              <?php bp_members_pagination_links(); ?>
  36  
  37          </div>
  38  
  39      </div>
  40  
  41      <?php
  42  
  43      /**
  44       * Fires before the display of the members list.
  45       *
  46       * @since 1.1.0
  47       */
  48      do_action( 'bp_before_directory_members_list' ); ?>
  49  
  50      <ul id="members-list" class="item-list" aria-live="assertive" aria-relevant="all">
  51  
  52      <?php while ( bp_members() ) : bp_the_member(); ?>
  53  
  54          <li <?php bp_member_class(); ?>>
  55              <div class="item-avatar">
  56                  <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
  57              </div>
  58  
  59              <div class="item">
  60                  <div class="item-title">
  61                      <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
  62  
  63                      <?php if ( bp_get_member_latest_update() ) : ?>
  64  
  65                          <span class="update"> <?php bp_member_latest_update(); ?></span>
  66  
  67                      <?php endif; ?>
  68  
  69                  </div>
  70  
  71                  <div class="item-meta"><span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_member_last_active( array( 'relative' => false ) ) ); ?>"><?php bp_member_last_active(); ?></span></div>
  72  
  73                  <?php
  74  
  75                  /**
  76                   * Fires inside the display of a directory member item.
  77                   *
  78                   * @since 1.1.0
  79                   */
  80                  do_action( 'bp_directory_members_item' ); ?>
  81  
  82                  <?php
  83                   /***
  84                    * If you want to show specific profile fields here you can,
  85                    * but it'll add an extra query for each member in the loop
  86                    * (only one regardless of the number of fields you show):
  87                    *
  88                    * bp_member_profile_data( 'field=the field name' );
  89                    */
  90                  ?>
  91              </div>
  92  
  93              <div class="action">
  94  
  95                  <?php
  96  
  97                  /**
  98                   * Fires inside the members action HTML markup to display actions.
  99                   *
 100                   * @since 1.1.0
 101                   */
 102                  do_action( 'bp_directory_members_actions' ); ?>
 103  
 104              </div>
 105  
 106              <div class="clear"></div>
 107          </li>
 108  
 109      <?php endwhile; ?>
 110  
 111      </ul>
 112  
 113      <?php
 114  
 115      /**
 116       * Fires after the display of the members list.
 117       *
 118       * @since 1.1.0
 119       */
 120      do_action( 'bp_after_directory_members_list' ); ?>
 121  
 122      <?php bp_member_hidden_fields(); ?>
 123  
 124      <div id="pag-bottom" class="pagination">
 125  
 126          <div class="pag-count" id="member-dir-count-bottom">
 127  
 128              <?php bp_members_pagination_count(); ?>
 129  
 130          </div>
 131  
 132          <div class="pagination-links" id="member-dir-pag-bottom">
 133  
 134              <?php bp_members_pagination_links(); ?>
 135  
 136          </div>
 137  
 138      </div>
 139  
 140  <?php else: ?>
 141  
 142      <div id="message" class="info">
 143          <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
 144      </div>
 145  
 146  <?php endif; ?>
 147  
 148  <?php
 149  
 150  /**
 151   * Fires after the display of the members loop.
 152   *
 153   * @since 1.2.0
 154   */
 155  do_action( 'bp_after_members_loop' );


Generated: Sat Sep 21 01:01:46 2019 Cross-referenced by PHPXref 0.7.1