[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Single Group Invites
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires before the display of member group invites content.
  12   *
  13   * @since 1.1.0
  14   */
  15  do_action( 'bp_before_group_invites_content' ); ?>
  16  
  17  <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
  18  
  19      <h2 class="bp-screen-reader-text"><?php
  20          /* translators: accessibility text */
  21          _e( 'Group invitations', 'buddypress' );
  22      ?></h2>
  23  
  24      <ul id="group-list" class="invites item-list">
  25  
  26          <?php while ( bp_groups() ) : bp_the_group(); ?>
  27  
  28              <li>
  29                  <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
  30                      <div class="item-avatar">
  31                          <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
  32                      </div>
  33                  <?php endif; ?>
  34  
  35                  <h4><?php bp_group_link(); ?><span class="small"> - <?php printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false )  ); ?></span></h4>
  36  
  37                  <p class="desc">
  38                      <?php bp_group_description_excerpt(); ?>
  39                  </p>
  40  
  41                  <?php
  42  
  43                  /**
  44                   * Fires inside the display of a member group invite item.
  45                   *
  46                   * @since 1.1.0
  47                   */
  48                  do_action( 'bp_group_invites_item' ); ?>
  49  
  50                  <div class="action">
  51                      <a class="button accept" href="<?php bp_group_accept_invite_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> &nbsp;
  52                      <a class="button reject confirm" href="<?php bp_group_reject_invite_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
  53  
  54                      <?php
  55  
  56                      /**
  57                       * Fires inside the member group item action markup.
  58                       *
  59                       * @since 1.1.0
  60                       */
  61                      do_action( 'bp_group_invites_item_action' ); ?>
  62  
  63                  </div>
  64              </li>
  65  
  66          <?php endwhile; ?>
  67      </ul>
  68  
  69  <?php else: ?>
  70  
  71      <div id="message" class="info">
  72          <p><?php _e( 'You have no outstanding group invites.', 'buddypress' ); ?></p>
  73      </div>
  74  
  75  <?php endif;?>
  76  
  77  <?php
  78  
  79  /**
  80   * Fires after the display of member group invites content.
  81   *
  82   * @since 1.1.0
  83   */
  84  do_action( 'bp_after_group_invites_content' );


Generated: Tue Nov 12 01:01:38 2019 Cross-referenced by PHPXref 0.7.1