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


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