Make WordPress Core


Ignore:
Timestamp:
12/17/2010 09:48:30 PM (13 years ago)
Author:
ryan
Message:

Admin bar visibility prefs. Props duck_. see #15829

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r16767 r17032  
    212212<td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php if ( !empty($profileuser->comment_shortcuts) ) checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e('Enable keyboard shortcuts for comment moderation.'); ?></label> <?php _e('<a href="http://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>'); ?></td>
    213213</tr>
    214 <?php
    215 endif;
    216 do_action('personal_options', $profileuser);
    217 ?>
     214<?php endif; ?>
     215<tr>
     216<th scope="row"><?php _e('Admin Bar')?></th>
     217<td><fieldset><legend class="screen-reader-text"><span><?php _e('Admin Bar') ?></span></legend>
     218<label for="admin_bar_front">
     219<input name="admin_bar_front" type="checkbox" id="admin_bar_front" value="1" <?php checked( _get_admin_bar_pref( 'front', $profileuser->ID ) ); ?> />
     220<?php _e( 'Display the admin bar on the front end' ); ?></label><br />
     221<label for="admin_bar_admin">
     222<input name="admin_bar_admin" type="checkbox" id="admin_bar_admin" value="1" <?php checked( _get_admin_bar_pref( 'admin', $profileuser->ID ) ); ?> />
     223<?php _e( 'Display the admin bar in the dashboard' ); ?></label>
     224</td>
     225</tr>
     226<?php do_action('personal_options', $profileuser); ?>
    218227</table>
    219228<?php
Note: See TracChangeset for help on using the changeset viewer.