Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/03/2012 09:42:15 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Rearrange group create template to move old forum creation to bottom, and simplify logic and output. See #3598.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/create.php

    r5737 r5872  
    5757
    5858                    <?php do_action( 'bp_before_group_settings_creation_step' ); ?>
    59 
    60                     <?php if ( bp_is_active( 'forums' ) ) : ?>
    61                         <?php if ( bp_forums_is_installed_correctly() ) : ?>
    62 
    63                             <div class="checkbox">
    64                                 <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    65                             </div>
    66 
    67                         <?php else : ?>
    68                             <?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
    69 
    70                                 <div class="checkbox">
    71                                     <label><input type="checkbox" disabled="disabled" name="disabled" id="disabled" value="0" /> <?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_get_root_domain() . '/wp-admin/admin.php?page=bb-forums-setup' ); ?></label>
    72                                 </div>
    73 
    74                             <?php endif; ?>
    75                         <?php endif; ?>
    76                     <?php endif; ?>
    77 
    78                     <hr />
    7959
    8060                    <h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4>
     
    10989                    </div>
    11090
    111                     <hr />
    112 
    11391                    <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
    11492
     
    132110                    </div>
    133111
    134                     <hr />
     112                    <?php if ( bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() ) : ?>
     113
     114                        <h4><?php _e( 'Group Forums', 'buddypress' ); ?></h4>
     115
     116                        <p><?php _e( 'Should this group have a forum?', 'buddypress' ); ?></p>
     117
     118                        <div class="checkbox">
     119                            <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
     120                        </div>
     121
     122                    <?php endif; ?>
    135123
    136124                    <?php do_action( 'bp_after_group_settings_creation_step' ); ?>
Note: See TracChangeset for help on using the changeset viewer.