Skip to:
Content

BuddyPress.org

Ticket #7625: 7625.patch

File 7625.patch, 2.8 KB (added by hnla, 7 years ago)

New create steps invite screen approach

  • src/bp-templates/bp-nouveau/buddypress/groups/_create-invites-step.php

     
     1<?php
     2/**
     3* Group create step invite friends
     4*
     5* This template include provides the standard BP invites step screen content
     6*
     7* @since 1.0.0
     8*/
     9?>
     10
     11<?php bp_nouveau_user_feedback( 'create-invite-friends' ); ?>
     12
     13<?php bp_new_group_invite_friend_list(); ?>
  • src/bp-templates/bp-nouveau/includes/functions.php

     
    519519                        'message_type' => 'warning',
    520520                        'message'      => 'The \'bp_directory_groups_actions\' action will soon be deprecated in the BP Nouveau template pack, we recommend you now use the \'bp_nouveau_get_groups_buttons\' filter instead',
    521521                ),
     522                'create-invite-friends' => array(
     523                        'type'    => 'info',
     524                        'message' => __( 'You can send invites to any of your friends listed here, or skip this step & send later from the group. Invites sent from this screen will appear in the groups \'Pending Invites\' tab of the \'Send Invites\' menu.', 'buddypress' ),
     525                ),
    522526                'bp_group_invites_item_action' => array(
    523527                        'hook_type'    => 'action',
    524528                        'message_type' => 'warning',
  • src/bp-templates/bp-nouveau/includes/groups/functions.php

     
    10321032                'group-settings'    => array( 'hook' => 'group_settings_creation_step',    'nonce' => 'groups_create_save_group-settings',                                                     ),
    10331033                'group-avatar'      => array( 'hook' => 'group_avatar_creation_step',      'nonce' => 'groups_create_save_group-avatar',                                                       ),
    10341034                'group-cover-image' => array( 'hook' => 'group_cover_image_creation_step', 'nonce' => 'groups_create_save_group-cover-image',                                                  ),
    1035                 'group-invites'     => array( 'hook' => 'group_invites_creation_step',     'nonce' => 'groups_create_save_group-invites',     'template' => 'common/js-templates/invites/index'       ),
     1035                'group-invites'     => array( 'hook' => 'group_invites_creation_step',     'nonce' => 'groups_create_save_group-invites',     'template' => 'groups/_create-invites-step'      ),
    10361036        );
    10371037
    10381038        if ( isset( $screens[ $id ] ) ) {