Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2021 11:51:00 PM (5 years ago)
Author:
dcavins
Message:

Member Invites: Add Nouveau template pack.

Add templates and logic for outputting the
member invitations screens.

Super props imath.

See #8139.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php

    r12908 r12921  
    44 *
    55 * @since 3.0.0
    6  * @version 6.0.0
     6 * @version 8.0.0
    77 */
    88
     
    661661        } elseif ( bp_is_user_notifications() ) {
    662662            $template = 'notifications';
     663        } elseif ( bp_is_user_members_invitations() ) {
     664            $template = 'invitations';
    663665        } elseif ( bp_is_user_settings() ) {
    664666            $template = 'settings';
     
    10381040        return $field->data;
    10391041    }
     1042
     1043/**
     1044 * Outputs the Invitations bulk actions dropdown list.
     1045 *
     1046 * @since 8.0.0
     1047 */
     1048function bp_nouveau_invitations_bulk_management_dropdown() {
     1049    ?>
     1050    <div class="select-wrap">
     1051
     1052        <label class="bp-screen-reader-text" for="invitation-select">
     1053            <?php
     1054            esc_html_e( 'Select Bulk Action', 'buddypress' );
     1055            ?>
     1056        </label>
     1057
     1058        <select name="invitation_bulk_action" id="invitation-select">
     1059            <option value="" selected="selected"><?php esc_html_e( 'Bulk Actions', 'buddypress' ); ?></option>
     1060            <option value="resend"><?php echo esc_html_x( 'Resend', 'button', 'buddypress' ); ?></option>
     1061            <option value="cancel"><?php echo esc_html_x( 'Cancel', 'button', 'buddypress' ); ?></option>
     1062        </select>
     1063
     1064        <span class="select-arrow"></span>
     1065
     1066    </div><!-- // .select-wrap -->
     1067
     1068    <input type="submit" id="invitation-bulk-manage" class="button action" value="<?php echo esc_attr_x( 'Apply', 'button', 'buddypress' ); ?>">
     1069    <?php
     1070}
Note: See TracChangeset for help on using the changeset viewer.