[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires at the top of the members directory template file.
  12   *
  13   * @since 1.5.0
  14   */
  15  do_action( 'bp_before_directory_members_page' ); ?>
  16  
  17  <div id="buddypress">
  18  
  19      <?php
  20  
  21      /**
  22       * Fires before the display of the members.
  23       *
  24       * @since 1.1.0
  25       */
  26      do_action( 'bp_before_directory_members' ); ?>
  27  
  28      <?php
  29  
  30      /**
  31       * Fires before the display of the members content.
  32       *
  33       * @since 1.1.0
  34       */
  35      do_action( 'bp_before_directory_members_content' ); ?>
  36  
  37      <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
  38      <?php if ( has_filter( 'bp_directory_members_search_form' ) ) : ?>
  39  
  40          <div id="members-dir-search" class="dir-search" role="search">
  41              <?php bp_directory_members_search_form(); ?>
  42          </div><!-- #members-dir-search -->
  43  
  44      <?php else: ?>
  45  
  46          <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
  47  
  48      <?php endif; ?>
  49  
  50      <?php
  51      /**
  52       * Fires before the display of the members list tabs.
  53       *
  54       * @since 1.8.0
  55       */
  56      do_action( 'bp_before_directory_members_tabs' ); ?>
  57  
  58      <form action="" method="post" id="members-directory-form" class="dir-form">
  59  
  60          <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Members directory main navigation', 'buddypress' ); ?>" role="navigation">
  61              <ul>
  62                  <li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li>
  63  
  64                  <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
  65                      <li id="members-personal"><a href="<?php echo esc_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ); ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
  66                  <?php endif; ?>
  67  
  68                  <?php
  69  
  70                  /**
  71                   * Fires inside the members directory member types.
  72                   *
  73                   * @since 1.2.0
  74                   */
  75                  do_action( 'bp_members_directory_member_types' ); ?>
  76  
  77              </ul>
  78          </div><!-- .item-list-tabs -->
  79  
  80          <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Members directory secondary navigation', 'buddypress' ); ?>" role="navigation">
  81              <ul>
  82                  <?php
  83  
  84                  /**
  85                   * Fires inside the members directory member sub-types.
  86                   *
  87                   * @since 1.5.0
  88                   */
  89                  do_action( 'bp_members_directory_member_sub_types' ); ?>
  90  
  91                  <li id="members-order-select" class="last filter">
  92                      <label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
  93                      <select id="members-order-by">
  94                          <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
  95                          <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
  96  
  97                          <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  98                              <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
  99                          <?php endif; ?>
 100  
 101                          <?php
 102  
 103                          /**
 104                           * Fires inside the members directory member order options.
 105                           *
 106                           * @since 1.2.0
 107                           */
 108                          do_action( 'bp_members_directory_order_options' ); ?>
 109                      </select>
 110                  </li>
 111              </ul>
 112          </div>
 113  
 114          <h2 class="bp-screen-reader-text"><?php
 115              /* translators: accessibility text */
 116              _e( 'Members directory', 'buddypress' );
 117          ?></h2>
 118  
 119          <div id="members-dir-list" class="members dir-list">
 120              <?php bp_get_template_part( 'members/members-loop' ); ?>
 121          </div><!-- #members-dir-list -->
 122  
 123          <?php
 124  
 125          /**
 126           * Fires and displays the members content.
 127           *
 128           * @since 1.1.0
 129           */
 130          do_action( 'bp_directory_members_content' ); ?>
 131  
 132          <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>
 133  
 134          <?php
 135  
 136          /**
 137           * Fires after the display of the members content.
 138           *
 139           * @since 1.1.0
 140           */
 141          do_action( 'bp_after_directory_members_content' ); ?>
 142  
 143      </form><!-- #members-directory-form -->
 144  
 145      <?php
 146  
 147      /**
 148       * Fires after the display of the members.
 149       *
 150       * @since 1.1.0
 151       */
 152      do_action( 'bp_after_directory_members' ); ?>
 153  
 154  </div><!-- #buddypress -->
 155  
 156  <?php
 157  
 158  /**
 159   * Fires at the bottom of the members directory template file.
 160   *
 161   * @since 1.5.0
 162   */
 163  do_action( 'bp_after_directory_members_page' );


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1