Here you can restore and tweak the borders of the admin menu. You can select a border type from the four options, and then change the opacity to look good on whatever color scheme you are using. Changes will show instantly, but won\'t be saved unless you hit the Save Changes button.'; } function acb_bordertype_callback() { $options = get_option('acb_options_main'); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
Select which type of border you\'d like. Options are light, dark, and 3D (both). Default is 3D.
'; } function acb_lightopacity_callback() { $options = get_option('acb_options_main'); echo 'Enter a number between 0 and 100 to change the opacity of the light (upper) borders of menu items. The default is 15.
'; } function acb_darkopacity_callback() { $options = get_option('acb_options_main'); echo 'Enter a number between 0 and 100 to change the opacity of the dark (lower) borders of menu items. The default is 90.
'; } function acb_initialize_extra_options() { if( false == get_option( 'acb_options_extra' ) ) { add_option( 'acb_options_extra' ); $options['restoreadminbarheight'] = 'no'; $options['showrowhovereffect'] = 'yes'; $options['rowhovercolor'] = '#DCE6FA'; $options['customcss'] = ''; update_option('acb_options_extra', $options); } add_settings_section( 'acb_section_extra', '', 'acb_section_extra_callback', 'acb_options_extra' ); add_settings_field( 'acb_restoreadminbarheight', 'Restore 28px Admin Bar?', 'acb_restoreadminbarheight_callback', 'acb_options_extra', 'acb_section_extra' ); add_settings_field( 'acb_showrowhovereffect', 'Show Hover Effect on Rows?', 'acb_showrowhovereffect_callback', 'acb_options_extra', 'acb_section_extra' ); add_settings_field( 'acb_rowhovercolor', 'Row Hover Effect Color', 'acb_rowhovercolor_callback', 'acb_options_extra', 'acb_section_extra' ); add_settings_field( 'acb_customcss', 'Additional Custom CSS', 'acb_customcss_callback', 'acb_options_extra', 'acb_section_extra' ); register_setting( 'acb_group_extra', 'acb_options_extra', 'acb_validation' ); } add_action('admin_init', 'acb_initialize_extra_options'); function acb_section_extra_callback() { echo 'The Admin Bar had a height of 28px until WP 3.8. 3.8 increased the height to 32px. While not a large change, many themes use this number when absolutely positioning elements, and many of said themes haven\'t been updated to check for the new height. This will restore the classic (28px) height.
'; } function acb_showrowhovereffect_callback() { $options = get_option('acb_options_extra'); echo ''; echo ''; echo ''; echo ''; echo 'Would you like rows (in the list of pages, posts, comments, etc), to change color on hover? Default is yes.
'; } function acb_rowhovercolor_callback() { $options = get_option('acb_options_extra'); echo ''; echo ''; echo 'Select which color you\'d like to have for the row hover effect. Default color is #DCE6FA, also known as rgb(220,230,250).
'; } function acb_customcss_callback() { $options = get_option('acb_options_extra'); echo ''; echo 'Here you can add custom CSS to be applied throughout the admin backend in addition to the a options above. This will be applied directly, so it should follow CSS conventions. Basically, only touch it if you know what you are doing.
'; } function acb_validation($input) { $output = array(); foreach($input as $key => $value) { if (isset($input[$key])) { $output[$key] = strip_tags( stripslashes( $input[ $key ] ) ); } } return apply_filters('acb_validation', $output, $input); }