[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Single Group Invites
   4   *
   5   * @since 3.0.0
   6   * @version 3.1.0
   7   */
   8  ?>
   9  
  10  <h2 class="screen-heading group-invites-screen"><?php esc_html_e( 'Group Invites', 'buddypress' ); ?></h2>
  11  
  12  <?php bp_nouveau_group_hook( 'before', 'invites_content' ); ?>
  13  
  14  <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
  15  
  16      <ul id="group-list" class="invites item-list bp-list" data-bp-list="groups_invites">
  17  
  18          <?php
  19          while ( bp_groups() ) :
  20              bp_the_group();
  21          ?>
  22  
  23              <li class="item-entry invites-list" data-bp-item-id="<?php bp_group_id(); ?>" data-bp-item-component="groups">
  24  
  25                  <div class="wrap">
  26  
  27                  <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
  28                      <div class="item-avatar">
  29                          <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar(); ?></a>
  30                      </div>
  31                  <?php endif; ?>
  32  
  33                      <div class="item">
  34                          <h2 class="list-title groups-title"><?php bp_group_link(); ?></h2>
  35                          <p class="meta group-details">
  36                              <span class="small">
  37                              <?php
  38                              printf(
  39                                  /* translators: %s = number of members */
  40                                  _n(
  41                                      '%s member',
  42                                      '%s members',
  43                                      bp_get_group_total_members( false ),
  44                                      'buddypress'
  45                                  ),
  46                                  number_format_i18n( bp_get_group_total_members( false ) )
  47                              );
  48                              ?>
  49                              </span>
  50                          </p>
  51  
  52                          <p class="desc">
  53                              <?php bp_group_description_excerpt(); ?>
  54                          </p>
  55  
  56                          <?php bp_nouveau_group_hook( '', 'invites_item' ); ?>
  57  
  58                          <?php
  59                          bp_nouveau_groups_invite_buttons(
  60                              array(
  61                                  'container'      => 'ul',
  62                                  'button_element' => 'button',
  63                              )
  64                          );
  65                          ?>
  66                      </div>
  67  
  68                  </div>
  69              </li>
  70  
  71          <?php endwhile; ?>
  72      </ul>
  73  
  74  <?php else : ?>
  75  
  76      <?php bp_nouveau_user_feedback( 'member-invites-none' ); ?>
  77  
  78  <?php endif; ?>
  79  
  80  <?php
  81  bp_nouveau_group_hook( 'after', 'invites_content' );


Generated: Sat Jul 20 01:01:39 2019 Cross-referenced by PHPXref 0.7.1