[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Users Groups
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 11.0.0
   8   */
   9  ?>
  10  
  11  <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
  12      <ul>
  13          <?php bp_get_options_nav(); ?>
  14  
  15          <?php if ( ! bp_is_current_action( 'invites' ) ) : ?>
  16  
  17              <li id="groups-order-select" class="last filter">
  18  
  19                  <label for="groups-order-by"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label>
  20                  <select id="groups-order-by">
  21                      <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option>
  22                      <option value="popular"><?php esc_html_e( 'Most Members', 'buddypress' ); ?></option>
  23                      <option value="newest"><?php esc_html_e( 'Newly Created', 'buddypress' ); ?></option>
  24                      <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option>
  25  
  26                      <?php
  27  
  28                      /**
  29                       * Fires inside the members group order options select input.
  30                       *
  31                       * @since 1.2.0
  32                       */
  33                      do_action( 'bp_member_group_order_options' ); ?>
  34  
  35                  </select>
  36              </li>
  37  
  38          <?php endif; ?>
  39  
  40      </ul>
  41  </div><!-- .item-list-tabs -->
  42  
  43  <?php
  44  
  45  switch ( bp_current_action() ) :
  46  
  47      // Home/My Groups
  48      case 'my-groups' :
  49  
  50          /**
  51           * Fires before the display of member groups content.
  52           *
  53           * @since 1.2.0
  54           */
  55          do_action( 'bp_before_member_groups_content' ); ?>
  56  
  57          <?php if ( is_user_logged_in() ) : ?>
  58              <h2 class="bp-screen-reader-text"><?php
  59                  /* translators: accessibility text */
  60                  esc_html_e( 'My groups', 'buddypress' );
  61              ?></h2>
  62          <?php else : ?>
  63              <h2 class="bp-screen-reader-text"><?php
  64                  /* translators: accessibility text */
  65                  esc_html_e( 'Member\'s groups', 'buddypress' );
  66              ?></h2>
  67          <?php endif; ?>
  68  
  69          <div class="groups mygroups">
  70  
  71              <?php bp_get_template_part( 'groups/groups-loop' ); ?>
  72  
  73          </div>
  74  
  75          <?php
  76  
  77          /**
  78           * Fires after the display of member groups content.
  79           *
  80           * @since 1.2.0
  81           */
  82          do_action( 'bp_after_member_groups_content' );
  83          break;
  84  
  85      // Group Invitations
  86      case 'invites' :
  87          bp_get_template_part( 'members/single/groups/invites' );
  88          break;
  89  
  90      // Any other
  91      default :
  92          bp_get_template_part( 'members/single/plugins' );
  93          break;
  94  endswitch;


Generated: Sun Apr 28 01:01:05 2024 Cross-referenced by PHPXref 0.7.1