[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Users Groups
   4   *
   5   * @since 3.0.0
   6   * @version 3.0.0
   7   */
   8  ?>
   9  
  10  <nav class="<?php bp_nouveau_single_item_subnav_classes(); ?>" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Groups menu', 'buddypress' ); ?>">
  11      <ul class="subnav">
  12  
  13          <?php if ( bp_is_my_profile() ) : ?>
  14  
  15              <?php bp_get_template_part( 'members/single/parts/item-subnav' ); ?>
  16  
  17          <?php endif; ?>
  18  
  19      </ul>
  20  </nav><!-- .bp-navs -->
  21  
  22  <?php if ( ! bp_is_current_action( 'invites' ) ) : ?>
  23  
  24  
  25      <?php bp_get_template_part( 'common/search-and-filters-bar' ); ?>
  26  
  27  <?php endif; ?>
  28  
  29  <?php
  30  
  31  switch ( bp_current_action() ) :
  32  
  33      // Home/My Groups
  34      case 'my-groups':
  35          bp_nouveau_member_hook( 'before', 'groups_content' );
  36          ?>
  37  
  38          <div class="groups mygroups" data-bp-list="groups">
  39  
  40              <div id="bp-ajax-loader"><?php bp_nouveau_user_feedback( 'member-groups-loading' ); ?></div>
  41  
  42          </div>
  43  
  44          <?php
  45          bp_nouveau_member_hook( 'after', 'groups_content' );
  46          break;
  47  
  48      // Group Invitations
  49      case 'invites':
  50          bp_get_template_part( 'members/single/groups/invites' );
  51          break;
  52  
  53      // Any other
  54      default:
  55          bp_get_template_part( 'members/single/plugins' );
  56          break;
  57  endswitch;


Generated: Wed Dec 11 01:01:37 2019 Cross-referenced by PHPXref 0.7.1