Changeset 4222 for trunk/bbp-theme-compat/bbpress/form-user-edit.php
- Timestamp:
- 09/17/2012 12:03:03 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bbp-theme-compat/bbpress/form-user-edit.php
r4196 r4222 125 125 <div id="password"> 126 126 <label for="pass1"><?php _e( 'New Password', 'bbpress' ); ?></label> 127 <fieldset class="bbp-form ">127 <fieldset class="bbp-form password"> 128 128 <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>" /> 129 129 <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span> … … 143 143 <?php if ( current_user_can( 'edit_users' ) && ! bbp_is_user_home_edit() ) : ?> 144 144 145 <h2 class="entry-title"><?php _e( ' Capabilities', 'bbpress' ) ?></h2>145 <h2 class="entry-title"><?php _e( 'User Role', 'bbpress' ) ?></h2> 146 146 147 147 <fieldset class="bbp-form"> 148 <legend><?php _e( 'Forum Capabilities', 'bbpress' ); ?></legend> 149 150 <div> 151 <label for="role"><?php _e( 'Role', 'bbpress' ) ?></label> 152 153 <?php bbp_edit_user_role(); ?> 154 155 </div> 148 <legend><?php _e( 'User Role', 'bbpress' ); ?></legend> 156 149 157 150 <?php if ( is_multisite() && is_super_admin() && current_user_can( 'manage_network_options' ) ) : ?> … … 168 161 169 162 <div> 170 171 <?php foreach ( bbp_get_capability_groups() as $group ) : ?> 172 173 <dl class="bbp-user-capabilities"> 174 <dt><?php bbp_capability_group_title( $group ); ?></dt> 175 176 <?php foreach ( bbp_get_capabilities_for_group( $group ) as $capability ) : ?> 177 178 <dd> 179 <label for="_bbp_<?php echo $capability; ?>"> 180 <input class="checkbox" type="checkbox" id="_bbp_<?php echo $capability; ?>" name="_bbp_<?php echo $capability; ?>" value="1" <?php checked( user_can( bbp_get_displayed_user_id(), $capability ) ); ?> tabindex="<?php bbp_tab_index(); ?>" /> 181 <?php bbp_capability_title( $capability ); ?> 182 </label> 183 </dd> 184 185 <?php endforeach; ?> 186 187 </dl> 188 189 <?php endforeach; ?> 190 163 <label for="role"><?php _e( 'Role', 'bbpress' ) ?></label> 164 165 <?php bbp_edit_user_role(); ?> 166 167 </div> 168 169 <div> 170 <label for=""><?php _e( 'Forum Capabilities', 'bbpress' ); ?></label> 171 172 <fieldset class="bbp-form capabilities"> 173 <legend><?php _e( 'Forum Capabilities', 'bbpress' ); ?></legend> 174 175 <?php foreach ( bbp_get_capability_groups() as $group ) : ?> 176 177 <dl class="bbp-user-capabilities"> 178 <dt><?php bbp_capability_group_title( $group ); ?></dt> 179 180 <?php foreach ( bbp_get_capabilities_for_group( $group ) as $capability ) : ?> 181 182 <dd> 183 <label for="_bbp_<?php echo $capability; ?>"> 184 <input class="checkbox" type="checkbox" id="_bbp_<?php echo $capability; ?>" name="_bbp_<?php echo $capability; ?>" value="1" <?php checked( user_can( bbp_get_displayed_user_id(), $capability ) ); ?> tabindex="<?php bbp_tab_index(); ?>" /> 185 <?php bbp_capability_title( $capability ); ?> 186 </label> 187 </dd> 188 189 <?php endforeach; ?> 190 191 </dl> 192 193 <?php endforeach; ?> 194 </fieldset> 195 </div> 196 197 <div> 198 <label for="bbp-default-caps"><?php _e( 'Reset', 'bbpress' ); ?></label> 199 <label> 200 <input class="checkbox" type="checkbox" id="bbp-default-caps" name="bbp-default-caps" tabindex="<?php bbp_tab_index(); ?>" /> 201 <?php _e( 'Reset forum capabilities to match the user role.', 'bbpress' ); ?> 202 </label> 191 203 </div> 192 204
Note: See TracChangeset
for help on using the changeset viewer.