[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/groups/single/parts/ -> header-item-actions.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Groups Header item-actions.
   4   *
   5   * @since 3.0.0
   6   * @version 3.1.0
   7   */
   8  ?>
   9  <div id="item-actions" class="group-item-actions">
  10  
  11      <?php if ( bp_current_user_can( 'groups_access_group' ) ) : ?>
  12  
  13          <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Group Leadership', 'buddypress' ); ?></h2>
  14  
  15          <dl class="moderators-lists">
  16              <dt class="moderators-title"><?php esc_html_e( 'Group Administrators', 'buddypress' ); ?></dt>
  17              <dd class="user-list admins"><?php bp_group_list_admins(); ?>
  18                  <?php bp_nouveau_group_hook( 'after', 'menu_admins' ); ?>
  19              </dd>
  20          </dl>
  21  
  22          <?php
  23          if ( bp_group_has_moderators() ) :
  24                bp_nouveau_group_hook( 'before', 'menu_mods' );
  25          ?>
  26  
  27              <dl class="moderators-lists">
  28                  <dt class="moderators-title"><?php esc_html_e( 'Group Mods', 'buddypress' ); ?></dt>
  29                  <dd class="user-list moderators">
  30                      <?php
  31                      bp_group_list_mods();
  32                      bp_nouveau_group_hook( 'after', 'menu_mods' );
  33                      ?>
  34                  </dd>
  35              </dl>
  36  
  37          <?php endif; ?>
  38  
  39      <?php endif; ?>
  40  
  41  </div><!-- .item-actions -->


Generated: Tue Jul 5 01:00:53 2022 Cross-referenced by PHPXref 0.7.1