Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/22/2022 05:42:45 AM (3 years ago)
Author:
imath
Message:

List the displayed user groups invites in member's front-end screen

As a site admin can view the displayed user groups invites, listed invites have to be the one of this user and not the ones of the site admin.

Adapt the Group Invites feature so that site admins can accept or reject on behalf of the displayed user the listed invites. These two actions made by an admin will generate a specific BP Email informing the user of it.

Props oztaser, dcavins, espellcaste

Closes https://github.com/buddypress/buddypress/pull/15
Fixes #8675

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups.php

    r12082 r13273  
    55 * @package BuddyPress
    66 * @subpackage bp-legacy
    7  * @version 3.0.0
     7 * @version 11.0.0
    88 */
    9 
    109?>
    1110
    1211<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1312    <ul>
    14         <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
     13        <?php bp_get_options_nav(); ?>
    1514
    16         <?php if ( !bp_is_current_action( 'invites' ) ) : ?>
     15        <?php if ( ! bp_is_current_action( 'invites' ) ) : ?>
    1716
    1817            <li id="groups-order-select" class="last filter">
    1918
    20                 <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
     19                <label for="groups-order-by"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label>
    2120                <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>
     21                    <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option>
     22                    <option value="popular"><?php esc_html_e( 'Most Members', 'buddypress' ); ?></option>
     23                    <option value="newest"><?php esc_html_e( 'Newly Created', 'buddypress' ); ?></option>
     24                    <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option>
    2625
    2726                    <?php
     
    5958            <h2 class="bp-screen-reader-text"><?php
    6059                /* translators: accessibility text */
    61                 _e( 'My groups', 'buddypress' );
     60                esc_html_e( 'My groups', 'buddypress' );
    6261            ?></h2>
    6362        <?php else : ?>
    6463            <h2 class="bp-screen-reader-text"><?php
    6564                /* translators: accessibility text */
    66                 _e( 'Member\'s groups', 'buddypress' );
     65                esc_html_e( 'Member\'s groups', 'buddypress' );
    6766            ?></h2>
    6867        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.