Changeset 5872 for trunk/bp-themes/bp-default/groups/create.php
- Timestamp:
- 03/03/2012 09:42:15 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/groups/create.php
r5737 r5872 57 57 58 58 <?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 />79 59 80 60 <h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4> … … 109 89 </div> 110 90 111 <hr />112 113 91 <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4> 114 92 … … 132 110 </div> 133 111 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; ?> 135 123 136 124 <?php do_action( 'bp_after_group_settings_creation_step' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.