Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2018 04:46:28 PM (8 years ago)
Author:
imath
Message:

BP Nouveau: always include an invite screen to the Group create steps

As the Group Invites UI allows to invite friends or regular members, the Group create steps will include an invites screen even if the Friends component is not active.

Props hnla

Fixes #7781

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/create.php

    r11974 r12039  
    1010        <?php bp_nouveau_groups_create_hook( 'before', 'content_template' ); ?>
    1111
    12         <form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
     12        <?php if ( 'group-invites' !== bp_get_groups_current_create_step() ) : ?>
     13                <form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
     14        <?php else : ?>
     15                <div id="create-group-form" class="standard-form">
     16        <?php endif; ?>
    1317
    1418                <?php bp_nouveau_groups_create_hook( 'before' ); ?>
     
    3236                <?php bp_nouveau_groups_create_hook( 'after' ); ?>
    3337
    34         </form>
     38        <?php if ( 'group-invites' !== bp_get_groups_current_create_step() ) : ?>
     39                </form><!-- #create-group-form -->
     40        <?php else : ?>
     41                </div><!-- #create-group-form -->
     42        <?php endif; ?>
    3543
    3644        <?php bp_nouveau_groups_create_hook( 'after', 'content_template' ); ?>
Note: See TracChangeset for help on using the changeset viewer.