Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2021 03:53:20 PM (4 years ago)
Author:
dcavins
Message:

Member Invites: Add BP Legacy bulk management template parts.

Add the template function
bp_members_invitations_bulk_management_dropdown()
and the JavaScript required to check/uncheck all invites.
Also remove an unneeded empty column from the
legacy pending invites view.

See #8139.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r12933 r12935  
    34783478        return apply_filters( 'bp_get_members_invitations_send_invites_permalink', $retval, $user_id );
    34793479    }
     3480
     3481/**
     3482 * Output the dropdown for bulk management of invitations.
     3483 *
     3484 * @since 8.0.0
     3485 */
     3486function bp_members_invitations_bulk_management_dropdown() {
     3487    ?>
     3488    <label class="bp-screen-reader-text" for="invitation-select">
     3489        <?php
     3490        esc_html_e( 'Select Bulk Action', 'buddypress' );
     3491        ?>
     3492    </label>
     3493
     3494    <select name="invitation_bulk_action" id="invitation-select">
     3495        <option value="" selected="selected"><?php esc_html_e( 'Bulk Actions', 'buddypress' ); ?></option>
     3496        <option value="resend"><?php echo esc_html_x( 'Resend', 'button', 'buddypress' ); ?></option>
     3497        <option value="cancel"><?php echo esc_html_x( 'Cancel', 'button', 'buddypress' ); ?></option>
     3498    </select>
     3499
     3500    <input type="submit" id="invitation-bulk-manage" class="button action" value="<?php echo esc_attr_x( 'Apply', 'button', 'buddypress' ); ?>">
     3501    <?php
     3502}
Note: See TracChangeset for help on using the changeset viewer.