$adminHeaderNote_message

"; } // Fire the previous function when the footer loads. add_action('admin_footer', 'adminHeaderNote'); // Position and style the output just so. function adminHeaderNote_css() { $adminHeaderNote_X = get_option('adminHeaderNote_X'); $adminHeaderNote_Y = get_option('adminHeaderNote_Y'); $adminHeaderNote_color = get_option('adminHeaderNote_color'); echo " "; } // Add the CSS to the head. add_action('admin_head', 'adminHeaderNote_css'); // Create an admin page that will allow configuration of the note. add_action('admin_menu', 'adminHeaderNote_setup_menu' ); function adminHeaderNote_setup_menu() { add_options_page('Admin Header Note Options', 'Admin Header Note', 9, __FILE__, 'adminHeaderNote_setup_options'); } // Here lies the markup for the form that goes on the admin page. When written to conform to Wordpress Coding Standards, // as suggested here: http://codex.wordpress.org/Creating_Options_Pages the values, upon hitting submit, vanish from // the form fields on the admin page, though they remain in the database. // Without actually knowing why it makes the values persistent, since it improves usability, this format remains for now. function adminHeaderNote_setup_options() { echo '

Admin Header Note

'.wp_nonce_field('update-options').'
Admin Header Note simply places a small note at the top of Dashboard pages with an optional link.
Distance from right
(250px or 25em or like that):
Distance from top
(5px or 1em or like that):
The message (keep it short)
The link (if there is one)
The color of the note.

'; } ?>